After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316389 - gdk_pixbuf_composite_color() produces scrambled result in AIX
gdk_pixbuf_composite_color() produces scrambled result in AIX
Status: RESOLVED OBSOLETE
Product: gdk-pixbuf
Classification: Platform
Component: pixops
git master
Other AIX
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
Depends on:
Blocks:
 
 
Reported: 2005-09-15 13:20 UTC by Yakov Mindelis
Modified: 2018-05-22 13:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scrambled (AIX) and normal (Debian Linux/i386) previews on the same display (93.41 KB, image/png)
2005-09-18 12:27 UTC, Yakov Mindelis
Details
thumbnail image (17.42 KB, image/png)
2005-09-26 07:52 UTC, Yakov Mindelis
Details
the thumbnail image viewed as pattern (82.40 KB, image/png)
2005-09-27 10:33 UTC, Yakov Mindelis
Details
gdk_pixbuf_scale_simple() is commented out (26.19 KB, image/png)
2005-09-28 09:14 UTC, Yakov Mindelis
Details
gdk_pixbuf_composite_color() is commented out (33.99 KB, image/png)
2005-09-28 09:15 UTC, Yakov Mindelis
Details

Description Yakov Mindelis 2005-09-15 13:20:36 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
Comment 1 Sven Neumann 2005-09-15 16:05:29 UTC
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)?
Comment 2 Yakov Mindelis 2005-09-18 07:39:37 UTC
The bug is reproducible with various image formats (jpeg/gif/ps/eps/png).
Regeneration of the preview image doesn't help
Comment 3 Sven Neumann 2005-09-18 11:36:14 UTC
What about the screenshot that I asked you to attach?
Comment 4 Yakov Mindelis 2005-09-18 12:27:38 UTC
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
Comment 5 Sven Neumann 2005-09-18 14:33:17 UTC
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.
Comment 6 Yakov Mindelis 2005-09-25 11:02:21 UTC
Sorry for late reply (was horribly bz),
Full path (on both machines): /homez/jack/pictures/cheburashka.gif

Jack
Comment 7 Yakov Mindelis 2005-09-25 11:04:08 UTC
More info: actually, the path is the same fs (nfs)  mounted on both machines.

Jack
Comment 8 Sven Neumann 2005-09-25 18:35:35 UTC
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.
Comment 9 Yakov Mindelis 2005-09-26 07:52:18 UTC
Created attachment 52658 [details]
thumbnail image
Comment 10 Sven Neumann 2005-09-26 19:02:23 UTC
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?
Comment 11 Yakov Mindelis 2005-09-27 07:53:21 UTC
It is displayed ok.
Comment 12 Michael Natterer 2005-09-27 08:48:28 UTC
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?
Comment 13 Simon Budig 2005-09-27 08:56:48 UTC
Additionally it would be interesting what hardware platform this AIX runs on.
Maybe it is a byte-order issue or something like that.
Comment 14 Yakov Mindelis 2005-09-27 10:32:17 UTC
Patterns dialog: I can see the left ear of the creature, not scambled at all. Screenshot is on it's way.
Comment 15 Yakov Mindelis 2005-09-27 10:33:54 UTC
Created attachment 52715 [details]
the thumbnail image viewed as pattern
Comment 16 Yakov Mindelis 2005-09-27 10:35:58 UTC
RS6000 is big endian
Comment 17 Michael Natterer 2005-09-27 12:15:04 UTC
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?
Comment 18 Yakov Mindelis 2005-09-28 09:14:17 UTC
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)
Comment 19 Yakov Mindelis 2005-09-28 09:15:06 UTC
Created attachment 52765 [details]
gdk_pixbuf_composite_color() is commented out

bingo
Comment 20 Sven Neumann 2005-09-29 18:52:22 UTC
Please reassign the bug to the product gtk+ then, setting the version number to
the library version that you are using.
Comment 21 Michael Natterer 2005-10-01 13:13:28 UTC
Reassigned to GTK+/gdk-pixbuf. Yakov, would you set the GTK version you
are using? I'm guessing 2.6 now.
Comment 22 Owen Taylor 2005-10-01 13:22:31 UTC
(Fixing assignent)
Comment 23 Yakov Mindelis 2005-10-02 10:07:44 UTC
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
Comment 24 Emmanuele Bassi (:ebassi) 2018-04-28 09:41:16 UTC
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.
Comment 25 GNOME Infrastructure Team 2018-05-22 13:04:01 UTC
-- 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.