My development team is working on version 0.9.11 for Greenery, here on Flathub. It is a Node / Electron based app.
I have created local builds of 0.9.11 with flatpak but the Greenery app bombs out before it can load the App Window. I can download the v0.9.10 version from Flathub and the app runs fine.
I have been successful in running GDB in the Flathub Shell for Greenery with this command:
flatpak run --command=sh --devel io.greenfire.Greenery -c ‘set -m; gdb --args /app/main/greenery’
From the shell I can do:
Enable debuginfod for this session (Y)
Then I run Greenery inside GDB:
(gdb) run
Starting program: /app/main/greenery
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/usr/lib/x86_64-linux-gnu/libthread_db.so.1”.
[New Thread 0x7fffec4006c0 (LWP 15)]
[Detaching after fork from child process 16]
[12:1118/182528.981166: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 /app/main/chrome-sandbox is owned by root and has mode 4755.
Thread 1 “greenery” received signal SIGTRAP, Trace/breakpoint trap.
0x000055555a57046f in ?? ()
[2]+ Stopped flatpak run --command=sh --devel io.greenfire.Greenery -c ‘set -m; gdb --args /app/main/greenery’
lexton@fedora:~/Development/flathub-repo/io.greenfire.Greenery$ [16:1118/182529.001925:WARNING:resource_bundle.cc(450)] locale_file_path.empty() for locale
So it looks like a sandbox issue and I’ve have seen other Electron app come across this issue:
Rather than run without sandboxing I’m aborting now. You need to make sure that /app/main/chrome-sandbox is owned by root and has mode 4755.
So should I look in to setting root as mode 4755 for the chrome-sandbox, this does not seem like the secure option for Flathub.
I also should note that compiling code from older version of Greenery like v0.9.9 also fail to run, so is this related to my npm dependencies and an update on the Flathub side?
Is anyone else with Electron apps coming across issues similar to this? Also please let me know how I should proceed.
Here is the Greenery Flathub PR for v0.9.11: