NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.61k stars 13.77k forks source link

AppImage-run segfaults on LittleWeeb (problem with electron-based appimages?) #109576

Open tobiasBora opened 3 years ago

tobiasBora commented 3 years ago

Describe the bug AppImage-run segfault without any meaningful error on some programs like LittleWeeb, notably the one based on electron as reported here. I would suggest:

  1. to add errors in the appimage-run code in case an assertion fails
  2. make sure that by default appimage-run loads most libraries that are frequently assumed to be present in systems, in particular one requires by electron
  3. make sure that electron sandboxed app can be run correctly (not sure it works since buildFhsUserEnv seems to be based on bubblewrap that forbid fuse for security reasons).

To Reproduce Steps to reproduce the behavior:

  1. Download LittleWeeb
  2. run:
    $ appimage-run ~/Documents/Logiciels/Multimedia/fSpy/LittleWeeb-0.4.0.303.AppImage
    LittleWeeb-0.4.0.303.AppImage installed in /home/me/.cache/appimage-run/e76971bc65ab44285776e178b26f7b7872412ee0ec495ff204c13cb1fe091a35
    Segmentation fault (core dumped)

Expected behavior I would not expect a segfault.

Additional context Add any other context about the problem here.

Notify maintainers Since there is no explicit maintainer, here is a lit of people that pushed to that project @symphorien @jtojnar @bignaux

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

warning: unknown setting 'extra-sandbox-paths'

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
davidak commented 3 years ago

LittleWeed

lol

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

tobiasBora commented 3 years ago

Still interested (can confirm the issue is still there):

$ wget https://github.com/littleweeb/Desktop/releases/download/v0.4.0_linux/LittleWeeb-0.4.0.303.AppImage
$ appimage-run LittleWeeb-0.4.0.303.AppImage 
LittleWeeb-0.4.0.303.AppImage installed in /home/leo/.cache/appimage-run/e76971bc65ab44285776e178b26f7b7872412ee0ec495ff204c13cb1fe091a35
Segmentation fault (core dumped)
stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

tobiasBora commented 2 years ago

Still interested (can confirm the issue is still there):

$ appimage-run LittleWeeb-0.4.0.303.AppImage 
Uncompress LittleWeeb-0.4.0.303.AppImage of type 02 @ offset 100024
[===============================================================================================================================================================================================/] 3216/3216 100%
LittleWeeb-0.4.0.303.AppImage is now installed in /home/leo/.cache/appimage-run/e76971bc65ab44285776e178b26f7b7872412ee0ec495ff204c13cb1fe091a35
Segmentation fault (core dumped)
KiaraGrouwstra commented 11 months ago

hm, i think that step is working now?

appimage-run LittleWeeb-0.4.0.292.AppImage
Uncompress LittleWeeb-0.4.0.292.AppImage of type 02 @ offset 100024
[================================================================================================================|] 3218/3218 100%
LittleWeeb-0.4.0.292.AppImage is now installed in /home/kiara/.cache/appimage-run/c9246f61809181e7a3cd7fab6feae86f42cac68a5120eb397ea6c2168aa9c306

doesn't boot for me after, but yeah.

KiaraGrouwstra commented 11 months ago

another electron appimage (arduino-ide) also doesn't trigger such a segfault for me, tho i haven't gotten that one to work either