Contentstat id error when launching (MTG Arena)

Hey,
When launching MTG Arena (the only game I have installed via lutris), nothing happens, but the game stays infinitely in “launching”.

I have just reinstalled lutris because of this error, but it still persists. It seems like lutris can’t find the dictionary entry contentstat in the dictionary library[“libraryfolders”]. I am unsure what caused this error. I never had any problems of that kind before with Lutris, but at some day they appeared. I only today learned about lutris -d allowing me to debug the issue. However, I don’t know how I can fix this issue.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/exceptions.py", line 57, in wrapper
    return function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 420, in configure_game
    gameplay_info = self.get_gameplay_info()
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 398, in get_gameplay_info
    gameplay_info = self.runner.play()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 825, in play
    launch_info = {"env": self.get_env(os_env=False)}
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 749, in get_env
    env = super(wine, self).get_env(False)
  File "/usr/lib/python3/dist-packages/lutris/runners/runner.py", line 186, in get_env
    runtime_env = self.get_runtime_env()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 789, in get_runtime_env
    for proton_path in get_proton_paths():
  File "/usr/lib/python3/dist-packages/lutris/util/wine/wine.py", line 49, in get_proton_paths
    for path in _iter_proton_locations():
  File "/usr/lib/python3/dist-packages/lutris/util/wine/wine.py", line 38, in _iter_proton_locations
    for path in [os.path.join(p, "common") for p in steam().get_steamapps_dirs()]:
  File "/usr/lib/python3/dist-packages/lutris/runners/steam.py", line 243, in get_steamapps_dirs
    library_config = self.get_library_config()
  File "/usr/lib/python3/dist-packages/lutris/runners/steam.py", line 149, in get_library_config
    return read_library_folders(self.steam_data_dir)
  File "/usr/lib/python3/dist-packages/lutris/util/steam/config.py", line 161, in read_library_folders
    library["libraryfolders"].pop("contentstatsid")
KeyError: 'contentstatsid'

I am not sure if this is related, but I also can’t stop the launched game using rightclick stop. That returns:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/game_actions.py", line 144, in on_game_stop
    game.force_stop()
  File "/usr/lib/python3/dist-packages/lutris/game.py", line 527, in force_stop
    os.kill(int(pid), signal.SIGTERM)
PermissionError: [Errno 1] Operation not permitted

Thank you very much for your interest!

1 Like

It looks like I was able to fix this using: https://www.reddit.com/r/Lutris/comments/t6fbxl/cant_launch_any_titles_with_lutris_python_error/ the explanation given here. lutris -d was most helpful!

1 Like