Skip navigation.
 
mlRe: NSDocument with NSMatrix crasher (10.4)
FROM : Shehryar Khan
DATE : Sun Jul 09 19:33:09 2006

Matt,

Thanks for trying this out.

One small variation:

If you enter text into the first cell of the matrix (cell at row 0, 
column 0) the app doesn't crash.  Try entering text into a cell other 
than that one and see if you are able to reproduce.  In addition (as 
per the instructions) it's specific to documents that have been 
opened.  New documents work just fine.

I just ran through this with a friend of mine and the same thing 
happened for him so it's not specific to my machine / environment.

Here's a more formal crash report:

Date/Time:      2006-07-09 10:24:55.503 -0700
OS Version:    10.4.7 (Build 8J2135)
Report Version: 4

Command: DocumentTestApp
Path:    /Users/khans/DocumentTestApp/build/Debug/DocumentTestApp.app/
Contents/MacOS/DocumentTestApp
Parent:  WindowServer [62]

Version: ??? (1.0)

PID:    4527
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x0000001c

Thread 0 Crashed:
0  com.apple.AppKit                   0x93418dd4 -[NSMatrix 
setNeedsDisplayInRect:] + 26
1  com.apple.AppKit                   0x933eda29 -[NSView 
setKeyboardFocusRingNeedsDisplayInRect:] + 69
2  com.apple.AppKit                   0x93479838 -
[_NSKeyboardFocusClipView _setKeyboardFocusRingNeedsDisplay] + 271
3  com.apple.AppKit                   0x9348fddc -
[_NSKeyboardFocusClipView _clearFocusForView] + 293
4  com.apple.AppKit                   0x9348fe4a -
[_NSKeyboardFocusClipView removeFromSuperview] + 34
5  com.apple.AppKit                   0x93444fb5 -[NSView 
removeFromSuperviewWithoutNeedingDisplay] + 38
6  com.apple.CoreFoundation           0x90834f26 CFArrayApplyFunction + 
307
7  com.apple.AppKit                   0x933c2333 -[NSView _finalize] + 386
8  com.apple.AppKit                   0x933c2188 -[NSView dealloc] + 41
9  com.apple.AppKit                   0x9347a011 -[NSControl dealloc] + 
163
10  com.apple.AppKit                   0x9353ef06 -[NSMatrix dealloc] + 316
11  com.apple.AppKit                   0x933afd43 -[NSView release] + 180
12  com.apple.Foundation               0x9270d873 NSPopAutoreleasePool + 
530
13  com.apple.AppKit                   0x9339d130 -[NSApplication run] + 
589
14  com.apple.AppKit                   0x93391037 NSApplicationMain + 573
15  ...yourcompany.DocumentTestApp     0x00008ffc main + 30 (main.m:14)
16  ...yourcompany.DocumentTestApp     0x00001d82 start + 270
17  ...yourcompany.DocumentTestApp     0x00001c9d start + 41

Thread 1:
0  libSystem.B.dylib                 0x9002763c kevent + 12
1  ...ple.CoreServices.CarbonCore     0x90ca9ae4 PrivateMPEntryPoint + 51
2  libSystem.B.dylib                 0x90024b07 _pthread_body + 84

Thread 2:
0  libSystem.B.dylib                 0x900251a7 
semaphore_wait_signal_trap + 7
1  ...ple.CoreServices.CarbonCore     0x90ca9c8a MPWaitOnQueue + 198
2  com.apple.DesktopServices         0x9264ef3f 
TNodeSyncTask::SyncTaskProc(void*) + 143
3  ...ple.CoreServices.CarbonCore     0x90ca9ae4 PrivateMPEntryPoint + 51
4  libSystem.B.dylib                 0x90024b07 _pthread_body + 84

Thread 3:
0  libSystem.B.dylib                 0x9003fb1f syscall_thread_switch + 7
1  com.apple.AppKit                   0x9347a772 -[NSUIHeartBeat 
_heartBeatThread:] + 1399
2  com.apple.Foundation               0x927291b0 forkThreadForFunction 
+ 123
3  libSystem.B.dylib                 0x90024b07 _pthread_body + 84

Thread 4:
0  libSystem.B.dylib                 0x900492e7 
semaphore_timedwait_signal_trap + 7
1  ...ple.CoreServices.CarbonCore     0x90ca9c8a MPWaitOnQueue + 198
2  com.apple.DesktopServices         0x92671203 
TPropertyTask::PropertyTaskProc(void*) + 101
3  ...ple.CoreServices.CarbonCore     0x90ca9ae4 PrivateMPEntryPoint + 51
4  libSystem.B.dylib                 0x90024b07 _pthread_body + 84

