#Protontricks SyntaxError: Invalid file magic number

123 messages · Page 1 of 1 (latest)

long moss
#

I have 5 drives but protontricks isn't detecting games on the other 4. Only games on the drive that as my linux install. Why?

Error message:
Protontricks was closed due to the following error:

Traceback (most recent call last):
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

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

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

Found Steam directory at /home/wintersouls/.steam/debian-installation
Using default Steam Runtime at /home/wintersouls/.steam/debian-installation/ubuntu12_32/steam-runtime
WINETRICKS environment variable is not available. Searching from $PATH.
Found 5 Steam library folders
Currently logged-in Steam user: [deleted for privacy]
Couldn't find custom shortcuts. Maybe none have been created yet?
Using 'zenity' as GUI provider

elfin sun
long moss
# elfin sun show result of `lsblk -f` from terminal plz

wintersouls@long moss-desktop:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1
ext4 1.0 Crucial 500GB 2 dd1f001f-2035-40ff-bd3e-2865b6aa90d8 284G 33% /mnt/dd1f001f-2035-40ff-bd3e-2865b6aa90d8
sdb
└─sdb1
ext4 1.0 de574f44-5ba8-4692-bc3a-9a6b3dcc5fe4 782.4G 9% /mnt/de574f44-5ba8-4692-bc3a-9a6b3dcc5fe4
sdc
├─sdc1
│ vfat FAT32 FB8B-041E 504.8M 1% /boot/efi
└─sdc2
ext4 1.0 1b0a225a-e256-4f2b-b598-633f580363ad 814.6G 6% /
sdd
└─sdd1
ext4 1.0 8a8aff33-6064-49df-9fa4-f3660b7cc794 224G 46% /mnt/8a8aff33-6064-49df-9fa4-f3660b7cc794
nvme0n1

└─nvme0n1p1
ext4 1.0 174990ea-7f39-4f9a-a09d-aef44cad77c4 615.1G 28% /mnt/174990ea-7f39-4f9a-a09d-aef44cad77c4

#

now my steam is loading infintiely

#

been like this for 5 minutes

elfin sun
long moss
#

all of these

#

each drive has different games

elfin sun
#

oh, so all are added in steam storage settings?

long moss
#

yep

#

i uninstalled steam trying to fix the infinite loading and this shows up now. It's like im trying to fix one problem and 3 more pops up

elfin sun
#

click each drive in file manager, go to top-level folder

long moss
elfin sun
#

the third grouplet should have create/modify perms on for folder access

long moss
long moss
#

just applied the same settings to all drives

elfin sun
#

i said the THIRD grouplet, not the second

#

and click 'apply enclosed' after changing it

long moss
#

oh grouplet =/= group

long moss
elfin sun
long moss
#

it was none originally

elfin sun
#

i'd imagine it should be 'access files'

#

then once set, click the apply enclosed button

long moss
#

thx

long moss
#

nevermind, disregard. Restarting my pc fixed it

#

nevermind again, steam is installed but I'm seeing infinite loading screen

#

and this error is showing up again

elfin sun
#

ensure u force-reinstalled the correct version of the lib.

long moss
elfin sun
#

ok well it seems you have the right one

#

so close that, and try to launch the Steam client

long moss
#

i just removed steam lib i386 to see if I can redownload it and now it's gone

long moss
#

i uninstalled it to see if i can get it running

long moss
#

it's straight up gone lool

elfin sun
#

u see what it says in the error message?

long moss
#

i managed to get steam to launch but it keeps loading infinitely for minutes now

elfin sun
#

it's staring at you in the third result in synaptic. just mark it for reinstallation in the tick box, and then force version to the one the error insists it needs

long moss
#

maybe I shojld reinstall linux?

elfin sun
#

99.99% yes

long moss
long moss
elfin sun
#

maybe it's getting stuff? check the System Monitor for Network traffic, especially Download

long moss
#

I still have the same issue initially with proton tricks tho:
Protontricks was closed due to the following error:

Traceback (most recent call last):
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

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

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

Found Steam directory at /home/wintersouls/.steam/debian-installation
Using default Steam Runtime at /home/wintersouls/.steam/debian-installation/ubuntu12_32/steam-runtime
WINETRICKS environment variable is not available. Searching from $PATH.
Found 5 Steam library folders
Currently logged-in Steam user:
Found 1 Steam shortcuts running using Steam compatibility tools
Using 'zenity' as GUI provider

#

i did the permission things like u said to

elfin sun
#

i heard that u should verify the integrity of game downloads. a majic number fault is often related to bit-errors

#

@gusty kiln perhaps you can show how.

gusty kiln
#

What games do you have installed?

#

oh wait, one moment

long moss
long moss
#

only games installed in the same drive as linux os gets detected

