Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk:ERROR when trying to start #145

Closed
phw opened this issue Mar 17, 2020 · 10 comments
Closed

Gtk:ERROR when trying to start #145

phw opened this issue Mar 17, 2020 · 10 comments

Comments

@phw
Copy link

phw commented Mar 17, 2020

Starting the latest AppImageUpdate-x86_64.AppImage results in:

$ ./AppImageUpdate-x86_64.AppImage                          
AppImageUpdate version 1-alpha (commit ea07e03), build 429 built on 2020-03-04 14:06:40 UTC

(AppRun.wrapped:108381): Gtk-WARNING **: 14:26:59.210: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../gtk/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Schwerer Fehler beim Lesen einer PNG-Bilddatei: bad parameters to zlib (gdk-pixbuf-error-quark, 0)
Bail out! Gtk:ERROR:../gtk/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Schwerer Fehler beim Lesen einer PNG-Bilddatei: bad parameters to zlib (gdk-pixbuf-error-quark, 0)
zsh: abort (core dumped)  ./AppImageUpdate-x86_64.AppImage

Arch Linux with GNOME 3.36. The icon /usr/share/icons/Adwaita/16x16/status/image-missing.png exists.

@probonopd
Copy link
Member

probonopd commented Mar 17, 2020

What happens if you do:

./AppImageUpdate-x86_64.AppImage --appimage-extract
rm squashfs-root/usr/plugins/platformthemes/*
./squashfs-root/AppRun

If this still doesn't work, what happens if you comment out the export QT_QPA_PLATFORMTHEME=gtk3 in squashfs-root/apprun-hooks/linuxdeploy-plugin-qt-hook.sh?

If this still doesn't work, what happens if you use https://github.com/antony-jr/AppImageUpdater/releases/tag/continuous?

@phw
Copy link
Author

phw commented Mar 18, 2020

Removing squashfs-root/usr/plugins/platformthemes/* works. Only uncommenting export QT_QPA_PLATFORMTHEME=gtk3 has no effect.

I had previously a version that was working, it identifies as:

AppImageUpdate version 1-alpha (commit e17e350), build 422 built on 2019-10-13 13:17:11 UTC

The version crashing is:

AppImageUpdate version 1-alpha (commit ea07e03), build 429 built on 2020-03-04 14:06:40 UTC

The one from https://github.com/antony-jr/AppImageUpdater/releases/tag/continuous works, but that's a different tool, right?

@nlordell
Copy link

nlordell commented Mar 19, 2020

Might be related to this https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1838891

I just managed to reproduce the crash locally. Just before the crash, the following lines are printed to stderr:

(AppImageLauncherSettings:27871): Gtk-WARNING **: 21:45:01.935: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Fatal error reading PNG image > file: bad parameters to zlib (gdk-pixbuf-error-quark, 0)

I think most important part here is “bad parameters to zlib”. AppImageLauncher uses its own static zlib (lib/AppImageUpdate/lib/zsync2/lib/zlib/libzsync2_libz.a) which is incompatible with public zlib (/lib/x86_64-linux-gnu/libz.so.1) that GTK was compiled against.

Recompiling AppImageLauncher with system zlib should help, but I haven’t found a way to do that. I suggest you to ask AppImageLauncher developer about that.

Attaching a stacktrace for future reference.

PS: I see the exact same error on Fedora 31 (with GNOME 3.34).

@probonopd
Copy link
Member

@TheAssassin given the above I think it would be a good idea not to ship platformthemes for now, wdyt?

@TheAssassin
Copy link
Member

You were the one to urge for including this platform theme stuff. It's not really documented, IIRC it was some random git repo you found, right?

We don't use the upstream Ubuntu binaries IIRC, but use Stephan Binner's PPA. Perhaps you should contact him and ask about the issues?

@probonopd
Copy link
Member

What is libzsync2_libz and why is it needed? Could it be conflicting the normal libz?

@mfilipe
Copy link

mfilipe commented Apr 11, 2020

Fedora 31

AppImageUpdate version 1-alpha (commit cb611d8), build 431 built on 2020-04-07 21:47:19 UTC
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
 
(AppRun.wrapped:16448): Gtk-WARNING **: 22:45:35.230: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Fatal error reading PNG image file: bad parameters to zlib (gdk-pixbuf-error-quark, 0)
Bail out! Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/16x16/status/image-missing.png: Fatal error reading PNG image file: bad parameters to zlib (gdk-pixbuf-error-quark, 0)

@vasyugan
Copy link

vasyugan commented Nov 2, 2020

I should say that I see the same on Debian Buster with MATE.

@probonopd
Copy link
Member

Duplicate of #150, workaround in #150 (comment).

probonopd added a commit that referenced this issue May 21, 2022
probonopd added a commit that referenced this issue May 21, 2022
probonopd added a commit that referenced this issue May 21, 2022
probonopd added a commit that referenced this issue May 21, 2022
probonopd added a commit that referenced this issue May 21, 2022
probonopd added a commit that referenced this issue May 21, 2022
probonopd added a commit that referenced this issue May 21, 2022
@probonopd
Copy link
Member

TheAssassin added a commit that referenced this issue May 21, 2022
The actual issue must and will be fixed in linuxdeploy-plugin-qt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants