netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.68k stars 557 forks source link

lutris: cannot launch games (black screen) #4895

Open mYnDstrEAm opened 2 years ago

mYnDstrEAm commented 2 years ago

Description

When trying to launch a PS2 game iso with Lutris the game doesn't start: it just displays a black screen, while the game does start when launching Lutris without the firejail profile (the latest firejail profile for it in this repo).

Steps to Reproduce

  1. On Debian11/KDE with Wayland and Lutris 0.5.9.1 and firejail 0.9.64.4-2 launch a PS2 game iso. (The profile is used via firejail --profile= despite of the older firejail version.)

Expected behavior

The game should launch.

Actual behavior

The window shows and no error is shown but the game doesn't start.

Behavior without a profile

Additional context

It probably is unrelated to: https://github.com/lutris/lutris/issues/4030 and may be caused by the old version of firejail in the Debain repos.

Environment

Checklist

Log

Reading profile /etc/firejail-profiles-latest/lutris.profile
Reading profile /etc/firejail/allow-python2.inc
Reading profile /etc/firejail/allow-python3.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-common.local
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /home/username/.config/firejail/whitelist-var-common.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid ..., child pid ...
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Child process initialized in ... ms

(lutris:7): dbind-WARNING **: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
Starting Lutris 0.5.9.1
No cores found
Startup complete
...
GPU: ...
Vulkan is not available or your system isn't Vulkan capable
Started initial process 37 from gamemoderun /home/username/.local/share/lutris/runners/pcsx2/PCSX2 /home/username/Games/dir/gamename.iso
Start monitoring process.
gamemodeauto: 
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
Command line parsing...
Command line parsed!
(UserMode) Found portable install ini @ /home/username/.local/share/lutris/runners/pcsx2/portable.ini

Output when running lutris without firejail profile and starting the game:

Starting Lutris 0.5.9.1
No cores found
Startup complete
Running ...
GPU: ...
Vulkan is not available or your system isn't Vulkan capable
Started initial process ... from gamemoderun /home/username/.local/share/lutris/runners/pcsx2/PCSX2 /home/username/Games/dir/gamename.iso
Start monitoring process.
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Command line parsing...
Command line parsed!
(UserMode) Found portable install ini @ /home/username/.local/share/lutris/runners/pcsx2/portable.ini
SkewedZeppelin commented 2 years ago

0.9.64.4-2

.68 will be out soon, maybe try newer version?

also consider directly running pcsx2 with its profile instead?

mYnDstrEAm commented 2 years ago

The latest version isn't in Debian's repos. However I just installed 0.9.66 from backports. The game still doesn't run (neither with the latest profile nor with the one of 0.9.66). It does show new errors in the console now though (see below).

I'd like to run all the games via Lutris and later via Kodi (via the Kodi-Lutris addon).

I deduplicated the error messages (all of the repeated many times). After only starting Lutris:

Starting Lutris 0.5.9.1
Loading of DXVK versions failed, defaulting to locally available versions
Loading of VKD3D versions failed, defaulting to locally available versions
Loading of D3D Extras versions failed, defaulting to locally available versions
Loading of DXVK-NVAPI versions failed, defaulting to locally available versions
No cores found
Failed to get url https://api.github.com/repos/lutris/dxvk/releases: HTTP Error 403: rate limit exceeded
Loading of DXVK versions failed, defaulting to locally available versions

when starting the game:

Started initial process ... from gamemoderun /home/username/.local/share/lutris/runners/pcsx2/PCSX2 /home/username/Games/dir/gamename.iso
Start monitoring process.
gamemodeauto: 
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
Command line parsing...
Command line parsed!
(UserMode) Found portable install ini @ /home/username/.local/share/lutris/runners/pcsx2/portable.ini

and now it also shows an error message box PCSX2 Message "File not found. Path: IsoFileSystem" (with both lutris fj profiles). /home/username/Games is a link so I also tried setting the directory of the iso file (not the link) with noblacklist and whitelist in lutris.local but still get the same error.

happeeshopper commented 2 years ago

I installed FJ latest from PPA yesterday and had the same problem (Lutris broken). I had to uninstall FJ to fix it so I can't post any further info, but this is still a problem.

I came to open an issue, but I see it's already reported here so thought I would add to it.