簡體   English   中英

警報面板出現后,窗口保存彈出菜單消失時,基於可可文檔的應用程序崩潰

[英]Cocoa document based app crashes when window save popup menu disappeared after alert panel appears

OS X 10.10.3。 什么會導致基於Cocoa文檔的文檔應用程序發生以下崩潰? 僅當窗口保存彈出面板消失時才會發生: 保存彈出面板

如果出現“文件已存在”警報表: 更換警報表

更新:有時,當僅關閉彈出窗口時,應用程序也會崩潰,但可以保證出現警報表時。

崩潰堆棧:

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000061890cbbec0

VM Regions Near 0x61890cbbec0:
    MALLOC_LARGE           000000011da03000-000000011eca3000 [ 18.6M] rw-/rwx SM=ZER  
--> 
    __TEXT                 0000123400000000-00001234004a5000 [ 4756K] r-x/rwx SM=COW  /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver

Application Specific Information:
objc_msgSend() selector name: isKindOfClass:


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff899120dd objc_msgSend + 29
1   com.apple.ViewBridge            0x00007fff8cadbe74 -[NSRemoteViewBase viewWillMoveToWindow:] + 367
2   com.apple.AppKit                0x00007fff94ca90de -[NSView _setWindow:] + 257
3   com.apple.CoreFoundation        0x00007fff8fafa705 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
4   com.apple.CoreFoundation        0x00007fff8faf9e09 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
5   com.apple.AppKit                0x00007fff9542d474 __21-[NSView _setWindow:]_block_invoke735 + 169
6   com.apple.AppKit                0x00007fff94ca9c54 -[NSView _setWindow:] + 3191
7   com.apple.AppKit                0x00007fff94cb73d7 -[NSVisualEffectView _setWindow:] + 214
8   com.apple.AppKit                0x00007fff94f12747 -[NSPopoverFrame _setWindow:] + 111
9   com.apple.AppKit                0x00007fff94ef961f -[NSWindow dealloc] + 1201
10  com.apple.AppKit                0x00007fff94f8c9f5 -[_NSPopoverWindow dealloc] + 74
11  com.apple.AppKit                0x00007fff94ca68cc -[NSWindow release] + 193
12  com.apple.CoreFoundation        0x00007fff8faf78ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
13  com.apple.CoreFoundation        0x00007fff8fae99f5 __CFRunLoopDoBlocks + 341
14  com.apple.CoreFoundation        0x00007fff8fae91ae __CFRunLoopRun + 910
15  com.apple.CoreFoundation        0x00007fff8fae8bd8 CFRunLoopRunSpecific + 296
16  com.apple.HIToolbox             0x00007fff92b7256f RunCurrentEventLoopInMode + 235
17  com.apple.HIToolbox             0x00007fff92b722ea ReceiveNextEventCommon + 431
18  com.apple.HIToolbox             0x00007fff92b7212b _BlockUntilNextEventMatchingListInModeWithFilter + 71
19  com.apple.AppKit                0x00007fff94d079bb _DPSNextEvent + 978
20  com.apple.AppKit                0x00007fff94d06f68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
21  com.apple.AppKit                0x00007fff94cfcbf3 -[NSApplication run] + 594
22  com.apple.AppKit                0x00007fff94c79354 NSApplicationMain + 1832

我在應用程序中將Base SDK從10.9更改為10.10,它解決了該問題。 如我所見,崩潰僅在10.10.3和更高版本的系統上發生。 如果要使TextEdit崩潰,只需將Base SDK更改為10.9或打開TextEdit 1.9或更早版本。 還有人已經寫過雷達http://openradar.appspot.com/20991953

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM