RetroDECK icon indicating copy to clipboard operation
RetroDECK copied to clipboard

Flatpak Permission: Background permissions is set to "no": Configurator crashes on Linux desktop

Open WallK opened this issue 2 years ago • 5 comments

When starting RetroDECK for the first time or launching Configurator from shortcut -- it crashes after some time (from almost instant to couple of seconds)

Machine: Lenovo Thinkpad T590, i7-8565U, Intel UHD 620 OS: Debian 12, Plasma on Wayland

STR:

  1. Launch Configurator
  2. Observe

OR

  1. Launch fresh install of RetroDECK
  2. Choose storage
  3. Click OK on the next popup
  4. Observe

Notes:

Here's the end of strace for RetroDECK launch (on Wayland):

poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1Found RetroDECK config file in /var/config/retrodeck/retrodeck.cfg
Loading it
Lockfile not found
Executing finit
Choice is Internal Storage
Internal selected
) = 1 ([{fd=3, revents=POLLIN}])
read(6, 0x7fff79bcdcd0, 8)              = -1 EAGAIN (Resource temporarily unavailable)
read(3, "\21\0\0\0\0\0\0\0\2\0\0\0\10R\0\0\350\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 128) = 128
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL}], WNOHANG, NULL) = 21000
exit_group(137)                         = ?
+++ exited with 137 +++

Configurator launch (on X11)

Loading it
Lockfile not found
Executing finit
Gtk-Message: 14:43:36.440: Failed to load module "colorreload-gtk-module"
Gtk-Message: 14:43:36.440: Failed to load module "window-decorations-gtk-module"
Choice is Internal Storage
Internal selected
Gtk-Message: 14:43:45.652: Failed to load module "colorreload-gtk-module"
Gtk-Message: 14:43:45.652: Failed to load module "window-decorations-gtk-module"
) = 1 ([{fd=3, revents=POLLIN}])
read(4, 0x7fff187c00f0, 8)              = -1 EAGAIN (Resource temporarily unavailable)
read(3, "\21\0\0\0\0\0\0\0\2\0\0\0\266\f\0\0\350\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 128) = 128
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL}], WNOHANG, NULL) = 3254
exit_group(137)                         = ?
+++ exited with 137 +++ 

WallK avatar Sep 10 '23 16:09 WallK

Here's a full strace -f output https://paste.c-net.org/KnucklesHoped

WallK avatar Sep 11 '23 08:09 WallK

Another STR

  1. Launch RetroDECK for the first time (or never finish first time setup)
  2. Wait for about 10 seconds
  3. Observe

WallK avatar Sep 21 '23 12:09 WallK

After trying to audit all the kill signals and not getting any hits -- I've found out it's a permission issue

$ flatpak permission-show net.retrodeck.retrodeck
Table      Object     App                     Permissions Data
background background net.retrodeck.retrodeck no          0x00

Doing $ flatpak permission-remove background background fixes it

You could get a notification and allow background running, or just leave without background permission set

WallK avatar Sep 25 '23 07:09 WallK

I would keep open this issue as if we will have other cases we should consider adding this background and its implications.

XargonWan avatar Sep 25 '23 07:09 XargonWan

When there's no background permission -- it works fine It should be other set to yes or not set at all

WallK avatar Sep 25 '23 08:09 WallK