We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1215

Summary: SDL_SetVideoMode() crashes on Mac OS X 10.7 (developer preview 3)
Product: SDL Reporter: Kirk Baker <kbaker>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: icculus
Version: 1.2.14   
Hardware: x86   
OS: Mac OS X 10.6   

Description Kirk Baker 2011-06-04 15:43:21 UTC
A user of our software's Slide Show module is experiencing crashes when running on Mac OS X 10.7. A crash report was filed and received by us. We use libSDL 1.2.14 to take over the screen via SDL_SetVideoMode() at the start of the Slide Show. Here is a partial stack trace from the crash reporter: 

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

Exception Type:  EXC_BAD_ACCESS (SIGABRT) 
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000 

VM Regions Near 0: 
--> __PAGEZERO             0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Applications/Photo Mechanic.app/Contents/MacOS/Photo Mechanic 
   __TEXT                 0000000000001000-00000000006c6000 [ 6932K] r-x/rwx SM=COW  /Applications/Photo Mechanic.app/Contents/MacOS/Photo Mechanic 

Application Specific Information: 
objc[544]: garbage collection is OFF 
Performing @selector(OnBnClickedStart:) from sender NSButton 0x9d09210 
abort() called 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 
0   libsystem_kernel.dylib           0x941d19c6 __pthread_kill + 10 
1   libsystem_c.dylib                0x906d4f98 pthread_kill + 106 
2   libsystem_c.dylib                0x906c5bfd abort + 167 
3   libruby.1.8.4.dylib              0x00a68b80 rb_bug + 243 (error.c:205) 
4   libruby.1.8.4.dylib              0x00ad00be sigbus + 26 (signal.c:446) 
5   libsystem_c.dylib                0x9072a59b _sigtramp + 43 
6   ???                              0xffffffff 0 + 4294967295 
7   SDL                              0x00c4e515 SDL_SetVideoMode + 1077 
8   com.camerabits.PhotoMechanic     0x0002fe0e Slideshow::init() + 302 
9   com.camerabits.PhotoMechanic     0x002aaef1 SlideDialog::OnBnClickedStart() + 97 
10  com.apple.CoreFoundation         0x9bae3251 -[NSObject performSelector:withObject:] + 65 
11  com.apple.AppKit                 0x9439ce4a -[NSApplication sendAction:to:from:] + 232 
12  com.apple.AppKit                 0x9439cd28 -[NSControl sendAction:to:] + 102 
13  com.apple.AppKit                 0x9439cc2b -[NSCell _sendActionFrom:] + 160 
14  com.apple.AppKit                 0x9439bfe6 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2295 
15  com.apple.AppKit                 0x9441e839 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 501 
16  com.apple.AppKit                 0x9439aa27 -[NSControl mouseDown:] + 943 
17  com.apple.AppKit                 0x943638d2 -[NSWindow sendEvent:] + 7514 
18  com.apple.AppKit                 0x942fbcf1 -[NSApplication sendEvent:] + 4235 
19  com.camerabits.PhotoMechanic     0x00090a97 -[CPMApp sendEvent:] + 71 
20  com.apple.AppKit                 0x94565239 -[NSApplication _modalSession:sendEvent:] + 550 
21  com.apple.AppKit                 0x94564e03 -[NSApplication _realDoModalLoop:peek:] + 638 
22  com.apple.AppKit                 0x94560413 -[NSApplication _doModalLoop:peek:] + 69 
23  com.apple.AppKit                 0x94564adf -[NSApplication runModalForWindow:] + 258 
24  com.camerabits.PhotoMechanic     0x000cd723 CDialog::RunModalLoop(unsigned long) + 259 
25  com.camerabits.PhotoMechanic     0x000cdaa2 CDialog::DoModal() + 274 
26  com.camerabits.PhotoMechanic     0x000aabe4 +[SlideDialogController runSlideshowWithContactSheet:andDocument:selectedCells:] + 180 
27  com.camerabits.PhotoMechanic     0x0004d75b -[CContactSheetView runSlideshow:] + 171 
28  com.apple.CoreFoundation         0x9bae3251 -[NSObject performSelector:withObject:] + 65 
29  com.apple.AppKit                 0x9439ce4a -[NSApplication sendAction:to:from:] + 232 
30  com.apple.AppKit                 0x9449039b -[NSMenuItem _corePerformAction] + 536 
31  com.apple.AppKit                 0x94490034 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 171 
32  com.apple.AppKit                 0x9448f6bd -[NSMenu _performActionWithHighlightingForItemAtIndex:sendAccessibilityNotification:] + 79 
33  com.apple.AppKit                 0x9448f669 -[NSMenu _performActionWithHighlightingForItemAtIndex:] + 48 
34  com.apple.AppKit                 0x944089a0 -[NSMenu performKeyEquivalent:] + 306 
35  com.apple.AppKit                 0x94407414 -[NSApplication _handleKeyEquivalent:] + 594 
36  com.apple.AppKit                 0x942fc0c9 -[NSApplication sendEvent:] + 5219 
37  com.camerabits.PhotoMechanic     0x00090a97 -[CPMApp sendEvent:] + 71 
38  com.apple.AppKit                 0x9428e946 -[NSApplication run] + 993 
39  com.apple.AppKit                 0x94521031 NSApplicationMain + 1047 
40  com.camerabits.PhotoMechanic     0x00003072 _start + 216 
41  com.camerabits.PhotoMechanic     0x00002f99 start + 41
Comment 1 Ryan C. Gordon 2011-08-21 00:45:11 UTC
This should be fixed in Mercurial, as of changeset cf638ceb1f2c (or thereabouts).

--ryan.