I’ve got a High Frontier (build made with Unity 5.5.0f3) player on OS X (10.10.5, build 14F2315) who’s had a couple of random crashes. He sent in the crash logs, and both of them crashed in Thread 6, UnityGfxDeviceWorker, with this traceback:
Thread 6 Crashed:: UnityGfxDeviceWorker
0 libsystem_kernel.dylib 0x9a6db69a __pthread_kill + 10
1 libsystem_pthread.dylib 0x97c94634 pthread_kill + 101
2 libsystem_c.dylib 0x97abade6 abort + 156
3 libmono.0.dylib 0x01c6eb8f mono_handle_native_sigsegv + 751
4 libmono.0.dylib 0x01ca480a sigabrt_signal_handler + 89
5 libsystem_platform.dylib 0x9c27803b _sigtramp + 43
6 ??? 0xffffffff 0 + 4294967295
7 libmono.0.dylib 0x01ca47b1 sigusr1_signal_handler + 156
8 libsystem_c.dylib 0x97abade6 abort + 156
9 libGPUSupport.dylib 0x0d761254 gpusKillClient + 113
10 com.apple.driver.AppleIntelHD3000GraphicsGLDriver 0x0d903066 GhalInterface::getCommandBuffer(unsigned char**, unsigned char**, unsigned int*, unsigned int*) + 166
11 com.apple.driver.AppleIntelHD3000GraphicsGLDriver 0x0d92884b GHAL3D::CPrivateCommandTransport::FlushCommandBuffer(GHAL3D::FLUSH_TYPE, unsigned char) + 299
12 com.apple.driver.AppleIntelHD3000GraphicsGLDriver 0x0d92857b g575SubmitPacketsToken + 73
13 com.apple.driver.AppleIntelHD3000GraphicsGLDriver 0x0dc2f3ac gldPresentFramebufferData + 170
14 GLEngine 0x0d5900de glSwap_Exec + 110
15 com.apple.opengl 0x9aba632f CGLFlushDrawable + 67
16 unity.DefaultCompany.HighFrontier 0x00d584ab PresentContextGL(ObjectHandle<GraphicsContext_Tag, void*>) + 123
17 unity.DefaultCompany.HighFrontier 0x00d4c459 ContextGLES::Present() + 25
18 unity.DefaultCompany.HighFrontier 0x00d72214 GfxDeviceGLES::PresentFrame() + 148
19 unity.DefaultCompany.HighFrontier 0x00d9ef4f GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) + 13119
20 unity.DefaultCompany.HighFrontier 0x0071ec70 GfxDeviceWorkerAutoreleasePoolProxy + 48
21 unity.DefaultCompany.HighFrontier 0x00da3c07 GfxDeviceWorker::Run() + 167
22 unity.DefaultCompany.HighFrontier 0x00d9bac1 GfxDeviceWorker::RunGfxDeviceWorker(void*) + 65
23 unity.DefaultCompany.HighFrontier 0x006111a0 Thread::RunThreadWrapper(void*) + 64
24 libsystem_pthread.dylib 0x97c92c25 _pthread_body + 138
25 libsystem_pthread.dylib 0x97c92b9b _pthread_start + 162
26 libsystem_pthread.dylib 0x97c8fe32 thread_start + 34
Any ideas what might be causing this, and what I can do about it?
1 Like
@JoeStrout Same problem, did you solved it ?
Foxxis
September 27, 2017, 8:44am
3
Similar problem here. Built with Unity 5.4.5 and stable AFAIK except for one Mac customer reporting a crash in UnityGfxDeviceWorker.
Can anyone shed some light on this…?
Thread 6 Crashed:: UnityGfxDeviceWorker
0 libsystem_kernel.dylib 0x00007fff88d46f06 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8b66b4ec pthread_kill + 90
2 libsystem_c.dylib 0x00007fff8f2036df abort + 129
3 libmono.0.dylib 0x0000000101d969a0 mono_handle_native_sigsegv + 726
4 libmono.0.dylib 0x0000000101de0005 sigabrt_signal_handler + 97
5 libsystem_platform.dylib 0x00007fff8d25452a _sigtramp + 26
6 ??? 000000000000000000 0 + 0
7 libsystem_c.dylib 0x00007fff8f2036df abort + 129
8 libGPUSupportMercury.dylib 0x00007fff8bfa5e5c gpusGenerateCrashLog + 158
9 com.apple.GeForceGLDriver 0x00007fff8ae52dc7 0x7fff8ac32000 + 2231751
10 libGPUSupportMercury.dylib 0x00007fff8bfa7204 gpusSubmitDataBuffers + 162
11 com.apple.GeForceGLDriver 0x00007fff8af46f0c 0x7fff8ac32000 + 3231500
12 com.apple.GeForceGLDriver 0x00007fff8af338d8 0x7fff8ac32000 + 3152088
13 GLEngine 0x00007fff8fc229fc gleFlushRange + 58
14 unity.TrinoGames.MachineWorld2 0x00000001011d20eb ApiGLES::FlushBuffer(unsigned int, gl::BufferTarget, long, long) + 155
15 unity.TrinoGames.MachineWorld2 0x00000001011e94c5 DrawBufferGLES<VertexBuffer, VertexBufferUsageMapperGLES>::EndWrite(unsigned long) + 37
16 unity.TrinoGames.MachineWorld2 0x0000000100a59e09 GenericDynamicVBO::ReleaseChunkInternal(DynamicVBOChunkHandle const&, unsigned int, unsigned int) + 105
17 unity.TrinoGames.MachineWorld2 0x00000001012119e8 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) + 26136
18 unity.TrinoGames.MachineWorld2 0x0000000100c9d4dc GfxDeviceWorkerAutoreleasePoolProxy + 60
19 unity.TrinoGames.MachineWorld2 0x00000001012126a4 GfxDeviceWorker::Run() + 116
20 unity.TrinoGames.MachineWorld2 0x000000010120b2cc GfxDeviceWorker::RunGfxDeviceWorker(void*) + 60
21 unity.TrinoGames.MachineWorld2 0x0000000100c4f6cc Thread::RunThreadWrapper(void*) + 60
22 libsystem_pthread.dylib 0x00007fff8b66899d _pthread_body + 131
23 libsystem_pthread.dylib 0x00007fff8b66891a _pthread_start + 168
24 libsystem_pthread.dylib 0x00007fff8b666351 thread_start + 13
I never solved this. Still hoping somebody else has a clue.
One clue: the crash might be one that occurs only on an OS X setup with multiple-monitors connected, resulting in startup crash with black screen.
There are numerous issues with OS X standalone builds related to monitors, even in Unity 2017.1.1 (which I am using). I could not even reproduce the particular crash, but it was noticed by Mac OS App review which provided an error log. I assume they had a multi-monitor setup (not confirmed).
I did a number of changes to the next build, some of which seem to have solved the crash:
Disable “Metal”, use only OpenGLCore on Mac
Disable Universal build, only do x86_64 (main reason was problems with videos)
Set standalone relolution/fullscreen/aspect ratio settings to:
Default is Full Screen => true
Default is Native resolution => true
Capture Single Screen => false
Display Resolution Dialog => Hidden by default (“Enabled” might also help solve issues)
Resizable window => true
Mac fullscreen mode => Fullscreen Window with menu bar and dock
Visible in background => true
Allow full screen switch => true
Force single instance => false
Supported aspect ratios => allow all, including others
1 Like
On OSX I had a similar problem. The only way I could get it fixed was to go into player settings and go under Other Settings>Mac App Store Options> and change the bundle identifier from com.Company.ProductName to something else like com.Company.ProductName2 . Not sure what is causing the issue, but that was a workaround.
TC_100
August 29, 2019, 1:40pm
7
Hello,
I was running my app on iPad and I got the similar error: i.e.
ios unity UnityGfxDeviceWorker (31): EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=700 MB, unused=0x0)
More Info: I am using GAF files in my app, and my iPad’s config are:
Software version:12.2, RAM:1GB, Capacity:16Gb.
Any help would be appreciated.
1 Like
same problem…any solution?
TC_100:
Hello,
I was running my app on iPad and I got the similar error: i.e.
ios unity UnityGfxDeviceWorker (31): EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=700 MB, unused=0x0)
More Info: I am using GAF files in my app, and my iPad’s config are:
Software version:12.2, RAM:1GB, Capacity:16Gb.
Any help would be appreciated.
You need to change your texture sizes. Drop them down to lower sizes and try again.
I am facing crash in iOS device with following stack trace. Any solution?
Crashed: UnityGfxDeviceWorker
0 libsystem_c.dylib 0x19c986240 rb_tree_insert_node + 316
1 libsystem_c.dylib 0x19c98616c rb_tree_insert_node + 104
2 libsystem_trace.dylib 0x19cabb3a0 os_log_create + 664
3 QuartzCore 0x1a12b6f54 x_log_init() + 276
4 libdispatch.dylib 0x19c8bd7d4 _dispatch_client_callout + 16
5 libdispatch.dylib 0x19c860eb8 _dispatch_once_callout + 28
6 QuartzCore 0x1a12b7008 x_log_hook_p + 112
7 QuartzCore 0x1a13b1a5c CADeviceUseCompression + 180
8 QuartzCore 0x1a1411288 CA::Render::create_iosurface_with_pixel_format(unsigned int, unsigned int, unsigned int, bool, bool, unsigned int, bool) + 132
9 QuartzCore 0x1a139fc10 allocate_drawable_private(unsigned int, unsigned int, id<MTLDevice>, MTLPixelFormat, MTLTextureRotation, bool, bool, unsigned int, CGColorSpace*, _CAImageQueue*) + 140
10 QuartzCore 0x1a139ef84 -[CAMetalLayer nextDrawable] + 1540
11 UnityModule 0x104e4c90c AcquireDrawableMTL + 332 (MetalHelper.mm:332)
12 UnityModule 0x1056f87e8 UnityBlitToBackbuffer + 387 (CommonLibEntry.mm:387)
13 UnityModule 0x104e4c748 PreparePresentMTL + 83 (UnityAppController.h:83)
14 UnityModule 0x104d0914c -[DisplayConnection present] + 326 (UnityRendering.h:326)
15 UnityModule 0x104e62a24 -[UnityAppController(Rendering) callbackPresent:] + 114 (UnityAppController+Rendering.mm:114)
16 UnityModule 0x104e62ed8 UnityPresentContextCallback + 162 (UnityAppController+Rendering.mm:162)
17 UnityModule 0x1056d5228 GfxDeviceMetal::PresentFrame() + 3295 (GfxDeviceMetal.mm:3295)
18 UnityModule 0x105118fb4 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) + 1403 (GfxDeviceWorker.cpp:1403)
19 UnityModule 0x1056d7014 GfxDeviceWorkerAutoreleasePoolProxy + 4114 (GfxDeviceMetal.mm:4114)
20 UnityModule 0x10511987c GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) + 528 (GfxDeviceWorker.cpp:528)
21 UnityModule 0x105112010 GfxDeviceWorker::RunGfxDeviceWorker(void*) + 492 (GfxDeviceWorker.cpp:492)
22 UnityModule 0x10539660c Thread::RunThreadWrapper(void*) + 78 (Thread.cpp:78)
23 libsystem_pthread.dylib 0x19ca9d2c0 _pthread_body + 128
24 libsystem_pthread.dylib 0x19ca9d220 _pthread_start + 44
25 libsystem_pthread.dylib 0x19caa0cdc thread_start + 4