UE4Editor built from source on Mac hangs after project load

Built 4.4 from source on a Mac, editor hangs after project creation:

[2014.09.13-15.18.48:220][ 0]LogFileHelpers: Loading map ‘Template_Default’ took 23.476
[2014.09.13-15.18.48:349][ 0]LogUProjectInfo: Found projects:
[2014.09.13-15.18.48:557][ 0]LogLoad: Full Startup: 224.65 seconds (BP compile: 0.45 seconds)
[2014.09.13-15.18.48:632][ 0]LogCrashTracker: Crashtracker disabled due to settings.
[2014.09.13-15.18.49:327][ 15]LogAssetRegistry: Asset discovery search completed in 37.5667 seconds
[2014.09.13-18.44.26:553][306]LogGameProjectGeneration: Created new project with 4 files (plus project files)
[2014.09.13-18.44.26:583][307]Cmd: CLOSE_SLATE_MAINFRAME
[2014.09.13-18.44.26:757][308]Cmd: QUIT_EDITOR
[2014.09.13-18.44.26:969][308]LogExit: Preparing to exit.
[2014.09.13-18.44.28:137][308]LogExit: Editor shut down
[2014.09.13-18.44.28:138][308]LogExit: Transaction tracking system shut down
[2014.09.13-18.44.28:141][308]LogParticles: Destroying 0 GPU particle simulations for FXSystem 0x0x1552dca20
[2014.09.13-18.44.28:216][308]LogExit: Object subsystem successfully closed.

full console output

I ran UE4Editor with the -Log command line option, log attached. Curious if this is meaningful:

[2014.09.13-20.57.24:736][ 0]LogRHI: OpenGL MajorVersion = 4, MinorVersion = 1, ShaderPlatform = GLSL_150_MAC, FeatureLevel = SM4
[2014.09.13-20.57.24:834][ 0]LogContentStreaming: Texture pool size is 0.000000MB
[2014.09.13-20.57.24:886][ 0]LogExit: Preparing to exit.

link text

Hey duva,

How long does the editor hang after creating a project? The first time a project is created from source, it can take longer than normal to load. Does it start up fine after that? And does the project hang when opening it a second time and thereafter?

The hang is indefinite, I see the project loading dialog and then it goes away - the editor window never opens and I’m left with the process needing a force quit. Looking at the process in task manager it appears idle, barely any CPU and no network or disk activity.

I compiled from source to see if a similar problem when running from binaries would go away. No luck, details on the original issue here: Upgraded to 4.4.1, editor hangs with any new project - Platform & Builds - Unreal Engine Forums

I found the bug - there’s no error checking if a Font you are trying to load is not installed/enabled, you silently crash. The culprit is MacPlatformSplash.cpp:170. Work-around for me is to enable Verdana-Bold.

lldb) frame select 3 frame #3: 0x00000001002b5b62 UE4Editor-Core-Mac-Debug.dylib`-[UE4SplashView drawText:inRect:withAlignment:withColor:fontName:fontSize:](self=0x0000608002b3e320, _cmd=0x0000000100859976, Text=0x0000608000036000, Rect=, align=1, Color=0x0000608000254e80, FontName=0x0000000100881a70, FontSize=34) + 690 at MacPlatformSplash.cpp:170 167 NSMutableParagraphStyle style =[[NSParagraphStyle defaultParagraphStyle] mutableCopy]; 168 [style setAlignment : align]; 169 → 170 NSDictionary Dict = 171 [NSDictionary dictionaryWithObjects: 172 [NSArray arrayWithObjects: 173 Color, (lldb) po FontName Verdana-Bold