Re: Greyscale crash
On 14 Jun, Sven Neumann wrote: app/pixel_region.c 1.20 app/paint_core.c 1.90 app/paint_core.h 1.30 app/undo.c 1.60 and couldn't see any problems. I could reproduce the crash after reverting all those changes, so it seems the problem is elsewhere. Okay, traced this problem further. The debugger says GIMP is dying while trying to g_realloc some mem for a brush in temp_buf_resize but I can't see anything strange going on there i.e. the addresses have been valid before and size is != 0. Could it be that someone freed that memory just before we're trying to use it while painting? Why does this problem only occur while we're using color brushes on grayscale images and painting on the edge of the image (i.e. the brush gets clipped)? And why the hell do we realloc the memory even if NOTHING has changed? -- Servus, Daniel
Re: Greyscale crash
On 14 Jun, Sven Neumann wrote: app/pixel_region.c 1.20 app/paint_core.c 1.90 app/paint_core.h 1.30 app/undo.c 1.60 and couldn't see any problems. I could reproduce the crash after reverting all those changes, so it seems the problem is elsewhere. ME TOO. GIMP tries to free unexistant memory. Unfortunately I can't tell where the logic fails at the moment. Anyway: While debugging this one I saw quite a lot of memory allocations going on for just a single dot on the screen... this is quite wierd -- Servus, Daniel
Re: Greyscale crash
Hi, Does anyone recognise this? I'm fairly sure it's a brand new "feature" perhaps from recent patches to app/ ? If no-one recognises this I will file it through the normal channels, but since it looks like a fresh regression it seemed easiest to ask first. 1. Create new _greyscale_ image 2. Use a nice colorful pepper brush (you know, the demo color brush) 3. Scribble all over the image, off the edges... [This being a memory scribble bug it might not work first time] 4. Bang. I can reproduce this. Multiple stacktraces show that the error does not always occur at the same place but is always related to tile memory. I have carefully checked the latest changes to app that might cause the problem: app/pixel_region.c 1.20 app/paint_core.c 1.90 app/paint_core.h 1.30 app/undo.c 1.60 and couldn't see any problems. I could reproduce the crash after reverting all those changes, so it seems the problem is elsewhere. Salut, Sven