protontricks icon indicating copy to clipboard operation
protontricks copied to clipboard

Crash (possibly) due to bwrap issue

Open TimerBunneh opened this issue 11 months ago • 2 comments

Describe the bug Protontricks crashes when I try to open anything with it. The log is here:

Protontricks was closed due to the following error:

Traceback (most recent call last):
  File "/app/lib/python3.12/site-packages/protontricks/cli/util.py", line 159, in wrapper
    return cli_func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/protontricks/cli/main.py", line 406, in main
    returncode = run_command(
                 ^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/protontricks/util.py", line 516, in run_command
    raise RuntimeError(
RuntimeError: bwrap launcher crashed, returncode: 1


=============

Please include this entire error message when making a bug report.
Log messages:

Found Steam directory at /home/timer/.steam/debian-installation
Found 1 Steam library folders
Currently logged-in Steam user: sparkster90
Found 0 Steam shortcuts running using Steam compatibility tools
Using 'yad' as GUI provider
Calling `protontricks` with the command: ['--no-background-wineserver', '--no-term', '-c', 'wine /home/timer/Reloaded-II/Reloaded-II.exe', '1113000']
Running inside Flatpak sandbox, version 1.14.6.
Using default Steam Runtime at /home/timer/.steam/debian-installation/ubuntu12_32/steam-runtime
WINETRICKS environment variable is not available. Searching from $PATH.
Found 1 Steam library folders
Currently logged-in Steam user: sparkster90
Found 0 Steam shortcuts running using Steam compatibility tools
User has configured app Proton version (CompatToolMapping): GE-Proton9-21
User has configured default Proton version (CompatToolMapping): proton_experimental
Found active custom compatibility tool: GE-Proton9-21
Active compatibility tool is a Proton installation
Using 'bwrap = True' as default value
Using separately installed Steam Runtime: Steam Linux Runtime 3.0 (sniper)
Running Steam Runtime using bwrap containerization.
If any problems arise, please try running the command again using the `--no-bwrap` flag and make an issue report if the problem only occurs when bwrap is in use.
Created Steam Runtime Wine binary directory at /home/timer/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/GE-Proton9-21/bin
WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
Starting bwrap launcher process: /home/timer/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/GE-Proton9-21/bin/bwrap-launcher
Terminating launcher process 5
Launcher process terminated

To Reproduce Steps to reproduce the behavior:

  1. Run protontricks in terminal.
  2. Choose any game (in my case, Persona 4 Golden, but any game seems to do the trick)
  3. Command fails and error is displayed

Expected behavior Program loads as normal.

System (please complete the following information):

  • Distro: Linux Mint 22
  • Protontricks installation method: Flatpak
  • Protontricks version: 1.12.0, however terminal prints it as "(unknown)"
  • Steam version: stable

Additional context Only occurs when bwrap is in use, as with the --no-bwrap command, Protontricks loads (albeit a bit slowly).

TimerBunneh avatar Jan 02 '25 20:01 TimerBunneh

This could potentially be related to missing permissions if AppArmor is in use in your distro. Could you try following the instructions in the following comment and check if it solves the issue?

https://github.com/Matoking/protontricks/issues/326#issuecomment-2299321619

Matoking avatar Jan 06 '25 11:01 Matoking

Unfortunately, it didn't seem to. I'm rather new to Linux though so I could very easily be missing something. I made a file called protontricks and put it into etc/apparmor.d

TimerBunneh avatar Jan 07 '25 00:01 TimerBunneh