Re: Don't you hate it when Appkit crashes?

2016-02-13 Thread Rob Petrovec
I agree that this is likely not an issue with AppKit or Core Animation. I’d start by search your code for ‘saveDocumentAs:’. Whatever object that is supposed to be getting called on is likely the object that is being smashed. You could also try running with the Static Analyzer & Address Sanit

Re: Don't you hate it when Appkit crashes?

2016-02-12 Thread Quincey Morris
On Feb 12, 2016, at 22:24 , Graham Cox wrote: > > It’s deallocated, so AppKit uses that memory for something else. I clobber > that memory using a stale reference. > > With zombies, the memory isn’t deallocated, it’s just marked as belonging to > a zombie. If I try and access it using a stale

Re: Don't you hate it when Appkit crashes?

2016-02-12 Thread Graham Cox
> On 13 Feb 2016, at 4:02 PM, Quincey Morris > wrote: > > I think, in the scenario I described, zombie detection won’t help. It’s not > an undead object, but an undead reference. > Not sure I’m understanding the difference. You said: > You could have had a reference to an object that you r

Re: Don't you hate it when Appkit crashes?

2016-02-12 Thread Quincey Morris
On Feb 12, 2016, at 19:46 , Graham Cox wrote: > > I’ve been running with zombies on and this crash occurs still I think, in the scenario I described, zombie detection won’t help. It’s not an undead object, but an undead reference. It’s also worth noting, though no help at all to you at the mom

Re: Don't you hate it when Appkit crashes?

2016-02-12 Thread Charles Srstka
> On Feb 12, 2016, at 9:46 PM, Graham Cox wrote: > > >> On 13 Feb 2016, at 10:13 AM, Quincey Morris >> wrote: >> >> On Feb 12, 2016, at 14:58 , Graham Cox wrote: >>> >>> 0 libobjc.A.dylib 0x7fff9673e4dd objc_msgSend + 29 >>> 1 com.apple.QuartzCore0x7f

Re: Don't you hate it when Appkit crashes?

2016-02-12 Thread Graham Cox
> On 13 Feb 2016, at 10:13 AM, Quincey Morris > wrote: > > On Feb 12, 2016, at 14:58 , Graham Cox wrote: >> >> 0 libobjc.A.dylib 0x7fff9673e4dd objc_msgSend + 29 >> 1 com.apple.QuartzCore 0x7fff9550eb45 >> CA::Layer::setter(unsigned int, _CAValueType,

Re: Don't you hate it when Appkit crashes?

2016-02-12 Thread Quincey Morris
On Feb 12, 2016, at 14:58 , Graham Cox wrote: > > 0 libobjc.A.dylib 0x7fff9673e4dd objc_msgSend + 29 > 1 com.apple.QuartzCore 0x7fff9550eb45 > CA::Layer::setter(unsigned int, _CAValueType, void const*) + 165 Unfortunately, it’s not obvious that it’s an

Don't you hate it when Appkit crashes?

2016-02-12 Thread Graham Cox
Anyone else seen this? It’s happening very rarely but enough to be a concern. I can’t find any way to reproduce it at will. This stack trace contains none of my code at all - any advice on how I can go about tackling this one? Crashed Thread:0 Dispatch queue: com.apple.main-thread E