Weird crash

  • Hi there,

    after building my app on release mode the app crashes with:

    EXC_BREAKPOINT (0x0006)
    0x00000002

    Thread 0 Crashed:
    0    _objc_error + 86
    1    __objc_error + 45
    2    _freedHandler + 53
    3    -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 334
    4    loadNib + 260
    5    +[NSBundle(NSNibLoading)
    _loadNibFile:nameTable:withZone:ownerBundle:] + 918
    6    +[NSBundle(NSNibLoading)
    loadNibFile:externalNameTable:withZone:] + 164
    7    +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 392
    8    NSApplicationMain + 433
    9    main + 24 (main.m:15)

    Now, suffice I move the app somewhere else, say the desktop, and it
    runs fine...

    Any help appreciated.

    Micha
  • Check Xcode's Run Log or the Console.

    On Sep 6, 2007, at 11:19 AM, Micha Fuhrmann wrote:

    > Hi there,
    >
    > after building my app on release mode the app crashes with:
    >
    > EXC_BREAKPOINT (0x0006)
    > 0x00000002
    >
    > Thread 0 Crashed:
    > 0    _objc_error + 86
    > 1    __objc_error + 45
    > 2    _freedHandler + 53
    > 3    -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 334
    > 4    loadNib + 260
    > 5    +[NSBundle(NSNibLoading)
    > _loadNibFile:nameTable:withZone:ownerBundle:] + 918
    > 6    +[NSBundle(NSNibLoading)
    > loadNibFile:externalNameTable:withZone:] + 164
    > 7    +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 392
    > 8    NSApplicationMain + 433
    > 9    main + 24 (main.m:15)
    >
    > Now, suffice I move the app somewhere else, say the desktop, and it
    > runs fine...
    >
    > Any help appreciated.
    >
    > Micha
  • Here's all I get:

    (gdb) run
    [Switching to process 11163 local thread 0xf03]
    Running…
    Program received signal:  "SIGTRAP".
    mi_cmd_stack_list_frames: Not enough frames in stack.
    mi_cmd_stack_list_frames: Not enough frames in stack.
    (gdb)

    Since I'm getting different results by moving the app I was thinking
    of a permission issue..

    Really dunno here, stuck.

    Micha

    On 6 sept. 07, at 20:52, John Stiles wrote:

    > Check Xcode's Run Log or the Console.
    >
    > On Sep 6, 2007, at 11:19 AM, Micha Fuhrmann wrote:
    >
    >> Hi there,
    >>
    >> after building my app on release mode the app crashes with:
    >>
    >> EXC_BREAKPOINT (0x0006)
    >> 0x00000002
    >>
    >> Thread 0 Crashed:
    >> 0    _objc_error + 86
    >> 1    __objc_error + 45
    >> 2    _freedHandler + 53
    >> 3    -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 334
    >> 4    loadNib + 260
    >> 5    +[NSBundle(NSNibLoading)
    >> _loadNibFile:nameTable:withZone:ownerBundle:] + 918
    >> 6    +[NSBundle(NSNibLoading)
    >> loadNibFile:externalNameTable:withZone:] + 164
    >> 7    +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 392
    >> 8    NSApplicationMain + 433
    >> 9    main + 24 (main.m:15)
    >>
    >> Now, suffice I move the app somewhere else, say the desktop, and
    >> it runs fine...
    >>
    >> Any help appreciated.
    >>
    >> Micha
    >
  • Micha Fuhrmann wrote:

    > Here's all I get:
    >
    > (gdb) run
    > [Switching to process 11163 local thread 0xf03]
    > Running
    >
    > Program received signal:  "SIGTRAP".
    > mi_cmd_stack_list_frames: Not enough frames in stack.
    > mi_cmd_stack_list_frames: Not enough frames in stack.
    > (gdb)
    >
    > Since I'm getting different results by moving the app I was thinking
    > of a permission issue..

    That seems like an excellent guess. I'd think the point of interest
    is where, in your code, are you doing I/O (probably O) to paths that
    are relative to the location of the app? And why, since it's almost
    never correct or necessary?
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today