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

AppImageLauncher breaks starting AppImages because mounting fails #599

Open
2 tasks done
berolinux opened this issue Sep 6, 2023 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working needs verification Description of the issue needs to be verified by the team

Comments

@berolinux
Copy link

Pre-submit checks

  • I checked for similar issues beforehand, but could not find any, not even closed ones. I could not add my bug report to any existing issue.
  • I am going to take the time to to fill in all the required details. I know that the bug report will be dismissed otherwise.

Describe the bug

Launching an AppImage on the box in question works perfectly (before installing AppImageLauncher as well as after removing its binfmt-misc bits), so all permissions, dependencies, etc. are ok.

But if AppImageLauncher (tried current git and 3.0.0-alpha1) is installed and the binfmt-misc wrapper is enabled, launching any AppImage (including ones known to work with AppImageLauncher disabled), launching the AppImage fails. AppImageLauncher's dialog pops up as expected, and after selecting "Run Once", nothing happens because the AppImage fails to launch.

Output when trying to launch an appimage with AppImageLauncher enabled:

[appimagelauncher-binfmt-bypass/interpreter] DEBUG: Welcome to AppImageLauncher's binfmt_misc interpreter!
[appimagelauncher-binfmt-bypass/interpreter] DEBUG: AppImageLauncher found at /usr/bin/AppImageLauncher, launching AppImage ./ProtonUp-Qt-2.8.2-x86_64.appimage with it
[appimagelauncher-binfmt-bypass/lib] DEBUG: library to preload: /usr/lib64/appimagelauncher/libbinfmt-bypass-preload.so
[appimagelauncher-binfmt-bypass/lib] DEBUG: absolute AppImage path: /home/bero/Downloads/ProtonUp-Qt-2.8.2-x86_64.appimage
[appimagelauncher-binfmt-bypass/lib] DEBUG: fexecve(...)
[appimagelauncher-binfmt-bypass/preload] DEBUG: open(/tmp/.mount_Proton53mB4u, 0)
execv error: No such file or directory
[appimagelauncher-binfmt-bypass/lib] DEBUG: forwarding signal 17 to subprocess 2736182
[appimagelauncher-binfmt-bypass/lib] DEBUG: child exited normally with code 127

The execv error: No such file or directory happens when trying to launch AppRun, because mounting the AppImage failed (in fact, I don't see any attempt of even trying to mount it in strace output).
Launching the AppImage with --appimage-mount shows the mount point being created, but remaining empty/nothing mounted.
Launching AppImages with --appimage-extract-and-run keeps working even with AppImageLauncher installed and the binfmt handler enabled.

The preloaded wrapper seems to cause mount to fail (or not even be tried).

Expected behavior

AppImage files keep launching when AppImageLauncher is installed and activated through binfmt-misc

Steps to reproduce the issue

  1. Launch any appimage (succeeds)
  2. Install AppImageLauncher
  3. Launch any appimage (e.g. the same one that succeeded before)

Screenshots

No response

Distribution and desktop environment

OpenMandriva Cooker (kernel 6.5.1, glibc 2.38)
KDE Plasma 5.27.7

Installed AppImageLauncher version

AppImageLauncher version 3.0.0alpha-1 (git commit 71e8e32), built on 2023-08-12 14:47:26 UTC

List of AppImages you tried

The issue is not related to any specific AppImage, but happens on all of them, e.g.

Additional context

No response

@berolinux berolinux added bug Something isn't working needs verification Description of the issue needs to be verified by the team labels Sep 6, 2023
@nerdCopter
Copy link

Adding to this issue-tracker due to the proper generic title.

This project suffers the same: mmtrt/WINE_AppImage#23 execv error: No such file or directory

@Cyriuz
Copy link

Cyriuz commented Jan 17, 2024

We have the same issue now with our Appimages when trying to use the new static runtime, so this is probably related to AppImage/type2-runtime#12 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs verification Description of the issue needs to be verified by the team
Projects
None yet
Development

No branches or pull requests

3 participants