Re: Crash drawing image

2009-10-25 Thread slasktrattena...@gmail.com
Done. Bug ID# 7334881. On Sun, Oct 25, 2009 at 8:41 PM, Ken Ferry wrote: > Hm, nothing obviously wrong. > Could you please file a bug at bugreporter.apple.com and send me the number? >  Thanks. > -Ken > Cocoa Frameworks > On Sun, Oct 25, 2009 at 2:34 AM, slasktrattena...@gmail.com > wrote: >> >>

Re: Crash drawing image

2009-10-25 Thread Ken Ferry
Hm, nothing obviously wrong. Could you please file a bug at bugreporter.apple.com and send me the number? Thanks. -Ken Cocoa Frameworks On Sun, Oct 25, 2009 at 2:34 AM, slasktrattena...@gmail.com < slasktrattena...@gmail.com> wrote: > I've uploaded a simple test case here: > > http://dl.getdro

Re: Crash drawing image

2009-10-25 Thread slasktrattena...@gmail.com
I've uploaded a simple test case here: http://dl.getdropbox.com/u/550950/gc-crash.zip On Sat, Oct 24, 2009 at 11:18 PM, Ken Ferry wrote: > If you have extracted this to a test project, does that mean you now > have a reproducing case whose source you can share? If so, why don't > you put it up s

Re: Crash drawing image

2009-10-24 Thread Kyle Sluder
On Sat, Oct 24, 2009 at 3:41 PM, Andrew Farmer wrote: > Try SSHing in from another machine and attaching to the process that way? If you want to do this from within Xcode: http://lists.apple.com/archives/xcode-users/2008/May/msg00226.html --Kyle Sluder __

Re: Crash drawing image

2009-10-24 Thread Andrew Farmer
On 24 Oct 2009, at 10:36, slasktrattena...@gmail.com wrote: And after the crash, gdb is confused and can't get info about the process? Sort of. I think the problem is no app can have keyboard focus as long as the screensaver is running/frontmost. So Xcode is not responding to keyboard events un

Re: Crash drawing image

2009-10-24 Thread Ken Ferry
If you have extracted this to a test project, does that mean you now have a reproducing case whose source you can share? If so, why don't you put it up somewhere. You could also try doing a Build and Analyze in Xcode. It is possible to make memory management mistakes in gc, and the analyzer will c

Re: Crash drawing image

2009-10-24 Thread slasktrattena...@gmail.com
Weird... It seems that sourceImage (the generic one only) is being garbage collected in the middle of the drawing. If I disable GC just before doing the drawing, and enable it again afterwards, the process stops crashing. I verified this by making a new project, where I placed the screensaver view

Re: Crash drawing image

2009-10-24 Thread slasktrattena...@gmail.com
Thanks for your reply. On Sat, Oct 24, 2009 at 6:03 PM, Jens Alfke wrote: > > It would be really good to get a backtrace. Are you launching the process > with gdb, or at least attaching before the crash? Yes. I'm launching with gdb and pass the "debug" argument to Screen Saver Engine. This way t

Re: Crash drawing image

2009-10-24 Thread Jens Alfke
On Oct 24, 2009, at 6:51 AM, slasktrattena...@gmail.com wrote: When the crash happens, I get the spinning beach ball until I terminate the process, so I cannot investigate it any further (I think?). Anyway, this is what I get from the debugger: Program received signal: “EXC_BAD_ACCESS”. Error

Crash drawing image

2009-10-24 Thread slasktrattena...@gmail.com
Hello! I'm getting a random “EXC_BAD_ACCESS” on this line: [sourceImage compositeToPoint:NSMakePoint(0, height) operation:NSCompositeCopy]; sourceImage is an iTunes artwork, or a generic artwork icon if the current track has none. The crash ONLY happens with this generic icon (and only at random