在使用app期间随机EXC_BAD_INSTRUCTION(SIGILL)。 AppKit中的错误?

时间:2010-03-24 08:47:25

标签: objective-c cocoa appkit

我目前正在OSX 10.5上测试我的应用程序的新版本 用户在使用应用程序时报告了一些奇怪的崩溃,遗憾的是我无法重现。乍一看,它似乎是随机发生的,一旦他在打开一个NSOpenPanel时发生了崩溃,一次是在聚焦NSTextField期间,一次是在父视图中的NSView切换期间。

如果你知道我应该看哪个区域,我们将不胜感激! 我完全迷失在这里。

App在XCode 3.2.1中使用SDK 10.5进行编译,目标是10.5

请注意,这个问题对于数百名客户来说是不可见的,但对于至少一个客户来说却是如此。 它不仅仅在[openNZBFileButtonClick]中,即使在NSTextField中单击一次,堆栈跟踪似乎也会随机出现。

他发给我这些崩溃事件:

崩溃1

    Process:         NZBVortex [43622]
    Path:            /Users/cero/Downloads/NZBVortex.app/Contents/MacOS/NZBVortex
    Identifier:      com.NZBVortex.NZBVortex
    Version:         0.5.5 (0.5.5)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [97]

Interval Since Last Report:          1951 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  1858 sec
    Per-App Crashes Since Last Report:   1

    Date/Time:       2010-03-23 23:43:49.671 +0100
    OS Version:      Mac OS X 10.5.8 (9L31a)
    Report Version:  6
    Anonymous UUID:  98AB0386-590B-4E0D-B7AC-3F7AA4E7238E

    Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
    Exception Codes: 0x0000000000000001, 0x0000000000000000
    Crashed Thread:  0

    Application Specific Information:
    objc[43622]: alt handlers in objc runtime are buggy!
    - Hide quoted text -

    Thread 0 Crashed:
    0   libobjc.A.dylib                     0x00007fff82baef6e _objc_fatal + 238
    1   libobjc.A.dylib                     0x00007fff82bb2ea4
    objc_addExceptionHandler + 302
    2   com.apple.CoreFoundation            0x00007fff842b1090
    _CFDoExceptionOperation + 528
    3   com.apple.AppKit                    0x00007fff81f75e26 _NSAppKitLock + 81
    4   com.apple.AppKit                    0x00007fff81f80f8f -[NSView nextKeyView] + 56
    5   com.apple.AppKit                    0x00007fff81f81018 -[NSView
    _primitiveSetNextKeyView:] + 72
    6   com.apple.AppKit                    0x00007fff820732b1 -[NSView
    _recursiveSetDefaultKeyViewLoop] + 242
    7   com.apple.AppKit                    0x00007fff82073300 -[NSView
    _recursiveSetDefaultKeyViewLoop] + 321
    8   com.apple.AppKit                    0x00007fff82073300 -[NSView
    _recursiveSetDefaultKeyViewLoop] + 321
    9   com.apple.AppKit                    0x00007fff82073300 -[NSView
    _recursiveSetDefaultKeyViewLoop] + 321
    10  com.apple.AppKit                    0x00007fff82073300 -[NSView
    _recursiveSetDefaultKeyViewLoop] + 321
    11  com.apple.AppKit                    0x00007fff82072fc3 -[NSView
    _setDefaultKeyViewLoop] + 279
    12  com.apple.AppKit                    0x00007fff82072e70 -[NSWindow
    recalculateKeyViewLoop] + 36
    13  com.apple.AppKit                    0x00007fff821dd149
    -[NSSavePanel(NSSavePanelRuntime) _loadPreviousModeAndLayout] + 39
    14  com.apple.AppKit                    0x00007fff821dcf9e
    -[NSSavePanel(NSSavePanelRuntime) runModalForDirectory:file:types:] +
    71
    15  com.NZBVortex.NZBVortex             0x000000010000b7ee
    -[MainWindowViewController openNZBFileButtonClick:] + 62
    16  com.apple.AppKit                    0x00007fff821c96bf
    -[NSToolbarButton sendAction:to:] + 77
    17  com.apple.AppKit                    0x00007fff821c8bb7
    -[NSToolbarItemViewer mouseDown:] + 5362
    18  com.apple.AppKit                    0x00007fff82082783 -[NSWindow
    sendEvent:] + 5068
    19  com.apple.AppKit                    0x00007fff8204fd46 -[NSApplication
    sendEvent:] + 5089
    20  com.apple.AppKit                    0x00007fff81faa562 -[NSApplication run] + 497
    21  com.apple.AppKit                    0x00007fff81f772f0 NSApplicationMain + 373
    22  com.NZBVortex.NZBVortex             0x0000000100012a69 main + 9
    23  com.NZBVortex.NZBVortex             0x0000000100001a84 start + 52

崩溃2

Process:         NZBVortex [43600]
Path:            /Users/cero/Downloads/NZBVortex.app/Contents/MacOS/NZBVortex
Identifier:      com.NZBVortex.NZBVortex
Version:         0.5.5 (0.5.5)
Code Type:       X86-64 (Native)
Parent Process:  launchd [97]

Interval Since Last Report:          727 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  616 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2010-03-23 23:11:20.000 +0100
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  98AB0386-590B-4E0D-B7AC-3F7AA4E7238E

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
objc[43600]: alt handlers in objc runtime are buggy!

Thread 0 Crashed:
0   libobjc.A.dylib                     0x00007fff82baef6e _objc_fatal + 238
1   libobjc.A.dylib                     0x00007fff82bb2ea4
objc_addExceptionHandler + 302
2   com.apple.CoreFoundation            0x00007fff842b1090
_CFDoExceptionOperation + 528
3   com.apple.AppKit                    0x00007fff81f75e26 _NSAppKitLock + 81
4   com.apple.AppKit                    0x00007fff81f80f8f -[NSView nextKeyView] + 56
5   com.apple.AppKit                    0x00007fff81f81018 -[NSView
_primitiveSetNextKeyView:] + 72
6   com.apple.AppKit                    0x00007fff820732b1 -[NSView
_recursiveSetDefaultKeyViewLoop] + 242
7   com.apple.AppKit                    0x00007fff82156700 -[NSTabView
_recursiveSetDefaultKeyViewLoop] + 119
8   com.apple.AppKit                    0x00007fff82073300 -[NSView
_recursiveSetDefaultKeyViewLoop] + 321
9   com.apple.AppKit                    0x00007fff82073300 -[NSView
_recursiveSetDefaultKeyViewLoop] + 321
10  com.apple.AppKit                    0x00007fff82072fc3 -[NSView
_setDefaultKeyViewLoop] + 279
11  com.apple.AppKit                    0x00007fff82072e70 -[NSWindow
recalculateKeyViewLoop] + 36
12  com.NZBVortex.NZBVortex             0x000000010000b527
-[MainWindowViewController showView:sender:] + 1639
13  com.NZBVortex.NZBVortex             0x000000010000ae6b
-[MainWindowViewController
preferencesSaveAlertDidEnd:returnCode:contextInfo:] + 91
14  com.apple.AppKit                    0x00007fff82224291 -[NSAlert
didEndAlert:returnCode:contextInfo:] + 107
15  com.apple.AppKit                    0x00007fff82224197 -[NSAlert
buttonPressed:] + 279
16  com.apple.AppKit                    0x00007fff82085d46 -[NSApplication
sendAction:to:from:] + 97
17  com.apple.AppKit                    0x00007fff82085c7f -[NSControl
sendAction:to:] + 97
18  com.apple.AppKit                    0x00007fff820851b0 -[NSCell
trackMouse:inRect:ofView:untilMouseUp:] + 1841
19  com.apple.AppKit                    0x00007fff820849d6 -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] + 611
20  com.apple.AppKit                    0x00007fff8208422f -[NSControl
mouseDown:] + 735
21  com.apple.AppKit                    0x00007fff82082783 -[NSWindow
sendEvent:] + 5068
22  com.apple.AppKit                    0x00007fff8204fd46 -[NSApplication
sendEvent:] + 5089
23  com.apple.AppKit                    0x00007fff81faa562 -[NSApplication run] + 497
24  com.apple.AppKit                    0x00007fff81f772f0 NSApplicationMain + 373
25  com.NZBVortex.NZBVortex             0x0000000100012a69 main + 9
26  com.NZBVortex.NZBVortex             0x0000000100001a84 start + 52

崩溃3

Process:         NZBVortex [43520]
Path:            /Users/cero/Downloads/NZBVortex.app/Contents/MacOS/NZBVortex
Identifier:      com.NZBVortex.NZBVortex
Version:         0.5.5 (0.5.5)
Code Type:       X86-64 (Native)
Parent Process:  launchd [97]

Interval Since Last Report:          23487 sec
Crashes Since Last Report:           2
Per-App Interval Since Last Report:  2025 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2010-03-23 22:59:05.484 +0100
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  98AB0386-590B-4E0D-B7AC-3F7AA4E7238E

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
objc[43520]: alt handlers in objc runtime are buggy!

Thread 0 Crashed:
0   libobjc.A.dylib                     0x00007fff82baef6e _objc_fatal + 238
1   libobjc.A.dylib                     0x00007fff82bb2ea4
objc_addExceptionHandler + 302
2   com.apple.CoreFoundation            0x00007fff842b1090
_CFDoExceptionOperation + 528
3   com.apple.AppKit                    0x00007fff81f75e26 _NSAppKitLock + 81
4   com.apple.AppKit                    0x00007fff81f80f8f -[NSView nextKeyView] + 56
5   com.apple.AppKit                    0x00007fff81f81018 -[NSView
_primitiveSetNextKeyView:] + 72
6   com.apple.AppKit                    0x00007fff820732b1 -[NSView
_recursiveSetDefaultKeyViewLoop] + 242
7   com.apple.AppKit                    0x00007fff82073300 -[NSView
_recursiveSetDefaultKeyViewLoop] + 321
8   com.apple.AppKit                    0x00007fff82073300 -[NSView
_recursiveSetDefaultKeyViewLoop] + 321
9   com.apple.AppKit                    0x00007fff82073300 -[NSView
_recursiveSetDefaultKeyViewLoop] + 321
10  com.apple.AppKit                    0x00007fff82073300 -[NSView
_recursiveSetDefaultKeyViewLoop] + 321
11  com.apple.AppKit                    0x00007fff82072fc3 -[NSView
_setDefaultKeyViewLoop] + 279
12  com.apple.AppKit                    0x00007fff82072e70 -[NSWindow
recalculateKeyViewLoop] + 36
13  com.apple.AppKit                    0x00007fff821dd149
-[NSSavePanel(NSSavePanelRuntime) _loadPreviousModeAndLayout] + 39
14  com.apple.AppKit                    0x00007fff821dcf9e
-[NSSavePanel(NSSavePanelRuntime) runModalForDirectory:file:types:] +
71
15  com.NZBVortex.NZBVortex             0x000000010000b7ee
-[MainWindowViewController openNZBFileButtonClick:] + 62
16  com.apple.AppKit                    0x00007fff821c96bf
-[NSToolbarButton sendAction:to:] + 77
17  com.apple.AppKit                    0x00007fff821c8bb7
-[NSToolbarItemViewer mouseDown:] + 5362
18  com.apple.AppKit                    0x00007fff82082783 -[NSWindow
sendEvent:] + 5068
19  com.apple.AppKit                    0x00007fff8204fd46 -[NSApplication
sendEvent:] + 5089
20  com.apple.AppKit                    0x00007fff81faa562 -[NSApplication run] + 497
21  com.apple.AppKit                    0x00007fff81f772f0 NSApplicationMain + 373
22  com.NZBVortex.NZBVortex             0x0000000100012a69 main + 9
23  com.NZBVortex.NZBVortex             0x0000000100001a84 start + 52

2 个答案:

答案 0 :(得分:0)

我正在回答我自己的问题,但学分应该转到diciu和tedge。 如果他们在这里创建答案,我会将支票移到他们的帐户上。

解决方案是以32位模式运行应用程序; 更多信息:http://lists.apple.com/archives/objc-language/2008/Sep/msg00111.html

答案 1 :(得分:-1)

您似乎在openNZBFileButtonClick:中遇到错误;或者你可能已经在不应该拥有它的窗口上设置关闭时释放

AppKit中的崩溃错误窗口处理似乎不太可能。