protontricks icon indicating copy to clipboard operation
protontricks copied to clipboard

Protontricks crashes unexpectedly

Open dot-rain opened this issue 7 months ago • 7 comments

Describe the bug Protontricks crashes unexpectedly.

To Reproduce Steps to reproduce the behavior:

  1. Run protontricks flatpak
  2. Select steam app and click 'ok'
  3. Error occurs

Expected behavior Trying to proceed to install dependencies.

System (please complete the following information):

  • Distro: Linux Mint Cinnamon 22.1 (64-bit)
  • Protontricks installation method: flatpak
  • Protontricks version: protontricks (1.10.5)
  • Steam version: Steam Beta Branch: Stable Client Steam Version: 1745876290 Steam Client Build Date: Mon, Apr 28 22:09 UTC -08:00 Steam Web Build Date: Fri, Apr 25 22:04 UTC -08:00 Steam API Version: SteamClient022

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 175, in wrapper return cli_func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.12/site-packages/protontricks/cli/main.py", line 337, in main run_command( File "/app/lib/python3.12/site-packages/protontricks/util.py", line 522, in run_command raise RuntimeError( RuntimeError: bwrap launcher crashed, returncode: 1

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

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

Protontricks version: 1.12.1 Is Flatpak sandbox: True Is Steam Deck: False

Log messages:

Running inside Flatpak sandbox, version 1.14.6. Found Steam directory at /home/red/.local/share/Steam Using default Steam Runtime at /home/red/.local/share/Steam/ubuntu12_32/steam-runtime WINETRICKS environment variable is not available. Searching from $PATH. Found 2 Steam library folders Currently logged-in Steam user: dot_rain_ Couldn't find custom shortcuts. Maybe none have been created yet? Using 'yad' as GUI provider User has configured app Proton version (CompatToolMapping): GE-Proton9-20 Found active custom compatibility tool: GE-Proton9-20 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/red/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/GE-Proton9-20/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/red/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/GE-Proton9-20/bin/bwrap-launcher Terminating launcher process 11 Launcher process terminated

====== Tried running this command, got this output:

red@Red-Lenovo-IdeaPad-S340-14IWL:~$ protontricks -vv --gui --no-bwrap protontricks (INFO): Found Steam directory at /home/red/.local/share/Steam protontricks (INFO): Using default Steam Runtime at /home/red/.local/share/Steam/ubuntu12_32/steam-runtime protontricks (INFO): WINETRICKS environment variable is not available. Searching from $PATH. protontricks (INFO): Found 2 Steam library folders protontricks (INFO): Currently logged-in Steam user: dot_rain_ protontricks (INFO): Couldn't find custom shortcuts. Maybe none have been created yet? protontricks (INFO): Using 'zenity' as GUI provider Traceback (most recent call last): File "/usr/bin/protontricks", line 8, in sys.exit(cli()) ^^^^^ File "/usr/lib/python3/dist-packages/protontricks/cli/main.py", line 32, in cli main(args) File "/usr/lib/python3/dist-packages/protontricks/cli/util.py", line 149, in wrapper return cli_func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/protontricks/cli/main.py", line 274, in main proton_app = find_proton_app( ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 821, in find_proton_app tool_app = find_steam_compat_tool_app( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 610, in find_steam_compat_tool_app appinfo_sections = [ ^ File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 540, in iter_appinfo_sections raise SyntaxError("Invalid file magic number") SyntaxError: Invalid file magic number

dot-rain avatar May 17 '25 18:05 dot-rain

Edit: accidentally was running two different versions. Got rid of the old one.

Error for updated version: 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 175, in wrapper return cli_func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.12/site-packages/protontricks/cli/main.py", line 337, in main run_command( File "/app/lib/python3.12/site-packages/protontricks/util.py", line 522, in run_command raise RuntimeError( RuntimeError: bwrap launcher crashed, returncode: 1

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

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

Protontricks version: 1.12.1 Is Flatpak sandbox: True Is Steam Deck: False

Log messages:

