OpenEmu / Mupen64Plus-Core

OpenEmu Core plugin with Mupen64Plus to support N64 emulation
49 stars 23 forks source link

Crash on stop in XPC mode #14

Closed mrvacbob closed 8 years ago

mrvacbob commented 8 years ago

Mupen calls OpenGL in atexit functions on the main thread, when OpenGL hasn't been set up on the main thread.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libGL.dylib                     0x00007fff972e44bd glDeleteTextures + 18
1   mupen64plus-video-rice.so       0x00000000055b60f2 COGLTexture::~COGLTexture() + 34 (OGLTexture.cpp:77)
2   mupen64plus-video-rice.so       0x000000000560b96b CTextureManager::RecycleAllTextures() + 155 (TextureManager.h:142)
3   mupen64plus-video-rice.so       0x000000000560b7ef CTextureManager::CleanUp() + 15 (TextureManager.cpp:124)
4   mupen64plus-video-rice.so       0x000000000560b50f CTextureManager::~CTextureManager() + 15 (TextureManager.cpp:114)
5   libsystem_c.dylib               0x00007fff9715c46b __cxa_finalize_ranges + 345
6   libsystem_c.dylib               0x00007fff9715c76f exit + 55
7   com.apple.AppKit                0x00007fff8ac16c01 -[NSApplication terminate:] + 1930
8   com.apple.CoreFoundation        0x00007fff963b34ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
9   com.apple.CoreFoundation        0x00007fff96392d05 __CFRunLoopDoBlocks + 341
10  com.apple.CoreFoundation        0x00007fff96392a6b __CFRunLoopRun + 2347
11  com.apple.CoreFoundation        0x00007fff96391ed8 CFRunLoopRunSpecific + 296
12  com.apple.HIToolbox             0x00007fff8d402935 RunCurrentEventLoopInMode + 235
13  com.apple.HIToolbox             0x00007fff8d40276f ReceiveNextEventCommon + 432
14  com.apple.HIToolbox             0x00007fff8d4025af _BlockUntilNextEventMatchingListInModeWithFilter + 71
15  com.apple.AppKit                0x00007fff8aa00efa _DPSNextEvent + 1067
16  com.apple.AppKit                0x00007fff8aa0032a -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
17  com.apple.AppKit                0x00007fff8a9f4e84 -[NSApplication run] + 682
18  OpenEmuHelperApp                0x0000000000015827 -[OpenEmuXPCHelperApp launchApplication] + 119 (OpenEmuXPCHelperApp.m:46)
19  OpenEmuHelperApp                0x0000000000015171 main + 209 (OpenEmuHelperAppMain.m:44)
20  libdyld.dylib                   0x00007fff8d2e55ad start + 1
mrvacbob commented 8 years ago

Fixt with kill -9 self