crashing MacOs application when running a build file

  • Hi all,
    I'm a new MacOS dev member.
    I'm developing an demo application that connect to SQLite (SQLite3).
    I have a problem with my application.
    I also build my app and try to run it (using app file).
    When I run by "Build and Run" in Xcode, there are no problem. But when I run
    app file (in release folder), It's crash. This is the report:

    //*********************************************************************
    Date/Time:      2008-08-14 13:35:34 +0800
    OS Version:    10.5 (Build 9A581)
    Architecture:  i386
    Report Version: 4

    Command:        AHRPersonalMacOS
    Path:
    /Applications/AHRPersonalMacOS.app/Contents/MacOS/AHRPersonalMacOS
    Version:        ??? (1.0)
    Parent:        launchd [73]

    PID:            17118
    Event:          hang
    Time:          5.04s
    Steps:          25

    Process:        AHRPersonalMacOS [17118]
    Path:
    /Applications/AHRPersonalMacOS.app/Contents/MacOS/AHRPersonalMacOS

      ADDRESS        BINARY
      00001000
    /Applications/AHRPersonalMacOS.app/Contents/MacOS/AHRPersonalMacOS
      00033000
    /System/Library/Frameworks/IOBluetoothUI.framework/Versions/A/IOBluetoothUI
      000b9000
    /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
      00172000
    /Library/Frameworks/BizEntity.framework/Versions/A/BizEntity
      00179000
    /Library/Frameworks/SM2DGraphView.framework/Versions/A/SM2DGraphView
      00196000
    /Library/Frameworks/VDALFramework.framework/Versions/A/VDALFramework
      001a5000
    /System/Library/PrivateFrameworks/BezelServices.framework/Versions/A/BezelServices
      004fa000
    /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
      00749000
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib

      Thread id:      3b8b8b8
      User stack:
        25 start + 54 (in AHRPersonalMacOS) [0x1e2e]
          25 _NSApplicationMain + 574 (in AppKit) [0x94b429ba]
            25 -[NSApplication run] + 847 (in AppKit) [0x94b75705]
              25 -[NSApplication sendEvent:] + 3824 (in AppKit) [0x94c17e4e]
                25 -[NSApplication _handleKeyEquivalent:] + 99 (in AppKit)
    [0x94cfa910]
                  25 -[NSWindow performKeyEquivalent:] + 257 (in AppKit)
    [0x94cfac4e]
                    25 -[NSView performKeyEquivalent:] + 367 (in AppKit)
    [0x94cfaee4]
                      25 -[NSView performKeyEquivalent:] + 367 (in AppKit)
    [0x94cfaee4]
                        25 -[NSView performKeyEquivalent:] + 367 (in AppKit)
    [0x94cfaee4]
                          25 -[NSView performKeyEquivalent:] + 367 (in AppKit)
    [0x94cfaee4]
                            25 -[NSControl _performKeyEquivalent:conditionally:]
    + 160 (in AppKit) [0x94cfb018]
                              25 -[NSButton performKeyEquivalent:] + 378 (in
    AppKit) [0x94cfb1a9]
                                25 -[NSButtonCell performClick:] + 725 (in
    AppKit) [0x94d27cc3]
                                  25 -[NSCell _sendActionFrom:] + 169 (in
    AppKit) [0x94c4dd5a]
                                    25 -[NSControl sendAction:to:] + 108 (in
    AppKit) [0x94c4ded4]
                                      25 -[NSApplication sendAction:to:from:] +
    112 (in AppKit) [0x94c4df94]
                                        25 -[DetailController
    previousStepDrawing:] + 220 (in AHRPersonalMacOS) [0x6849]
                                          6 -[NoninDataSQLiteDAO
    getAllNoninData:] + 66 (in AHRPersonalMacOS) [0x965c]
                                          6 ??? [0x23086]
                                          3 _objc_msgSend + 117 (in
    libobjc.A.dylib) [0x94a38745]
                                          2 -[NoninDataSQLiteDAO
    getAllNoninData:] + 58 (in AHRPersonalMacOS) [0x9654]
                                          2 -[NoninDataSQLiteDAO
    getAllNoninData:] + 729 (in AHRPersonalMacOS) [0x98f3]
                                          2 _objc_msgSend + 0 (in
    libobjc.A.dylib) [0x94a386d0]
                                          1 _objc_msgSend + 134 (in
    libobjc.A.dylib) [0x94a38756]
                                          1 _objc_msgSend + 16 (in
    libobjc.A.dylib) [0x94a386e0]
                                          1 -[NoninDataSQLiteDAO
    getAllNoninData:] + 75 (in AHRPersonalMacOS) [0x9665]
                                          1 _objc_msgSend + 112 (in
    libobjc.A.dylib) [0x94a38740]
      Kernel stack:
        24 _PE_incoming_interrupt + 131 [0x4443c7]
          24 _lapic_interrupt + 300 [0x1ae66e]
            24 _sync_iss_to_iks + 114 [0x1a6ec1]

    Process:        ATSServer [105]
    Path:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/ATSServer
    ...
    ...
    //*****************************************************************

    I don't understand its reason.
    Please explain to me.
    Thanks all!
  • On Aug 14, 2008, at 4:06 AM, Y Nguyen wrote:

    > OS Version:    10.5 (Build 9A581)

    Have you tried upgrading? Version 10.5 is almost a year old; there
    have been several patches since it came out.

    > 2 _objc_msgSend + 0 (in
    > libobjc.A.dylib) [0x94a386d0]

    Try building and running your program again with NSZombieEnabled
    turned on and see what happens. Search the list archives for more
    information. Note that you shouldn't ship an app with NSZombieEnabled
    turned on.

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • On 14 Aug 08, at 10:47, Nick Zitzmann wrote:
    > Try building and running your program again with NSZombieEnabled
    > turned on and see what happens. Search the list archives for more
    > information. Note that you shouldn't ship an app with
    > NSZombieEnabled turned on.

    NSZombieEnabled is a runtime option, not a build option.
  • On Aug 14, 2008, at 6:35 PM, Andrew Farmer wrote:

    > NSZombieEnabled is a runtime option, not a build option.

    If you look in Foundation/NSDebug.h, you can see there's a way to
    programmatically turn it on.

    Nick Zitzmann
    <http://www.chronosnet.com/>
previous month august 2008 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 31
Go to today