Created attachment 820307 [details] Screenshot Stata 13.0 is a proprietary statistics package with a GUI based on GTK 2. After startup the sofware works, but does not display icons throughout the app (see screenshot). Stata technical support hints at a bug in the Adwaita theme. Console output during Stata startup: ** (xstata:10952): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-disabled-bg.png: Failed to load image '/usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-disabled-bg.png': Fatal error in PNG image file: bad parameters to zlib (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed ** (xstata:10952): WARNING **: Invalid borders specified for theme pixmap: /usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-disabled-bg.png, borders don't fit within the image (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (xstata:10952): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
I have the same problem on archlinux. using the idea here http://www.sublimetext.com/forum/viewtopic.php?f=3&t=13508 I downloaded and installed libpng-1.6.2, copy /usr/lib/libpng*.so in /usr/lib/stata, update my system (re-install latest libpng), and sudo ldconfig /usr/lib/stata icons are back Hope it helps you…
I am having the same problem with vuescan on Fedora 20. Using libpng-1.6.2 does not fix the problem. Vuescan core dumps with libpng-1.6.2, but only after the (vuescan:2295): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-fill.png: Failed to load image '/usr/share/themes/Adwaita/gtk-2.0/Entry/entry-border-fill.png': Fatal error in PNG image file: bad parameters to zlib message. Does not work with libpng-1.6.9 either, (no core dump).
The vuescan problem occurs on 32-bit as well as 64-bit Fedora 20.
The problem lies in new versions of libpng and zlib. There is an automated solution provided here: https://bitbucket.org/vilhuberl/stata-png-fix I had to adjust the path of stata in the file "/usr/local/stata-png-fix/stata-png-fixed.sh". After that fix, the last line reads "exec /usr/local/stata/$flavor $args" on my machine.
Problem persists on F21beta + updates. Workaround still works.
Workaround in https://bitbucket.org/vilhuberl/stata-png-fix works for vuescan as well (tested in 64-bit F20).
I see the problem, but I think that this is a 3rd party problem and not inside libpng. Stata should provide a fix for this problem. If you have another idea please fill free to reopen bug. I think that libpng should not provide any automated solution for stata. libpng should provide a libraries.