Giter VIP home page Giter VIP logo

Comments (10)

TheAssassin avatar TheAssassin commented on August 18, 2024

libappimageupdate does not use Gtk+, I can't imagine this is related to our project in any way. Also, static linking is not a recommended strategy.

from appimageupdate.

probonopd avatar probonopd commented on August 18, 2024

@Seren541 can you post a link to the AppImage in question please? How do you create it? If it ships any Gtk platform plugin themes for Qt, then these should be removed, similar to #152.

from appimageupdate.

TheAssassin avatar TheAssassin commented on August 18, 2024

This should then be discussed elsewhere. Also, it is unclear whether the application in question uses Qt at all.

from appimageupdate.

Ativerc avatar Ativerc commented on August 18, 2024

I think I have the same error.

My AppImageUpdate.AppImage has exec permissions but double-clicking it does nothing, so I tried launching it from the terminal and I get some GTK errors:

$ ./AppImageUpdate-x86_64.AppImage 
AppImageUpdate version 1-alpha (commit 20a6450), build 93 built on 2022-01-24 18:35:10 UTC

(AppRun.wrapped:32087): Gtk-WARNING **: 14:32:12.971: 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/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: bad parameters to zlib (gdk-pixbuf-error-quark, 0)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: bad parameters to zlib (gdk-pixbuf-error-quark, 0)
Aborted (core dumped)

Running Ubuntu 20.04.5 LTS. Please let me know if I can add some more information.

Also, as an user of AppImages, I would prefer I could update AppImages, add .desktop files and icons from one single tool.

from appimageupdate.

gholmann16 avatar gholmann16 commented on August 18, 2024

@Seren541 can you post a link to the AppImage in question please? How do you create it? If it ships any Gtk platform plugin themes for Qt, then these should be removed, similar to #152.

The binary I am trying to build is this one: https://github.com/gholmann16/Neptune

It will be difficult to build in your system because I have not as of yet made a portable build system due to the fact that I cannot even build it on my own yet.

The issue is as follows. Gtk being available on most linux distros is leading me to dynamically link it. But libappimageupdate, being available nowhere is leading me to link it statically. When I make install and call the so file's functions, everything goes according to plan. But as soon as I statically link it (as well as all the dependencies generated by the makefile), it starts to have pixbuf issues, aka icons are not loading. I just tried it now roughly a year later and I get the exact same result. This is gtk3 for the record.

from appimageupdate.

gholmann16 avatar gholmann16 commented on August 18, 2024

After persuing the gerror returned this error is spammed:
Failed to load image “/home/gholm/.cache/neptune/apps/LBRY”: Fatal error in PNG image file: bad parameters to zlib
Failed to load image “/home/gholm/.cache/neptune/apps/Kdenlive”: Fatal error in PNG image file: bad parameters to zlib

I think this is because gtk is linked to libz and libzsync is using a custom libz which is thereby not loading the correct libz for gtk? When I try to get rid of the libzsync2_libz.a file I get errors because this custom static build has custom symbols not found in the shared library, so now I'm at a loss basically.

from appimageupdate.

probonopd avatar probonopd commented on August 18, 2024

I had already fixed this once by

    # Make absolutely sure there are no Gtk plugins,
    # they created a LOT of hassle: #145 #149 #150 #151 #152 #161 #166
    # https://github.com/AppImage/AppImageUpdate/issues/150#issuecomment-674013820
    # https://github.com/AppImage/AppImageUpdate/pull/152/files
    # Apparently linuxdeploy puts them in and there is no apparent way to disable this
    # https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/109
    # All of the following fail because... Docker?
    sudo apt-get remove qt5-gtk-platformtheme || true
    sudo apt-get remove qt5-xdgdesktopportal-platformtheme || true
    # Really desperate attempt now
    sudo find / -name 'libqgtk*.so' -delete || true
    sudo find / -name 'libqxdgdesktopportal.so' -delete || true

and in linuxdeploy/linuxdeploy-plugin-qt#109, so this sounds like a regression @TheAssassin?

from appimageupdate.

gholmann16 avatar gholmann16 commented on August 18, 2024

Your fix is to just remove gtk? My project is coded in gtk, not qt with gtk plugins so this is not really an option.

from appimageupdate.

probonopd avatar probonopd commented on August 18, 2024

I was assuming that the problematic application is AppImageUpdate, which is a Qt application and not a Gtk application. The fix is to remove Gtk theming for Qt from the AppDir. The fix to that issue was what I was referring to; but I understand now that you are trying to link AppImageUpdate from a Gtk application. I have no clue about that, sorry.

It's probably not a good idea to link together Qt and Gtk in the same application anyway. So better just let the AppImageUpdate application handle the updating of your AppImage.

from appimageupdate.

gholmann16 avatar gholmann16 commented on August 18, 2024

For now I'll probably end up using the shared library as that works but I might end up going that route.

from appimageupdate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.