Re: Interesting error in GWorkspace

2011-09-12 Thread David Chisnall
On 11 Sep 2011, at 20:01, Eric Wasylishen wrote: I wonder if the clang static analyzer can find places where we send a message returning something other than an object to something that might be nil? Clang will automatically insert a check that receivers are nil for structure returns and

Re: Interesting error in GWorkspace

2011-09-11 Thread Riccardo Mottola
Hi Eric, On 09/09/11 21:53, Eric Wasylishen wrote: Hi Riccardo, I think I found the problem. Sorry about this, it was a sloppy mistake on my part. When I modified _doImageCache:, I was assuming the rep parameter would be non-nil, so I sent [rep size] to it and used that when setting up the

Re: Interesting error in GWorkspace

2011-09-11 Thread Eric Wasylishen
On 2011-09-11, at 10:24 AM, Riccardo Mottola wrote: Hi Eric, On 09/09/11 21:53, Eric Wasylishen wrote: Hi Riccardo, I think I found the problem. Sorry about this, it was a sloppy mistake on my part. When I modified _doImageCache:, I was assuming the rep parameter would be non-nil, so

Re: Interesting error in GWorkspace

2011-09-09 Thread Riccardo Mottola
Hi, some updates On 09/08/11 21:04, Eric Wasylishen wrote: I added two extra checks: one against creating a NSCachedImageRep with a size of zero (it looks like that is where the NSView with size 0,0 was coming from), and a check against locking focus on an image with a size of 0,0. Maybe

Re: Interesting error in GWorkspace

2011-09-09 Thread Eric Wasylishen
Hi Riccardo, I think I found the problem. Sorry about this, it was a sloppy mistake on my part. When I modified _doImageCache:, I was assuming the rep parameter would be non-nil, so I sent [rep size] to it and used that when setting up the cache. But in fact, the rep parameter is nil when you

Re: Interesting error in GWorkspace

2011-09-08 Thread Riccardo Mottola
Hi ok, gdb must be confused because there is an NSAffineTransform.m in both base and gui. Sorry, I'm not sure what to try next :-/ me neither. I wonder if this a bug in base? I think not, I feel that something is passing bad transform parameters. I was able to break into it by setting

Interesting error in GWorkspace

2011-09-07 Thread Riccardo Mottola
Hi, I tried to run Gworkspace today on NetBSD/x86 where it worked until little time ago. I get interesting errors: a couple of: 2011-09-07 18:20:59.828 GWorkspace[217] error: determinant of matrix is 0! 2011-09-07 18:20:59.830 GWorkspace[217] File NSView.m: 1489. In -[NSView setBoundsSize:]

Re: Interesting error in GWorkspace

2011-09-07 Thread Eric Wasylishen
Hi Riccardo, Hm, I can't reproduce this :-(. Could you set breakpoints on error: determinant of matrix is 0! and Required arguments not specified creating NSBitmapImageRep and print the backtraces please? I've seen the Required arguments not specified creating NSBitmapImageRep error before; I

Re: Interesting error in GWorkspace

2011-09-07 Thread Riccardo Mottola
Hi Eric Here you go... Hm, I can't reproduce this :-(. Could you set breakpoints on error: determinant of matrix is 0! and Required arguments not specified creating NSBitmapImageRep and print the backtraces please? I've seen the Required arguments not specified creating NSBitmapImageRep

Re: Interesting error in GWorkspace

2011-09-07 Thread Eric Wasylishen
On 2011-09-07, at 3:41 PM, Riccardo Mottola wrote: Hi Eric Here you go... Hm, I can't reproduce this :-(. Could you set breakpoints on error: determinant of matrix is 0! and Required arguments not specified creating NSBitmapImageRep and print the backtraces please? I've seen the