Crash on exiting full screen mode on Mac OS

Issue #18 resolved
Gennady Trafimenkov repo owner created an issue

When exiting the game in full screen mode, the application crashes. With SDL 1.2.15 it is just black screen and nothing happens. With latest SDL 1.2 from repository, there is crash report window with following info:

Process:         ja2 [417]
Path:            /Users/USER/Documents/*/ja2
Identifier:      ja2
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  bash [184]
User ID:         501

Date/Time:       2013-03-12 14:31:53.829 +0400
OS Version:      Mac OS X 10.8 (12A269)
Report Version:  10

Interval Since Last Report:          14359 sec
Crashes Since Last Report:           9
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      6801A2E4-F449-4D31-8A1C-74730B5E0A33

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libSDL-1.2.0.dylib              0x000000010eb4ce61 SDL_FreeFormat + 17
1   libSDL-1.2.0.dylib              0x000000010eb4e0d6 SDL_FreeSurface + 198
2   ja2                             0x000000010e53760d SGP::AutoObj<SDL_Surface, &(SDL_FreeSurface)>::~AutoObj() + 45
3   ja2                             0x000000010e537585 SGP::AutoObj<SDL_Surface, &(SDL_FreeSurface)>::~AutoObj() + 21
4   ja2                             0x000000010e535ce4 SGPVSurface::~SGPVSurface() + 196
5   ja2                             0x000000010e535c15 SGPVSurface::~SGPVSurface() + 21
6   ja2                             0x000000010e536338 DeletePrimaryVideoSurfaces() + 40
7   ja2                             0x000000010e53629d ShutdownVideoSurfaceManager() + 13
8   ja2                             0x000000010e522003 ShutdownStandardGamingPlatform() + 51
9   ja2                             0x000000010e521fc9 SGPExit() + 41
10  libsystem_c.dylib               0x00007fff96861337 __cxa_finalize + 204
11  libsystem_c.dylib               0x00007fff96862f83 exit + 15
12  ja2                             0x000000010e542ea7 -[SDLMain applicationDidFinishLaunching:] + 55
13  com.apple.CoreFoundation        0x00007fff94f23b8a _CFXNotificationPost + 2554
14  com.apple.Foundation            0x00007fff92cf7a76 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
15  com.apple.AppKit                0x00007fff902aef5d -[NSApplication _postDidFinishNotification] + 292
16  com.apple.AppKit                0x00007fff902aec96 -[NSApplication _sendFinishLaunchingNotification] + 216
17  com.apple.AppKit                0x00007fff902abec2 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 566
18  com.apple.AppKit                0x00007fff902ababc -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 351
19  com.apple.Foundation            0x00007fff92d1135b -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
20  com.apple.Foundation            0x00007fff92d111bd _NSAppleEventManagerGenericHandler + 106
21  com.apple.AE                    0x00007fff90014f68 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 307
22  com.apple.AE                    0x00007fff90014dc9 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 37
23  com.apple.AE                    0x00007fff90014c89 aeProcessAppleEvent + 318
24  com.apple.HIToolbox             0x00007fff983b8e29 AEProcessAppleEvent + 100
25  com.apple.AppKit                0x00007fff902a82a6 _DPSNextEvent + 1456
26  com.apple.AppKit                0x00007fff902a7862 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
27  com.apple.AppKit                0x00007fff9029ec03 -[NSApplication run] + 517
28  ja2                             0x000000010e542cb4 main + 1444 (SDLMain.m:227)
29  libdyld.dylib                   0x00007fff93ef07e1 start + 1

Comments (2)

  1. Log in to comment