From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115
Description of problem:
When using the magic wand "Select contiguous regions" tool to select
a region in the upper right quadrant of my picture, gimp crashes. It
has done this since RH 8.0, which was what I was running when I first
scanned the picture that demonstrates the problem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Select magic wand tool
2.Click in reddish-pink area in upper right of picture
Actual Results: Crash
Expected Results: Should select a region matching the color I clicked on.
Created attachment 98078 [details]
Last 500 lines of strace
Here is an strace of gimp when it crashed.
I can send the picture that allows me reproduce this everytime,
however it is like 13 or 14 Megs. Let me know if you want me attach
it to this bug.
This is very strange because I never experienced this for as long as I
can remember and I regularly work on really large files (up to
~100MB). In fact just yesterday I used the magic wand tool on an ~18MB
full resolution scan of one of my slides, it worked as expected.
Please attach a bzipped _complete_ strace as I cannot see what the
file descriptor the gimp fails on with -EPIPE is connected to.
Forgot: run it like this:
strace -Ff -s 80 -o gimp-strace.out gimp <...>
This might get mighty big, so please tell me if the bzipped strace
file exceeds 2MB, then I have to think about something else.
I just tried this on the largest image available to me (5313 x 3542
pixels, 197MB size in mem) and it worked as expected.
Wow, the uncompressed file was 300MB. After 30 minutes of bzipping,
it came out at 2.2MB. Do you want me to attach it?
Amazing, but no -- bugzilla will refuse it, it's too large... ;-).
We'll have to do it differently. Please give only the last 20 lines or
so, I'll tell you what to do then.
BTW, just curious -- what did you do? I straced selecting my file
exactly with the same strace command and it was only like 14.5MB
uncompressed. I did:
- start the gimp
- load the file via File/Open Recent
- choose the magic wand tool
- click in the image to select something
- end the gimp
Created attachment 98086 [details]
Lastt 20 lines of strace that you requested
Here's the strace. Yup, thats how I created the trace, only after I select
something with the wand, I get the hourgall cursor for a while then poof. Gimp
Please run this on your strace file and give me the output:
LANG=C egrep -20 '^[0-9]+ socket.* = 3$' <yourfilehere>
ahh and maybe (I'm in for double comments today, eh?) this as well:
LANG=C grep ' = 3$' <yourfilehere> | egrep -v 'read|write'
Just noticed this is FC1 -- been a bit obsessed with gimp-2.0pre for
the upcoming FC2 lately...
I could reproduce this in gimp-1.2.5 also, finally I'm getting somewhere.
You didn't run strace with '-Ff', did you? I'm missing the PIDs at the
beginning of the lines. Anyway, doesn't hurt, just do the greps like this:
LANG=C egrep '^(socket|connect)' <yourfilehere>
LANG=C grep ' = 3$' <yourfilehere> | LANG=C egrep -v 'read|write'
Created attachment 98090 [details]
output from LANG=C grep ' = 3$' <yourfilehere> | LANG=C egrep -v 'read|write'
This is the only grep I got any output from. I did an
strace -Ff -s 80 -o gimp-strace.out gimp
to get the 300 + meg trace.
Ahh, now your file has PIDs in it -- just run
LANG=C egrep 'socket|connect' <yourfilehere>
Created attachment 98102 [details]
grep of connect|socket
Here is the output of the grep you asked for.
OK it seems that channel 3 -- which is the connection to the X server
-- gets a -EPIPE upon a write. I'm not quite sure whether the real
problem is on the X server side (which shouldn't just close the
channel) or on the toolkit/app side (which maybe shouldn't send so
much data at once or should reconnect on the -EPIPE).
Mike can you please comment on this?
Don, can you reproduce this on an up2date FC2 or FC3?
Yes, I just tried on FC2 and although it takes more time to get gimp
to crash, it does still crash. The first time or two that I use the
magic wand, all works as expected. However it does crash after the
first couple of applicatins of the magic wand. On gimp 1.?, it never
even finished the first magic wand selection, so I'm not entirely sure
that it is exactly the same bug. Should I do an strace like in
comment 14 and 15 above?
Yes, do it like described, but attach only the last ~100k or so
(should suffice) of the "unfiltered" strace output and the (complete
if not too big) output of the grepped stace. Thanks.
Which versions of gimp and xorg-x11 do you use?
[dchimelr@himelrick dchimelr]$ strace -Ff -s 80 -o gimp-strace.out gimp
(script-fu:17647): LibGimpBase-WARNING **: script-fu: wire_read(): error
I got this when I ran gimp. I'll attach the strace output next.
Here are the versions....
Created attachment 104724 [details]
last 1000 lines of strace
Created attachment 104725 [details]
grep of strace for socket|connect
Can you please try this with gimp-2.0.5-0.fc2.1, available from
-- as well? Just to verify whether this problem is there in the latest
pending update. Thanks.
Well, after 5 minutes of magic-wanding, it did not crash. The magic
wand seems to work a little better and faster now as well. So after a
quick test, it seems to be fixed in the pending update.
Good to hear that they seem to have it fixed upstream. I'll close this
bug for now, if you ever encounter it again, don't hesitate to reopen it.