gusty kiln
#

nothing even in steam's storage settings?

long moss
#

oh wait no, they do get detected

#

as soon as I click on a game on protontricks, it shows me the error above

#

verifying integrity just in case

gusty kiln
#

I'm just saying from experience, I never used protontricks. Steam was always plug and play for me. I don't know anything about proton tricks, sorry.

#

but I would recommend verifying integrity

long moss
gusty kiln
#

don't do multiple at a time, one at a time by the way

long moss
#

in order to mod the game, I need to use proton tricks to install windows conponents

gusty kiln
#

I don't know much about modding games but I was playing Hitman Blood Money one time and it kept crashing and I reinstalled it. Sometimes verifying doesn't help there's something to keep in mind if you ever have a clean install of a game that randomly crashes for no reason.

long moss
#

i just used protontricks on it and still errors

#

does nobody knows how to make protontricks work?

gusty kiln
#

Was it working before?

#

I think I might know why.

#

the version in the linux mint repository is extremely outdated

#

1.10.5

on Sep 5, 2023
#

and a review states "Causes Invalid file magic number error."

#

@long moss

long moss
#

can u point the way to the right one?

gusty kiln
#

I recommend using the flatpak version.

long moss
gusty kiln
#

I can't tell you how to use protontricks but I can tell you how to download the flatpak version

#

and use flatseal to edit permissions. I can't see that causing harm because the outdated protontricks clearly isn't gonna work

long moss
# gusty kiln I recommend using the flatpak version.

Protontricks was closed due to the following error:

Traceback (most recent call last):
File "/app/lib/python3.13/site-packages/protontricks/cli/util.py", line 180, in wrapper
return cli_func(self, *args, **kwargs)
File "/app/lib/python3.13/site-packages/protontricks/cli/main.py", line 337, in main
run_command(
~~~~~~~~~~~^
winetricks_path=winetricks_path,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
cwd=cwd
^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/protontricks/util.py", line 477, in run_command
raise RuntimeError(
...<3 lines>...
)
RuntimeError: Proton 8.0 is missing the required Steam Runtime. You may need to launch a Steam app using this Proton version to finish the installation.

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

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

Protontricks version: 1.13.1
Is Flatpak sandbox: True
Is Steam Deck: False
Is SteamOS 3+: False

Log messages:

Running inside Flatpak sandbox, version 1.14.6.
Found Steam directory at /home/wintersouls/.steam/debian-installation
Using default Steam Runtime at /home/wintersouls/.steam/debian-installation/ubuntu12_32/steam-runtime
WINETRICKS environment variable is not available. Searching from $PATH.
Steam library folder /mnt/174990ea-7f39-4f9a-a09d-aef44cad77c4/SteamLibrary in Steam configuration does not exist
Steam library folder /mnt/de574f44-5ba8-4692-bc3a-9a6b3dcc5fe4/SteamLibrary in Steam configuration does not exist
Steam library folder /mnt/8a8aff33-6064-49df-9fa4-f3660b7cc794/SteamLibrary in Steam configuration does not exist
Steam library folder /mnt/dd1f001f-2035-40ff-bd3e-2865b6aa90d8/SteamLibrary in Steam configuration does not exist
Found 1 Steam library folders
Currently logged-in Steam user:

#

Found 1 Steam shortcuts running using Steam compatibility tools
Using 'yad' as GUI provider
User has configured app Proton version (CompatToolMapping): proton_8
Found active compatibility tool: Proton 8.0
Active compatibility tool is a Proton installation

gusty kiln
#

uuuuuh

#

was you using the flatpak version the entire time?

#

you need to give it permissions

#

use flatseal

#

I don't see the issue if you give it full file system permissions.

#

it's a trusted flatpak

#

"The Flatpak installation is sandboxed and only has access to the Steam installation directory by default. You will need to add filesystem permissions when using additional Steam library locations or running external Windows applications."

gusty kiln
#

ye

#

wait no

#

go down to proton tricks and then do that

#

I mean, unless you want discord having full file system permission I would uncheck that lol

gusty kiln
#

flatpaks are a bitch but once you set up proper permissions they're actually good

long moss
#

now all of my games shows up

#

instead of 1

long moss
#

no more error codes

gusty kiln
#

yeah, so it was flatpak permissions screwing you lol

long moss
#

yeah even the system version didnt work

gusty kiln
#

the dpkg version is outdated from 2023

#

but that's because of Ubuntu LTS I believe

long moss
#

ah, good to know.

gusty kiln
#

flatpak version is up to date

long moss
#

i slammed my face to a brick wall for no reason

#

I feel like i need a linux basics video

gusty kiln
#

bottles flatpak won't work for an example unless you give it permissions too

gusty kiln
#

hopefully everything goes well 👍