FS#36276 - [libpng] -1.6 3-1 Error with gtk icons

Attached to Project: Arch Linux
Opened by kionez (kionez) - Friday, 26 July 2013, 07:48 GMT
Last edited by Jan de Groot (JGC) - Friday, 29 August 2014, 09:33 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Ionut Biru (wonder)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:

I noticed a strange issue with libpng 1.6.3-1, using sublime-text editor:

- in tasklist there's no icon of running application
- some icons are missing, for example when i'm closing an unsaved file

(sublime_text:4876): Gtk-WARNING **: Error loading theme icon 'gtk-cancel' for stock: Fatal error reading PNG image file: bad parameters to zlib

(sublime_text:4876): Gtk-WARNING **: Error loading theme icon 'document-save' for stock: Fatal error reading PNG image file: bad parameters to zlib

(sublime_text:4876): Gtk-WARNING **: Error loading theme icon 'dialog-warning' for stock: Fatal error reading PNG image file: bad parameters to zlib


If i downgrade libpng to 1.6.2, everything works fine. Here's two screenshots:

http://kionez.org/libpng-163.png

http://kionez.org/libpng-162.png
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 29 August 2014, 09:33 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Friday, 26 July 2013, 07:55 GMT
What icon theme do you use? Does it include replacements for gtk-cancel, document-save and dialog-warning stock icons?
Comment by kionez (kionez) - Friday, 26 July 2013, 08:04 GMT
I'm using community/faenza-icon-theme, the three icon files exists as symlink.
I tried to replace the symlink with the linked file, without results.
I tried to change the icon theme, but icons still missing... but now I notice that gnome-icon-theme works fine, so maybe it's a theme related issue? (when I found the "bad parameter to zlib" error I thought to a libpng related problem)
Comment by Robert Orzanna (orschiro) - Tuesday, 30 July 2013, 05:22 GMT
I am having the same issue with the same version of libpng, Sublime Text 2 and faenza-icon-theme.

Screenshot: http://i.imgur.com/oPGiTZs.png

Downgrading libpng from 1.6.3 to 1.6.2 solved the issue.

Yet I cannot believe that faenza-icon-theme is causing this issue. The last time it was updated was on 2013-01-14.
Comment by Jan Marvin (JanMarvin) - Thursday, 01 August 2013, 09:55 GMT
I can confirm the problem with STATA12. With libpng-1.6.3 I have no icons, with libpng-1.6.2 I have icons. The choosen icon set does not tangle this problem.
Comment by random name (ilprincipe) - Friday, 13 September 2013, 13:39 GMT
Also confirming this using STATA12.
Comment by Philipp Wolfer (phw) - Monday, 16 September 2013, 11:19 GMT
This is fixed for me with libpng 1.6.5
Comment by random name (ilprincipe) - Wednesday, 13 November 2013, 17:51 GMT
  • Field changed: Percent Complete (100% → 0%)
not fixed for me in Stata 12.
Comment by Jan Marvin (JanMarvin) - Thursday, 14 November 2013, 13:59 GMT
I am not sure if it is a libpng bug. Downgrading libpng does not fix it anymore.
Btw there is a new ticket at the Red Hat bugtracker: [1]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1027233
Comment by Jan Marvin (JanMarvin) - Monday, 02 December 2013, 11:54 GMT
A fellow archer posted a solution in the previous linked Red Hat bugtracker.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1027233#c1

[Edit] A workaround rather than a solution. Fixing the problem for now.
Comment by Ted To (zoof) - Thursday, 20 March 2014, 15:07 GMT
Does anyone have a copy of libpng-1.6.2-3-x86_64.pkg.tar.xz? Compiling my own libpng-1.6.2 and copying the files to /usr/local/lib/stata does not work for me with Stata 12.
Comment by Jan Marvin (JanMarvin) - Saturday, 22 March 2014, 19:56 GMT
Ted: You can download the Arch PKGBUILD for 1.6.2 and build it [1]. Installation is not required. Just copy the *.so files from $pkgdir. The magic happens in one of the applied patches. libpng build from a modification of the current PKGBUILD does not work.

[1] https://projects.archlinux.org/svntogit/packages.git/snapshot/packages-43f04b6ee5b89c72aeb26fd3b1a2904774bceb8c.tar.gz

[Edit: typo 1.6.3 must be 1.6.2]
Comment by Ted To (zoof) - Wednesday, 26 March 2014, 13:35 GMT
Jan: I finally got a chance to try it and sadly it does not work. I built the package in repos/testing-x86_64, copied the files to /usr/local/lib/stata and then "sudo ldconfig /usr/local/lib/stata/". xstata-se still pulled up stata with broken button icons.
Comment by Ted To (zoof) - Wednesday, 26 March 2014, 13:40 GMT
Even installing the package outright did not work.
Comment by Jan Marvin (JanMarvin) - Wednesday, 26 March 2014, 15:38 GMT
Ted: You need to build trunk, it contains the 1.6.2 PKGBUILD. The required modification is the 0002-*.patch.
Comment by Ted To (zoof) - Wednesday, 26 March 2014, 16:07 GMT
Brilliant -- thanks much!
Comment by Jan de Groot (JGC) - Friday, 29 August 2014, 09:33 GMT
This is not a packaging bug.
Stata is linked static against an older version of zlib and libpng. For libpng they use a symbol prefix, but not for zlib, so symbols from system zlib and static zlib will cause an overlap. When GTK calls into system libpng functions, libpng will call into zlib 1.2.8 functions which aren't available in the static compiled version in stata, resulting in the "Bad parameters to zlib" message.

Loading...