tkashkin / GameHub

All your games in one place
https://tkashkin.github.io/projects/gamehub
GNU General Public License v3.0
2.2k stars 131 forks source link

AppImage Dumps Core #152

Closed hhirsch closed 5 years ago

hhirsch commented 5 years ago
$ ./GameHub-bionic-0.12.1-32-dev-46cf5b4-x86_64.AppImage
[AppRun ] GameHub AppImage
[AppRun ] AppDir: /tmp/.mount_GameHuht0sAW
[CheckRT] Checking library versions
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
[CheckRT] libstdc++.so.6: sys: GLIBCXX_3.4.4; app: GLIBCXX_3.4.25
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
[CheckRT] libgcc_s.so.1: sys: GCC_3.3; app: GCC_7.0.0
[CheckRT] LD_LIBRARY_PATH: /tmp/.mount_GameHuht0sAW/usr/optlib/libgcc_s.so.1:/tmp/.mount_GameHuht0sAW/usr/optlib/libstdc++.so.6::/tmp/.mount_GameHuht0sAW/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0:/tmp/.mount_GameHuht0sAW/usr/lib:/usr/lib32/nvidia:/usr/lib/nvidia:/usr/local/lib32:/usr/local/lib:
[CheckRT] LD_PRELOAD: /tmp/.mount_GameHuht0sAW/usr/optlib/exec.so:
[AppRun ] Starting GameHub
[INFO 12:12:03.434996] Application.vala:155: GameHub version: 0.12.1
[INFO 12:12:03.435031] Application.vala:157: Kernel version: 4.18.20-1-MANJARO
which: no innoextract in (/tmp/.mount_GameHuht0sAW/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/linus/system/execute/:/home/linus/system/execute/:/home/linus/system/execute/:/home/linus/.gem/ruby/2.3.0/bin/:/home/linus/system/execute/:/home/linus/system/bin/dart-sdk/bin/)
/usr/bin/dosbox
/usr/bin/scummvm
/usr/bin/retroarch
/usr/bin/wine
/usr/bin/wine
[INFO 12:12:03.515536] app.vala:105: Distro: appimage

(com.github.tkashkin.gamehub:25625): Gtk-WARNING **: 12:12:03.537: Could not find the icon 'open-menu-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases

(com.github.tkashkin.gamehub:25625): Gtk-WARNING **: 12:12:03.537: Could not load a pixbuf from /org/gtk/libgtk/icons/24x24/status/image-missing.png.
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 /org/gtk/libgtk/icons/24x24/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
/tmp/.mount_GameHuht0sAW/AppRun: line 19: 25625 Aborted                 (core dumped) "$APPDIR/usr/bin/com.github.tkashkin.gamehub" "$@"

extra/hicolor-icon-theme is installed. I am running current Manjaro/Arch

tkashkin commented 5 years ago

Weird. Try sudo gdk-pixbuf-query-loaders --update-cache.

hhirsch commented 5 years ago

Hello @tkashkin thank you for the quick reply

$ ./GameHub-bionic-0.12.1-32-dev-46cf5b4-x86_64.AppImage 
[AppRun ] GameHub AppImage
[AppRun ] AppDir: /tmp/.mount_GameHuK8DhdA
[CheckRT] Checking library versions
grep: Warnung: GREP_OPTIONS sind veraltet. Bitte benutzen Sie ein Alias oder ein Skript
grep: Warnung: GREP_OPTIONS sind veraltet. Bitte benutzen Sie ein Alias oder ein Skript
grep: Warnung: GREP_OPTIONS sind veraltet. Bitte benutzen Sie ein Alias oder ein Skript
[CheckRT] libstdc++.so.6: sys: GLIBCXX_3.4.4; app: GLIBCXX_3.4.25
grep: Warnung: GREP_OPTIONS sind veraltet. Bitte benutzen Sie ein Alias oder ein Skript
grep: Warnung: GREP_OPTIONS sind veraltet. Bitte benutzen Sie ein Alias oder ein Skript
grep: Warnung: GREP_OPTIONS sind veraltet. Bitte benutzen Sie ein Alias oder ein Skript
[CheckRT] libgcc_s.so.1: sys: GCC_3.3; app: GCC_7.0.0
[CheckRT] LD_LIBRARY_PATH: /tmp/.mount_GameHuK8DhdA/usr/optlib/libgcc_s.so.1:/tmp/.mount_GameHuK8DhdA/usr/optlib/libstdc++.so.6::/tmp/.mount_GameHuK8DhdA/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0:/tmp/.mount_GameHuK8DhdA/usr/lib:/usr/lib32/nvidia:/usr/lib/nvidia:/usr/local/lib32:/usr/local/lib:
[CheckRT] LD_PRELOAD: /tmp/.mount_GameHuK8DhdA/usr/optlib/exec.so:
[AppRun ] Starting GameHub
[INFO 12:29:31.289440] Application.vala:155: GameHub version: 0.12.1
[INFO 12:29:31.289479] Application.vala:157: Kernel version: 4.18.20-1-MANJARO
GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Application does not handle command line arguments
hhirsch commented 5 years ago

Nvm. I still get the original error. Not that new one.

tkashkin commented 5 years ago

Try to unpack AppImage and run it directly.

./GameHub-bionic-0.12.1-32-dev-46cf5b4-x86_64.AppImage --appimage-extract
cd squashfs-root/usr/
./bin/com.github.tkashkin.gamehub --debug
hhirsch commented 5 years ago
$ ./bin/com.github.tkashkin.gamehub --debug
[INFO 12:43:33.978340] Application.vala:155: GameHub version: 0.12.1
[INFO 12:43:33.978368] Application.vala:157: Kernel version: 4.18.20-1-MANJARO
[DEBUG 12:43:34.008390] Settings.vala:163: Loading settings from schema 'com.github.tkashkin.gamehub.paths.collection'
[DEBUG 12:43:34.008574] Settings.vala:163: Loading settings from schema 'com.github.tkashkin.gamehub.paths.collection.gog'
[DEBUG 12:43:34.008859] Utils.vala:85: [Utils.run] {'bash' '-c' 'rm -f /home/linus/Games/_Collection/GOG/*/.goutputstream-*'}; dir: '/home/linus'
[DEBUG 12:43:34.008878] [GLib] posix_spawn avoided (workdir specified) (fd close requested) 
[DEBUG 12:43:34.012589] Settings.vala:163: Loading settings from schema 'com.github.tkashkin.gamehub.paths.collection.humble'
[DEBUG 12:43:34.012845] Utils.vala:85: [Utils.run] {'bash' '-c' 'rm -f /home/linus/Games/_Collection/Humble\ Bundle/*/.goutputstream-*'}; dir: '/home/linus'
[DEBUG 12:43:34.012872] [GLib] posix_spawn avoided (workdir specified) (fd close requested) 
[DEBUG 12:43:34.016094] Database.vala:87: [Database.migrate] Latest db version: 5, current: 5
[DEBUG 12:43:34.016417] Settings.vala:163: Loading settings from schema 'com.github.tkashkin.gamehub.ui'
[ERROR 12:43:34.016532] [GLib-GIO] Settings schema 'com.github.tkashkin.gamehub.ui' does not contain a key named 'show-grid-icons'
[1]    2336 trace trap (core dumped)  ./bin/com.github.tkashkin.gamehub --debug
tkashkin commented 5 years ago

Yes, that's expected, because some environment variables need to be setup or schemas need to be installed. Try this:

cd .. # you should be in squashfs-root
export APPDIR="`pwd`"
export GSETTINGS_SCHEMA_DIR="$APPDIR/usr/share/glib-2.0/schemas/:$GSETTINGS_SCHEMA_DIR"
cd usr
./bin/com.github.tkashkin.gamehub --debug

You may also need to export XDG_DATA_DIRS.

hhirsch commented 5 years ago

Still gives me:

GLib-GIO] Settings schema 'com.github.tkashkin.gamehub.ui' does not contain a key named 'show-grid-icons'

tkashkin commented 5 years ago

Do you have non-AppImage version installed in system?

Try

export GSETTINGS_SCHEMA_DIR="$APPDIR/usr/share/glib-2.0/schemas/"
hhirsch commented 5 years ago

Very nice. This worked. Is this a specialty of my Arch/Manjaro system or will others encounter the same problem?

tkashkin commented 5 years ago

Probably some incompatibility with system and bundled libraries.

I suggest you to install a distro-specific package if available instead of using AppImage or flatpak. You can edit existing PKGBUILD from AUR to get latest build or ask @neuromancer how to do that.

I'm still thinking about taking over AUR packages myself or finding someone more interested than current maintainers. Maybe @neuromancer wants to maintain AUR package?

hhirsch commented 5 years ago

I have tried to run the AppImage on a clean Manjaro install and it worked out of the box. Maybe there is some stuff confused when it is installed through the package manager and as AppImage at the same time. I consider this solved. I think the solution is to either use one or the other but not both. However I did not take the time to confirm this.

neuromancer commented 5 years ago

You can edit existing PKGBUILD from AUR to get latest build or ask @neuromancer how to do that.

I'm still thinking about taking over AUR packages myself or finding someone more interested than current maintainers. Maybe @neuromancer wants to maintain AUR package?

I'm using my own fork of GameHub with additional patches, but I think it won't be a problem to maintain the official AUR package(s). I will take a look on how difficult is to get the ownership of it.