chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.56k stars 471 forks source link

AppImage fails to Run - AppImage terminated by SIGTRAP #1583

Open italomaia opened 1 month ago

italomaia commented 1 month ago

Describe the bug

Hello folks; just downloaded the AppImage 4.1.2 of GB Studio. Tried to run it on Ubuntu 24.04.1 LTS and got the below error message.

[13099:0914/214153.838046:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_gb-stu0aQw1T/usr/lib/gb-studio/chrome-sandbox is owned by root and has mode 4755.
fish: Job 1, './gb-studio-linux-412.AppImage' terminated by signal SIGTRAP (Trace or breakpoint trap)

To Reproduce Steps to reproduce the behavior: 1.Download appimage from https://chrismaltby.itch.io/gb-studio/devlog/796379/gb-studio-412-now-available

  1. Make it executable
  2. Try to run it from command line on Ubuntu 24.04.1

Expected behavior App should start.

Screenshots Not applicable.

Platform (please complete the following information):

Additional context None.

patrickmollohan commented 1 month ago

No issues here on Arch, however there does appear to be a bug in AppArmor affecting Ubuntu users. Currently no ETA for a fix, and has been known since last year. Might be able to get it running by disabling sandboxing by running the AppImage from terminal and adding either "--no-sandbox" or "--disable-setuid-sandbox", but as noted by the linked page:

Moderator's Note: There is currently an issue in AppArmor (Launchpad Bugs LP Bug #2046844#2046844, #2064672 (SRU'd fix for Noble), and #2072811 (the regression bug that reverted it)) that is known to be causing problems with sandboxing of AppImages and such at this time. There is currently no ETA on a fix for this issue at this time. Due to that, if your application you are trying to use is absolutely critical to your needs, you can use the options stated here to run the application without sandboxing. However, be advised that this can be dangerous as this lets the application directly alter things on your system. Note that if you choose to use this answer's solutions, you accept all security risks of running any applications unsandboxed. Ask Ubuntu and the poster of this answer accept no responsibility if you damage your system in some way running applications in this manner.