Re: setTextColor crash (bug in Cocoa?)
Re: setTextColor crash (bug in Cocoa?)
- Subject: Re: setTextColor crash (bug in Cocoa?)
- From: email@hidden
- Date: Sun, 23 Oct 2005 23:35:58 +0200
I have managed to isolate what seems to be a bug in Cocoa. Submitted as bug
number 4312545.
(a sample code based on OutlineEdit is provided. Only a minor change to a .nib
file without any modification to the source code triggers the crash.)
Can someone look at it?
This issue is preventing me from releasing my new application, and I can't wait
until 10.5... A fix in 10.4.3 or a good workaround would be very appreciated.
> Subject: setTextColor making an application crash without being called
>
> Hello,
>
> One of my user is getting this crashing error randomly. What can be its
> origin?
> My application isn't calling setTextColor (and isn't modifying this kind of
> attribute otherwise).
> It is however importing some RTFD documents.
> Can some RTFD files be corrupted and make an application crash?
> Is this a bug in MacOS? In my application?
>
> Exception: EXC_BAD_ACCESS (0x0001)
> Codes: KERN_INVALID_ADDRESS (0x0001) at 0x286088a8
>
> Thread 0 Crashed:
> 0 <<00000000>> 0xfffeff30 objc_msgSend_rtp + 48
> 1 com.apple.CoreFoundation
> 0x9073f1c8 CFDictionarySetValue + 448
> 2 com.apple.Foundation
> 0x92864244 -[NSCFDictionary setObject:forKey:] + 184
> 3 com.apple.AppKit
>
> 0x936c48a4 -[NSTextView(NSPrivate) _addToTypingAttributes:value:] + 128
> 4 com.apple.AppKit
>
> 0x936ced70 -[NSTextView setTextColor:] + 316
> 5 com.apple.AppKit
> 0x93ad2fa0 -[_NSTextPlugin showValue:inObject:] + 372
> 6 com.apple.AppKit
> 0x9382e1b8 -[NSValueBinder showValue:inObject:] + 252
> 7 com.apple.AppKit
> 0x9382d35c -[NSValueBinder
>
_adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:]
> + 892
> 8 com.apple.AppKit
> 0x9382cf68 -[NSValueBinder _observeValueForKeyPath:ofObject:context:] + 264
> 9 com.apple.AppKit
> 0x93acff68 -[NSTextValueBinder _observeValueForKeyPath:ofObject:context:] +
> 60
> 10 com.apple.Foundation
> 0x92909a94 -[NSObject(NSKeyValueObservingPrivate)
> _notifyObserversForKeyPath:change:] + 892
> 11 com.apple.AppKit
> 0x93855b04 -[NSController _notifyObserversForKeyPath:change:] + 236
> 12 com.apple.AppKit
> 0x93855968 -[NSArrayController
> didChangeValuesForArrangedKeys:objectKeys:indexKeys:] + 144
> 13 com.apple.AppKit
> 0x9385586c -[NSArrayController
>
_selectObjectsAtIndexesNoCopy:avoidsEmptySelection:sendObserverNotifications:forceUpdate:]
> + 624
> 14 com.apple.AppKit
> 0x93857b28 -[NSArrayController
>
_selectObjectsAtIndexes:avoidsEmptySelection:sendObserverNotifications:forceUpdate:]
> + 96
> 15 com.apple.AppKit
> 0x93857ab4 -[NSArrayController setSelectionIndexes:] + 40
> 16 com.apple.Foundation
> 0x9290c480 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 180
> 17 com.apple.AppKit
> 0x93857444 -[NSBinder
>
_setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error:]
> + 300
> 18 com.apple.AppKit
> 0x938572cc -[NSBinder setValue:forBinding:error:] + 224
> 19 com.apple.AppKit
> 0x93ac8bb0 -[NSTableBinder tableView:didChangeToSelectedRowIndexes:] + 156
> 20 com.apple.AppKit
> 0x93ab8e20 -[_NSBindingAdaptor tableView:didChangeToSelectedRowIndexes:] +
> 152
> 21 com.apple.AppKit
> 0x936aafa4 -[NSTableView _enableSelectionPostingAndPost] + 376
> 22 com.apple.AppKit
> 0x936c00b0 -[NSTableView mouseDown:] + 2768
> 23 com.apple.AppKit
> 0x9365f9c8 -[NSWindow sendEvent:] + 4616
> 24 com.apple.AppKit
> 0x93608bfc -[NSApplication sendEvent:] + 4172
> 25 com.apple.AppKit
> 0x93600090 -[NSApplication run] + 508
> 26 com.apple.AppKit
> 0x936f08bc NSApplicationMain + 452
> 27 com.brunoblondeau.myapp 0x00002bd8 _start + 344 (crt.c:272)
> 28 com.brunoblondeau.myapp 0x00002a7c start + 60
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden