Lutris stop running

Hello,
Have you had this problem with Lutris recently? I use KDE plasma in OpenSuse Tumbleweed and when I try to run Lutris it does not open and I get this error:

(process:4777): Gtk-CRITICAL **: 09:20:58.701: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/bin/lutris", line 57, in <module>
    from lutris.gui.application import Application  # pylint: disable=no-name-in-module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lutris/gui/application.py", line 60, in <module>
    from .lutriswindow import LutrisWindow
  File "/usr/lib/python3.11/site-packages/lutris/gui/lutriswindow.py", line 19, in <module>
    from lutris.gui.config.preferences_dialog import PreferencesDialog
  File "/usr/lib/python3.11/site-packages/lutris/gui/config/preferences_dialog.py", line 12, in <module>
    from lutris.gui.config.runners_box import RunnersBox
  File "/usr/lib/python3.11/site-packages/lutris/gui/config/runners_box.py", line 8, in <module>
    from lutris.gui.config.runner_box import RunnerBox
  File "/usr/lib/python3.11/site-packages/lutris/gui/config/runner_box.py", line 9, in <module>
    from lutris.gui.dialogs.runner_install import RunnerInstallDialog
  File "/usr/lib/python3.11/site-packages/lutris/gui/dialogs/runner_install.py", line 64, in <module>
    class RunnerInstallDialog(ModelessDialog):
  File "/usr/lib/python3.11/site-packages/lutris/gui/dialogs/runner_install.py", line 74, in RunnerInstallDialog
    if has_stock_icon("software-installed-symbolic") else "wine-symbolic"
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lutris/gui/widgets/utils.py", line 155, in has_stock_icon
    return theme.has_icon(name)
           ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'has_icon'

If any of you solved this, please tell me how to do it

Is your system up to date?
Which Lutris version?
Which python package version do you run?

Lutris starts fine here with Tumbleweed 20231108, Lutris 0.5.14 and mainly Python11…

Opening and closing produces here:

ich@rennsemmel:~> lutris

(lutris:10624): dbind-WARNING **: 14:42:18.919: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
2023-11-12 14:42:19,212: Starting Lutris 0.5.14
2023-11-12 14:42:19,213: Using NVIDIA drivers 535.129.03 for x86_64
2023-11-12 14:42:19,213: GPU: NVIDIA GeForce RTX 3080 Ti
2023-11-12 14:42:19,213: GPU: 10DE:2208 1569:2208 (nvidia drivers)
2023-11-12 14:42:22,511: Shutting down Lutris
ich@rennsemmel:~> 


Hello,
Lutris version: 0.5.14-1.1
Nvidia drivers: 535.129.03
Python 2.7.18 and Python 3.11.5
Tumbleweed 20231108

Apparently, it has something to do with some Gtk icon theme

The GTK critical might be a red herring. The Python stuff is the important one…

I would start to clean the Python installation and remove Python 2. It shouldn’t be needed by anything longer…you can use YaST software to clean up (if you don’t feel comfortable to use terminal) as you get some warnings when you try to remove some important stuff.

On an up to date system nothing besides python3 and python311 should be installed.

Only a question (because you didn’t show full terminal output…): did you install Lutris from openSUSE repos or do you use something like flatpack/snap/appimage or whatever? Because a guy had the same terminal error with the snap package:

@jfespinal Running lutris -d for some extra debug output help. Any recent theme changes on your system?

jfespinal@alienware-jorge:~> lutris -d

(process:17602): Gtk-CRITICAL **: 12:01:57.322: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/bin/lutris", line 57, in <module>
    from lutris.gui.application import Application  # pylint: disable=no-name-in-module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lutris/gui/application.py", line 60, in <module>
    from .lutriswindow import LutrisWindow
  File "/usr/lib/python3.11/site-packages/lutris/gui/lutriswindow.py", line 19, in <module>
    from lutris.gui.config.preferences_dialog import PreferencesDialog
  File "/usr/lib/python3.11/site-packages/lutris/gui/config/preferences_dialog.py", line 12, in <module>
    from lutris.gui.config.runners_box import RunnersBox
  File "/usr/lib/python3.11/site-packages/lutris/gui/config/runners_box.py", line 8, in <module>
    from lutris.gui.config.runner_box import RunnerBox
  File "/usr/lib/python3.11/site-packages/lutris/gui/config/runner_box.py", line 9, in <module>
    from lutris.gui.dialogs.runner_install import RunnerInstallDialog
  File "/usr/lib/python3.11/site-packages/lutris/gui/dialogs/runner_install.py", line 64, in <module>
    class RunnerInstallDialog(ModelessDialog):
  File "/usr/lib/python3.11/site-packages/lutris/gui/dialogs/runner_install.py", line 74, in RunnerInstallDialog
    if has_stock_icon("software-installed-symbolic") else "wine-symbolic"
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/lutris/gui/widgets/utils.py", line 155, in has_stock_icon
    return theme.has_icon(name)
           ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'has_icon'
jfespinal@alienware-jorge:~> 

This is the complete terminal information about it. And yes it is from OpenSuse official repos

I uninstalled Python 2 and I got the same error

No themes changed

@jfespinal So run with debug and paste the full output… lutris -d

I already did it!

@jfespinal It should show more info with debug option? When you say ‘official’ you mean the default repositories eg Main Repository (OSS)?

If you create a test user and login as that user and run lutris -d do you get the same error? If so, then it’s a system wide issue and likely a bug report needed, if not, then it’s a user issue somewhere in $HOME.

Hello,
I created a new user “test” and I got the same error running it from the new user account “test”
I got the lutris 0.5.14-1.1-noarch from openSUSE:Tumbleweed with priority 99 and vendor openSUSE

@jfespinal Then I suggest a bug report on your issue: openSUSE:Submitting bug reports - openSUSE Wiki

Hello,
It was a missing Python 3.11 library. The python311-gobject wasn’t installed. By the time the system made the update from python 3.10 to 3.11 the python311-gobject wasn’t available. I just installed and it works.

1 Like