Thread 0 crashed with i386 Thread State:
eax: 0x93418dba    ebx: 0x93418dcb ecx:0x90abd910 edx: 0x00000000
edi: 0x003b3520    esi: 0x42480000 ebp:0xbffff718 esp: 0xbffff670
ss: 0x0000002f    efl: 0x00010282 eip:0x93418dd4  cs: 0x00000027
ds: 0x0000002f    es: 0x0000002f  fs:0x00000000  gs: 0x00000037

Binary Images Description:
    0x1000 -    0x4fff com.yourcompany.DocumentTestApp ??? (1.0)    /
Users/khans/DocumentTestApp/build/Debug/DocumentTestApp.app/Contents/
MacOS/DocumentTestApp
    0x8000 -    0x8fff com.yourcompany.DocumentTestApp ??? (1.0)    /
Users/khans/DocumentTestApp/build/Debug/DocumentTestApp.app/Contents/
MacOS/DocumentTestApp
    0x27000 -    0x27fff com.yourcompany.DocumentTestApp ??? (1.0)    /
Users/khans/DocumentTestApp/build/Debug/DocumentTestApp.app/Contents/
MacOS/DocumentTestApp
0x8fe00000 - 0x8fe4bfff dyld 45.1    /usr/lib/dyld
0x90000000 - 0x9016efff libSystem.B.dylib     /usr/lib/libSystem.B.dylib
0x901be000 - 0x901c0fff libmathCommon.A.dylib     /usr/lib/system/
libmathCommon.A.dylib
0x901c2000 - 0x901fefff com.apple.CoreText 1.1.1 (???)    /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreText.framework/Versions/A/CoreText
0x90225000 - 0x902fafff ATS     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/
Versions/A/ATS
0x9031a000 - 0x9076afff com.apple.CoreGraphics 1.258.33 (???)    /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x90801000 - 0x908c9fff com.apple.CoreFoundation 6.4.6 (368.27)    /
System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundation
0x90907000 - 0x90907fff com.apple.CoreServices 10.4 (???)    /System/
Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90909000 - 0x909fcfff libicucore.A.dylib     /usr/lib/libicucore.A.dylib
0x90a4c000 - 0x90acbfff libobjc.A.dylib     /usr/lib/libobjc.A.dylib
0x90af4000 - 0x90b57fff libstdc++.6.dylib     /usr/lib/libstdc++.6.dylib
0x90bc6000 - 0x90bcdfff libgcc_s.1.dylib     /usr/lib/libgcc_s.1.dylib
0x90bd2000 - 0x90c42fff com.apple.framework.IOKit 1.4.4 (???)    /System/
Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c57000 - 0x90c69fff libauto.dylib     /usr/lib/libauto.dylib
0x90c6f000 - 0x90f14fff com.apple.CoreServices.CarbonCore 682.12    /
System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90f57000 - 0x90fbffff com.apple.CoreServices.OSServices 4.1    /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
OSServices.framework/Versions/A/OSServices
0x90ff7000 - 0x91035fff com.apple.CFNetwork 129.16    /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
CFNetwork.framework/Versions/A/CFNetwork
0x91047000 - 0x91057fff com.apple.WebServices 1.1.3 (1.1.0)    /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
WebServicesCore.framework/Versions/A/WebServicesCore
0x91062000 - 0x910e0fff com.apple.SearchKit 1.0.5    /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
SearchKit.framework/Versions/A/SearchKit
0x91115000 - 0x91133fff com.apple.Metadata 10.4.4 (121.36)    /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
Metadata.framework/Versions/A/Metadata
0x9113f000 - 0x9114dfff libz.1.dylib     /usr/lib/libz.1.dylib
0x91150000 - 0x91306fff com.apple.security 4.4.1 (27569)    /System/
Library/Frameworks/Security.framework/Versions/A/Security
0x913f5000 - 0x913fdfff com.apple.DiskArbitration 2.1    /System/Library/
Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91404000 - 0x9142afff com.apple.SystemConfiguration 1.8.6    /System/
Library/Frameworks/SystemConfiguration.framework/Versions/A/
SystemConfiguration
0x9143c000 - 0x91443fff libbsm.dylib     /usr/lib/libbsm.dylib
0x91447000 - 0x914c0fff com.apple.audio.CoreAudio 3.0.4    /System/
Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x9150e000 - 0x9150efff com.apple.ApplicationServices 10.4 (???)    /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
ApplicationServices
0x91510000 - 0x9153bfff com.apple.AE 314 (313)    /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
AE.framework/Versions/A/AE
0x9154e000 - 0x91622fff com.apple.ColorSync 4.4.6    /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
ColorSync.framework/Versions/A/ColorSync
0x9165b000 - 0x916d8fff com.apple.print.framework.PrintCore 4.6 
(177.13)    /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91705000 - 0x917affff com.apple.QD 3.10.20 (???)    /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
QD.framework/Versions/A/QD
0x917d5000 - 0x91820fff com.apple.HIServices 1.5.2 (???)    /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/HIServices.framework/Versions/A/HIServices
0x9183f000 - 0x91855fff com.apple.LangAnalysis 1.6.3    /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LangAnalysis.framework/Versions/A/LangAnalysis
0x91861000 - 0x9187bfff com.apple.FindByContent 1.5    /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
FindByContent.framework/Versions/A/FindByContent
0x91885000 - 0x918c2fff com.apple.LaunchServices 180    /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/LaunchServices
0x918d6000 - 0x918e1fff com.apple.speech.synthesis.framework 3.4    /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x918e8000 - 0x91920fff com.apple.ImageIO.framework 1.4.7    /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91932000 - 0x919e4fff libcrypto.0.9.7.dylib     /usr/lib/libcrypto.
0.9.7.dylib
0x91a2a000 - 0x91a40fff libcups.2.dylib     /usr/lib/libcups.2.dylib
0x91a45000 - 0x91a61fff libJPEG.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJPEG.dylib
0x91a66000 - 0x91ac4fff libJP2.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJP2.dylib
0x91ad4000 - 0x91ad8fff libGIF.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libGIF.dylib
0x91ada000 - 0x91b35fff libRaw.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRaw.dylib
0x91b39000 - 0x91b76fff libTIFF.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libTIFF.dylib
0x91b7c000 - 0x91b96fff libPng.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libPng.dylib
0x91b9b000 - 0x91b9dfff libRadiance.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRadiance.dylib
0x91b9f000 - 0x91b9ffff com.apple.Accelerate 1.2.2 (Accelerate 
1.2.2)    /System/Library/Frameworks/Accelerate.framework/Versions/A/
Accelerate
0x91ba1000 - 0x91c2bfff com.apple.vImage 2.4    /System/Library/
Frameworks/Accelerate.framework/Versions/A/Frameworks/
vImage.framework/Versions/A/vImage
0x91c32000 - 0x91c32fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 
3.2.2)    /System/Library/Frameworks/Accelerate.framework/Versions/A/
Frameworks/vecLib.framework/Versions/A/vecLib
0x91c34000 - 0x91c79fff libvMisc.dylib     /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvMisc.dylib
0x91c81000 - 0x91ca6fff libvDSP.dylib     /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvDSP.dylib
0x91cad000 - 0x92230fff libBLAS.dylib     /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libBLAS.dylib
0x9226d000 - 0x9261ffff libLAPACK.dylib     /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libLAPACK.dylib
0x9264c000 - 0x926d0fff com.apple.DesktopServices 1.3.4    /System/
Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/
DesktopServicesPriv
0x9270c000 - 0x9293efff com.apple.Foundation 6.4.6 (567.27)    /System/
Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92a4a000 - 0x92b28fff libxml2.2.dylib     /usr/lib/libxml2.2.dylib
0x92b45000 - 0x92c32fff libiconv.2.dylib     /usr/lib/libiconv.2.dylib
0x92c42000 - 0x92c59fff libGL.dylib     /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92c64000 - 0x92cbbfff libGLU.dylib     /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92cef000 - 0x92cf7fff com.apple.speech.recognition.framework 3.5    /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92edb000 - 0x92ee8fff com.apple.audio.SoundManager 3.9.1    /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CarbonSound.framework/Versions/A/CarbonSound
0x92ef9000 - 0x931ebfff com.apple.HIToolbox 1.4.8 (???)    /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
0x932f0000 - 0x932fbfff com.apple.opengl 1.4.10    /System/Library/
Frameworks/OpenGL.framework/Versions/A/OpenGL
0x9338a000 - 0x9338afff com.apple.Cocoa 6.4 (???)    /System/Library/
Frameworks/Cocoa.framework/Versions/A/Cocoa
0x9338c000 - 0x93a45fff com.apple.AppKit 6.4.7 (824.41)    /System/
Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x93dc6000 - 0x93e40fff com.apple.CoreData 90    /System/Library/
Frameworks/CoreData.framework/Versions/A/CoreData
0x93e79000 - 0x93f3afff com.apple.audio.toolbox.AudioToolbox 1.4.3    /
System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x93f7a000 - 0x93f7afff com.apple.audio.units.AudioUnit 1.4.2    /System/
Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x93f7c000 - 0x9412afff com.apple.QuartzCore 1.4.8    /System/Library/
Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x94178000 - 0x941b9fff libsqlite3.0.dylib     /usr/lib/libsqlite3.0.dylib
0x941c1000 - 0x941fbfff libGLImage.dylib     /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x94381000 - 0x94390fff libCGATS.A.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x94397000 - 0x943a2fff libCSync.A.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x943ee000 - 0x94408fff libRIP.A.dylib     /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9616e000 - 0x9616ffff com.apple.zerolink 1.2 (3)    /System/Library/
PrivateFrameworks/ZeroLink.framework/Versions/A/ZeroLink

