Crash

Hi, I’ve compiled the excellent Agar GUI Library,
(http://libagar.org)

However I couldn’t launch the demos because of
a crash (which doesn’t occur with my own SDL programs):
<<<
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff84fc7cc4 __exceptionPreprocess

  • 180
    1 libobjc.A.dylib 0x00007fff845c20f3 objc_exception_throw
  • 45
    2 CoreFoundation 0x00007fff84fc7ae7 +[NSException
    raise:format:arguments:] + 103
    3 CoreFoundation 0x00007fff84fc7a74 +[NSException
    raise:format:] + 148
    4 AppKit 0x00007fff8114533a
    _NSCreateWindowWithOpaqueShape2 + 473
    5 AppKit 0x00007fff810d98d1 -[NSWindow
    _commonAwake] + 1214
    6 AppKit 0x00007fff810d65b6 -[NSWindow
    _commonInitFrame:styleMask:backing:defer:] + 1501
    7 AppKit 0x00007fff810d5242 -[NSWindow
    _initContent:styleMask:backing:defer:contentView:] + 1396
    8 AppKit 0x00007fff810d4ccb -[NSWindow
    initWithContentRect:styleMask:backing:defer:] + 42
    9 libSDL-1.2.0.dylib 0x000000010017ac0d -[SDL_QuartzWindow
    initWithContentRect:styleMask:backing:defer:] + 285
    10 libSDL-1.2.0.dylib 0x00000001001780e4 QZ_SetVideoMode +
    1076
    11 libSDL-1.2.0.dylib 0x000000010016f25f SDL_SetVideoMode +
    527
    12 textbox 0x000000010009b549 SDLFB_OpenVideo + 323
    13 textbox 0x0000000100001b58 AG_InitGraphics +
    1108
    14 textbox 0x00000001000011b5 main + 138
    15 textbox 0x0000000100000c2c start + 52
    16 ??? 0x0000000000000001 0x0 + 1
    )
    terminate called after throwing an instance of ‘NSException’

I’m on Mac OS X 10.6.4

What’s going on ?

best, Julien CLEMENT

Apparently the OS is throwing a NSException on your call to
AG_InitGraphics. You should try to catch it and read the exception
message. That may give you a hint of what’s going on.On Fri, Aug 27, 2010 at 9:05 AM, julien CLEMENT wrote:

Hi, I’ve compiled the excellent Agar GUI Library,
(http://libagar.org)

However I couldn’t launch the demos because of
a crash (which doesn’t occur with my own SDL programs):
<<<
*** Call stack at first throw:
(
0 ? CoreFoundation ? ? ? ? ? ? ? ? ? ? ?0x00007fff84fc7cc4 __exceptionPreprocess

  • 180
    1 ? libobjc.A.dylib ? ? ? ? ? ? ? ? ? ? 0x00007fff845c20f3 objc_exception_throw
  • 45
    2 ? CoreFoundation ? ? ? ? ? ? ? ? ? ? ?0x00007fff84fc7ae7 +[NSException
    raise:format:arguments:] + 103
    3 ? CoreFoundation ? ? ? ? ? ? ? ? ? ? ?0x00007fff84fc7a74 +[NSException
    raise:format:] + 148
    4 ? AppKit ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x00007fff8114533a
    _NSCreateWindowWithOpaqueShape2 + 473
    5 ? AppKit ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x00007fff810d98d1 -[NSWindow
    _commonAwake] + 1214
    6 ? AppKit ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x00007fff810d65b6 -[NSWindow
    _commonInitFrame:styleMask:backing:defer:] + 1501
    7 ? AppKit ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x00007fff810d5242 -[NSWindow
    _initContent:styleMask:backing:defer:contentView:] + 1396
    8 ? AppKit ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x00007fff810d4ccb -[NSWindow
    initWithContentRect:styleMask:backing:defer:] + 42
    9 ? libSDL-1.2.0.dylib ? ? ? ? ? ? ? ? ?0x000000010017ac0d -[SDL_QuartzWindow
    initWithContentRect:styleMask:backing:defer:] + 285
    10 ?libSDL-1.2.0.dylib ? ? ? ? ? ? ? ? ?0x00000001001780e4 QZ_SetVideoMode +
    1076
    11 ?libSDL-1.2.0.dylib ? ? ? ? ? ? ? ? ?0x000000010016f25f SDL_SetVideoMode +
    527
    12 ?textbox ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x000000010009b549 SDLFB_OpenVideo + 323
    13 ?textbox ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x0000000100001b58 AG_InitGraphics +
    1108
    14 ?textbox ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x00000001000011b5 main + 138
    15 ?textbox ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x0000000100000c2c start + 52
    16 ??? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0x0000000000000001 0x0 + 1
    )
    terminate called after throwing an instance of ‘NSException’

I’m on Mac OS X 10.6.4

What’s going on ?

best, Julien CLEMENT


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org