Running inside Flatpak sandbox, version 1.14.6. Found Steam directory at /home/red/.local/share/Steam Using default Steam Runtime at /home/red/.local/share/Steam/ubuntu12_32/steam-runtime WINETRICKS environment variable is not available. Searching from $PATH. Found 2 Steam library folders Currently logged-in Steam user: dot_rain_ Couldn't find custom shortcuts. Maybe none have been created yet? Using 'yad' as GUI provider User has configured app Proton version (CompatToolMapping): GE-Proton9-20 Found active custom compatibility tool: GE-Proton9-20 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/red/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/GE-Proton9-20/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/red/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/GE-Proton9-20/bin/bwrap-launcher Terminating launcher process 11 Launcher process terminated

Won't let me run commands in terminal with the flakpak version: ~$ protontricks --vv --gui Command 'protontricks' not found, but can be installed with: sudo apt install protontricks

If it do sudo apt install I get the ubuntu database version which is older but allows me to run it in terminal

dot-rain avatar May 17 '25 19:05 dot-rain

Can you try running the following command in a terminal emulator:

flatpak run com.github.Matoking.protontricks -vv --gui

It should print additional log messages that Protontricks is not able to capture into the error dialog. Can you copy the full output to gist.github.com and post it here?

Same as the previous issue report, the bwrap launcher crashed, returncode: 1 message means the bwrap launcher is crashing, and the error message for that is not something Protontricks cannot capture and display in the error dialog, requiring this workaround,

Matoking avatar May 19 '25 16:05 Matoking

I got the same Issue and used the mentioned command. Here's the Log: https://gist.github.com/ShadyDemoness/46417666ee49d9b3d76f71a50cdee867

ShadyDemoness avatar May 23 '25 23:05 ShadyDemoness

I have the same problem.

Can you try running the following command in a terminal emulator:

flatpak run com.github.Matoking.protontricks -vv --gui

It should print additional log messages that Protontricks is not able to capture into the error dialog. Can you copy the full output to gist.github.com and post it here?

Same as the previous issue report, the bwrap launcher crashed, returncode: 1 message means the bwrap launcher is crashing, and the error message for that is not something Protontricks cannot capture and display in the error dialog, requiring this workaround,

Executed the command:

...
protontricks (INFO): Found active compatibility tool: Proton 9.0
protontricks (INFO): Active compatibility tool is a Proton installation
protontricks (INFO): Using 'bwrap = True' as default value
protontricks (INFO): Using separately installed Steam Runtime: Steam Linux Runtime 3.0 (sniper)
protontricks (INFO): 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.
protontricks (INFO): Created Steam Runtime Wine binary directory at /home/norf/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/Proton 9.0/bin
protontricks (INFO): WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
protontricks (INFO): WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
protontricks (INFO): Starting bwrap launcher process: /home/norf/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/Proton 9.0/bin/bwrap-launcher
protontricks - bwrap-launcher 12: Following directories will be mounted inside container: /app /etc /home /sbin /tmp
protontricks - bwrap-launcher 12: Using temporary directory: /tmp/protontricks-5_m3pzf3
--share-pids not supported by host portal

This feature requires Flatpak to be using a bubblewrap (bwrap) executable
that is not setuid root.

The non-setuid version of bubblewrap requires a kernel that allows
unprivileged users to create new user namespaces.

For more details please see:
https://github.com/flatpak/flatpak/wiki/User-namespace-requirements

protontricks (INFO): Terminating launcher process 12
protontricks (INFO): Launcher process terminated
Traceback (most recent call last):
  File "/app/bin/protontricks", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/app/lib/python3.12/site-packages/protontricks/cli/main.py", line 32, in cli
    main(args)
  File "/app/lib/python3.12/site-packages/protontricks/cli/util.py", line 175, in wrapper
    return cli_func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/protontricks/cli/main.py", line 337, in main
    run_command(
  File "/app/lib/python3.12/site-packages/protontricks/util.py", line 522, in run_command
    raise RuntimeError(
RuntimeError: bwrap launcher crashed, returncode: 1

NorfLoud avatar May 29 '25 03:05 NorfLoud

Same error in my environment

jm4R avatar Aug 29 '25 13:08 jm4R

Same error in my environment

I run with the "--no-bwrap" flag with the command:

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=protontricks com.github.Matoking.proton  
tricks --no-term --gui --no-bwrap

Launch via the terminal.

NorfLoud avatar Aug 29 '25 13:08 NorfLoud

Thanks, --no-bwrap works

jm4R avatar Aug 29 '25 13:08 jm4R