Model: MacBookPro1,2, BootROM MBP12.0061.B00, 2 processors, Intel 
Core Duo, 2.16 GHz, 2 GB
Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 256 MB
Memory Module: DIMM0/BANK 0, 1 GB, DDR2 SDRAM, 667 MHz
Memory Module: DIMM1/BANK 1, 1 GB, DDR2 SDRAM, 667 MHz
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x86), 
0.1.24
Bluetooth: Version 1.7.5f10, 2 service, 1 devices, 1 incoming serial 
ports
Network Service: AirPort, AirPort, en1
Network Service: Parallels Host-Guest Adapter, Ethernet, en2
Serial ATA Device: ST910021AS, 93.16 GB
Parallel ATA Device: MATSHITADVD-R  UJ-846
USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up to 
12 Mb/sec, 500 mA
USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA
USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA

thanks.

-shehryar

On Jul 9, 2006, at 10:07 AM, Matt Neuburg wrote:

> On Sat, 8 Jul 2006 22:30:04 -0700, Shehryar Khan 
> <<email_removed>> said:
>

>> - create a new document based application
>>
>> launch xcode
>> File -> New Project...
>> choose Cocoa Document-based Application
>> specify a name (anything will do) and a location (any will do)
>> click on Finish
>>
>> - edit the nib
>>
>> open up MyDocument.nib (should live under Resources)
>> delete the "Your document contents here"
>> grab a text field to your document window
>> reduce it's size and then select it
>> alt-drag first horizontally, then vertically to create a matrix of
>> text fields
>> save the nib
>>
>> - modify -[MyDocument windowControllerDidLoadNib:]
>>
>> add the following piece of code
>>
>> [self updateChangeCount:NSChangeDone];
>>
>> (note: adding this because we want to mark the window dirty to spawn
>> the
>>  unsaved changes sheet which will trip the bug)
>>
>> - set an extension that this app will open - anything will do here (I
>> chose .txt)
>>
>> edit Info.plist and add "txt" to the CFBundleTypeExtensions array
>>
>> - build and run the application
>>
>> choose File -> Open...
>> in the Open Panel select a .txt file
>> choose a cell in the matrix and type in something
>> click on the close button
>> in the result Unsaved changes sheet choose "Don't Save"
>> watch the app crash

