Red Hat Bugzilla – Bug 58455
gimp crashes converting large image from RGB to indexed
Last modified: 2007-04-18 12:39:03 EDT
Using the xsane gimp plugin, I scanned an 8.5x11 page in color at 600 DPI. When
I attempted to convert it to indexed mode, by selecting Image -> Mode ->
Indexed... and accepting the default setting, gimp crashed with this error:
Gimp-ERROR **: file convert.c: line 2345 (median_cut_rgb): assertion failed:
(b2->Gmax >= b2->Gmin)
gimp terminated: Aborted
LibGimp-WARNING **: script-fu: wire_read: unexpected EOF
If I convert the image to 300 DPI (i.e., scale it to 0.5 / 0.5) and try again,
the conversion works, which suggests that perhaps the problem is somehow related
to how large the file is.
I'm reluctant to attach the file in question to this bug report, because it's
almost 17MB even after I bzip2 it. Instead I will describe it to you on the off
chance that you will be able to duplicate it -- white paper, blue letterhead and
footer, black typing covering most of the rest of the page. The content of the
paper may not even be relevant; the size may be enough to cause the problem. In
any case, if you can't duplicate it, please let me know and I suppose I can
attach the file to this bug or upload it to somewhere you can copy it from.
can you put the file up for download somewhere?
You're asking me in December to make available a file associated with a bug I
reported in January?
No, I'm afraid I don't have the file handy, and I can't attempt to reproduce it
right now because I just discovered that the bulb on my scanner is burned out.
I'll try to get a new bulb and see if I can reproduce the problem with it.
I can no longer duplicate this problem with gimp-1.2.3-13. Furthermore, the
error which was previously fatal has apparently been turned into a non-fatal
warning -- when I try to do the conversion described above now, I get
"Gimp-WARNING **: nope: b2->Gmax >= b2->Gmin" and gimp keeps running (and
successfully converts the image). So I guess you can close this bug.