Crash playing with font

I was trying to work out how the font editor works when I hit this crash:

/**
 * Gets or loads a freetype font face
 *
 * @param InFontData Information about the font to load
 */
FT_Face GetFontFace( const FFontData& InFontData )
{
	FFontFaceAndMemory* FaceAndMemory = FontFaceMap.Find(&InFontData);
	if (!FaceAndMemory && InFontData.BulkDataPtr)
	{
		int32 LockedFontDataSizeBytes = 0;
		const void* const LockedFontData = InFontData.BulkDataPtr->Lock(LockedFontDataSizeBytes);

BulkDataPtr is 0xddddddddddddddd

 	ntdll.dll!00000000772c4949()	Unknown
>	UE4Editor-SlateCore.dll!FFreeTypeInterface::GetFontFace(const FFontData & InFontData) Line 783	C++
 	UE4Editor-SlateCore.dll!FFreeTypeInterface::GetRenderData(const FFontData & InFontData, const int InSize, wchar_t Char, FCharacterRenderData & OutRenderData, const float InScale) Line 386	C++
 	UE4Editor-SlateCore.dll!FFreeTypeInterface::GetMaxHeight(const FSlateFontInfo & InFontInfo, const float InScale) Line 346	C++
 	UE4Editor-SlateCore.dll!FCharacterList::GetMaxHeight() Line 989	C++
 	UE4Editor-Engine.dll!FCanvasTextItem::DrawStringInternal_RuntimeCache(FCanvas * InCanvas, const FVector2D & DrawPos, const FLinearColor & InColor) Line 1131	C++
 	UE4Editor-Engine.dll!FCanvasTextItem::Draw(FCanvas * InCanvas) Line 937	C++
 	UE4Editor-FontEditor.dll!FFontEditorViewportClient::Draw(FViewport * Viewport, FCanvas * Canvas) Line 228	C++
 	UE4Editor-Engine.dll!FViewport::Draw(bool bShouldPresent) Line 1001	C++
 	UE4Editor-FontEditor.dll!SCompositeFontEditor::FlushCachedFont() Line 161	C++
 	UE4Editor-FontEditor.dll!STypefaceEditor::OnDeleteFont(const TSharedPtr<FTypefaceListViewEntry,0> & TypefaceEntryToRemove) Line 501	C++
 	UE4Editor-FontEditor.dll!TBaseSPMethodDelegateInstance<0,STypefaceEditor,0,TTypeWrapper<void> __cdecl(TSharedPtr<FTypefaceListViewEntry,0> const & __ptr64)>::Execute(const TSharedPtr<FTypefaceListViewEntry,0> & <Params_0>) Line 282	C++
 	UE4Editor-FontEditor.dll!TBaseSPMethodDelegateInstance<0,STypefaceEditor,0,void __cdecl(TSharedPtr<FTypefaceListViewEntry,0> const & __ptr64)>::ExecuteIfSafe(const TSharedPtr<FTypefaceListViewEntry,0> & <Params_0>) Line 388	C++
 	UE4Editor-FontEditor.dll!STypefaceEntryEditor::OnDeleteFontClicked() Line 761	C++
 	UE4Editor-FontEditor.dll!TMemberFunctionCaller<STypefaceEntryEditor,FReply (__cdecl STypefaceEntryEditor::*)(void) __ptr64>::operator()<>() Line 161	C++
 	UE4Editor-FontEditor.dll!TTupleImpl<TIntegerSequence<> >::ApplyAfter_ExplicitReturnType<FReply,TMemberFunctionCaller<STypefaceEntryEditor,FReply (__cdecl STypefaceEntryEditor::*)(void) __ptr64> >(TMemberFunctionCaller<STypefaceEntryEditor,FReply (__cdecl STypefaceEntryEditor::*)(void)> && Func) Line 113	C++
 	UE4Editor-FontEditor.dll!TBaseSPMethodDelegateInstance<0,STypefaceEntryEditor,0,FReply __cdecl(void)>::Execute() Line 282	C++
 	UE4Editor-Slate.dll!TBaseDelegate<FReply>::Execute() Line 440	C++
 	UE4Editor-Slate.dll!SButton::OnMouseButtonUp(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent) Line 225	C++
 	UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent::__l18::<lambda>(const FArrangedWidget & TargetWidget, const FPointerEvent & Event) Line 4170	C++
 	UE4Editor-Slate.dll!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,FReply <lambda>(const FArrangedWidget &, const FPointerEvent &) >(FSlateApplication * ThisApplication, FEventRouter::FToLeafmostPolicy RoutingPolicy, FPointerEvent EventCopy, const FSlateApplication::ProcessMouseButtonUpEvent::__l18::FReply <lambda>(const FArrangedWidget &, const FPointerEvent &) & Lambda) Line 212	C++
 	UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent(FPointerEvent & MouseEvent) Line 4173	C++
 	UE4Editor-Slate.dll!FSlateApplication::OnMouseUp(const EMouseButtons::Type Button) Line 4133	C++
 	UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage(const FDeferredWindowsMessage & DeferredMessage) Line 1406	C++
 	UE4Editor-Core.dll!FWindowsApplication::DeferMessage(TSharedPtr<FWindowsWindow,0> & NativeWindow, HWND__ * InHWnd, unsigned int InMessage, unsigned __int64 InWParam, __int64 InLParam, int MouseX, int MouseY, unsigned int RawInputFlags) Line 1711	C++
 	UE4Editor-Core.dll!FWindowsApplication::ProcessMessage(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 706	C++
 	UE4Editor-Core.dll!FWindowsApplication::AppWndProc(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 628	C++
 	user32.dll!00000000771b9bd1()	Unknown
 	user32.dll!00000000771b98da()	Unknown
 	UE4Editor-Core.dll!FWindowsPlatformMisc::PumpMessages(bool bFromMainLoop) Line 792	C++
 	UE4Editor.exe!FEngineLoop::Tick() Line 2323	C++
 	UE4Editor.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow) Line 142	C++
 	UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 189	C++
 	UE4Editor.exe!__tmainCRTStartup() Line 618	C
 	kernel32.dll!00000000770959cd()	Unknown
 	ntdll.dll!00000000772cb981()	Unknown

I had been switching the “hint” type to see what effect different settings had.

The forum is refusing to upload my output file but it doesn’t seem very interesting.

Hey theonecalledtom-

Can you elaborate on what you were working on when this crash occurred? Are you able to reproduce it in a new project? If so can you please include steps that I could use to reproduce the crash on my end? The more detailed info you can provide the easier it would be for me to reproduce and report the crash.

Cheers

Doug Wilson

Hi Doug,

I created a new font and was cycling through the different hint options.

  1. New font

  2. Add font

  3. Set file C:\Program Files\Unreal Engine\4.8\Engine\Content\Slate\Fonts\Roboto something

  4. Play with hint options (cycle between them) and crash!

  • I haven’t been able to repro it
  • As I was experimenting to see what different options and only just starting to play with the font editor exact steps are missing :frowning:
  • I may have had a sub font group, I may have had different top level font options.

Sorry not to have more information!

-Tom

Hey theonecalledtom-

I tested and was not able to reproduce this myself either. If you do see a crash when using the font editor please feel free to post a comment to provide information on what you were doing when the crash occurred as well as the log files from the crash

Cheers

Doug Wilson