>
> I did everything you said (I believe), and there was no crash. m.
>
> --
> matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide - Second Edition!
> <http://www.amazon.com/gp/product/0596102119>
>
>
>
>

Related mailsAuthorDate
mlNSDocument with NSMatrix crasher (10.4) Shehryar Khan Jul 9, 07:30
mlRe: NSDocument with NSMatrix crasher (10.4) Matt Neuburg Jul 9, 19:07
mlRe: NSDocument with NSMatrix crasher (10.4) Matt Neuburg Jul 9, 19:28
mlRe: NSDocument with NSMatrix crasher (10.4) Shehryar Khan Jul 9, 19:33
mlRe: NSDocument with NSMatrix crasher (10.4) Shehryar Khan Jul 9, 19:41
mlRe: NSDocument with NSMatrix crasher (10.4) Erik Buck Jul 9, 21:28
mlRe: NSDocument with NSMatrix crasher (10.4) Matt Neuburg Jul 10, 16:18
mlRe: [temporary workaround] NSDocument with NSMatrix crasher (10.4) Shehryar Khan Jul 10, 23:52
mlRe: NSDocument with NSMatrix crasher (10.4) Erik Buck Jul 11, 00:06
mlRe: NSDocument with NSMatrix crasher (10.4) Matt Neuburg Jul 11, 00:58
mlRe: [Solved] NSDocument with NSMatrix crasher (10.4) Shehryar Khan Jul 11, 01:01