GNOME Bugzilla – Bug 316389
gdk_pixbuf_composite_color() produces scrambled result in AIX
Last modified: 2018-05-22 13:04:01 UTC
Distribution/Version: 5.2 Open the "Open Image" dialog box and single click the file containing image. The preview of the image is scrambled
Does this happen with all images? How is the preview scrambled (perhaps attach a screenshot)? What if you force the preview to be regenerated (Ctrl-Click on the preview)?
The bug is reproducible with various image formats (jpeg/gif/ps/eps/png). Regeneration of the preview image doesn't help
What about the screenshot that I asked you to attach?
Created attachment 52362 [details] scrambled (AIX) and normal (Debian Linux/i386) previews on the same display Two preview images of two differen gimp2s (aix and linux) on the same display. Hopefully this one will reach you (I blew something up while creating the attachment few hours ago, sorry) Jack
Can you please tell me the full path of the image file we are looking at here? I can then tell you where the thumbnail is stored on disk and we could examine the thumbnail file to find out if the thumbnail is already scrambled or if it is just not being displayed correctly.
Sorry for late reply (was horribly bz), Full path (on both machines): /homez/jack/pictures/cheburashka.gif Jack
More info: actually, the path is the same fs (nfs) mounted on both machines. Jack
Please check if the file "a5d59087135b382304f6e4cbf08d58bc.png" exists in the directory ~/.thumbnails/normal or ~/.thumbnails/large. If you can locate it, please attach it here.
Created attachment 52658 [details] thumbnail image
The thumbnail seems OK, so most likely you are experiencing a bug in either gdk-pixbuf (part of gtk+) or libpng. What happens if you load the thumbnail image using GIMP?
It is displayed ok.
Ok thanks, next try :) Please copy the thumbnail file to ~/.gimp-2.2/patterns It will be read using the same gdk-pixbuf loader that is used when displaying it in the file open dialog. Does it appear correct or scrambled in the patterns dialog?
Additionally it would be interesting what hardware platform this AIX runs on. Maybe it is a byte-order issue or something like that.
Patterns dialog: I can see the left ear of the creature, not scambled at all. Screenshot is on it's way.
Created attachment 52715 [details] the thumbnail image viewed as pattern
RS6000 is big endian
I suspect the scrambling happens *after* loading the png (loading seems to work because pattern loading works) and *before* compositing the pixbuf with the frame borders (because both the actual thumbnail and the frame parts are copied using the same function, and the frame is not scrambled in your screenshot). Most probably it happens in gimp_imagefile_load_thumb() in gimp/app/core/gimpimagefile.c The function uses gdk_pixbuf_scale_simple() and gdk_pixbuf_composite_color(). If you compiled gimp yourself, would you try to #if 0 the if() blocks where these statements are and report back?
Created attachment 52764 [details] gdk_pixbuf_scale_simple() is commented out looks like it isn't scaling problem (lathough I was pretty sure that scrambling is due to wrong pixel indices in scaled image)
Created attachment 52765 [details] gdk_pixbuf_composite_color() is commented out bingo
Please reassign the bug to the product gtk+ then, setting the version number to the library version that you are using.
Reassigned to GTK+/gdk-pixbuf. Yakov, would you set the GTK version you are using? I'm guessing 2.6 now.
(Fixing assignent)
gdk-pixbuff-2.0 and gdk-pixbuf-xlib-2.0 are 2.6.4 (according to pkgconfig), both come precompiled from BULL's AIX freeware afair. Jack
Sorry to get back to this after 13 years, but is it still an issue? We don't really have AIX as a platform for testing, so we cannot really know if anything changed.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/7.