streamdeck-linux-gui: [BUG]: streamdeck-ui crashing on launch

In raising this issue I confirm that

Describe the bug

Hello,

I just upgraded streamdeck-ui to version 4.0.0-1 and are getting the following crash:

$ streamdeck
Traceback (most recent call last):
  File "/usr/bin/streamdeck", line 5, in <module>
    from streamdeck_ui.gui import start
  File "/usr/lib/python3.11/site-packages/streamdeck_ui/gui.py", line 45, in <module>
    from streamdeck_ui.modules.fonts import DEFAULT_FONT_FAMILY, FONTS_DICT, find_font_info
  File "/usr/lib/python3.11/site-packages/streamdeck_ui/modules/fonts.py", line 151, in <module>
    DEFAULT_FONT_FAMILY, DEFAULT_FONT_STYLE = find_font_info(DEFAULT_FONT)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/streamdeck_ui/modules/fonts.py", line 147, in find_font_info
    return find_font_info(DEFAULT_FONT)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/streamdeck_ui/modules/fonts.py", line 147, in find_font_info
    return find_font_info(DEFAULT_FONT)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/streamdeck_ui/modules/fonts.py", line 147, in find_font_info
    return find_font_info(DEFAULT_FONT)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 979 more times]
  File "/usr/lib/python3.11/site-packages/streamdeck_ui/modules/fonts.py", line 143, in find_font_info
    for font_family, font_styles in FONTS_DICT.items():
                                    ^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded while calling a Python object

Steps to reproduce the behavior

Install and launch streamdeck-ui.

Expected behavior

I expected streamdeck-ui to launch.

Screenshots

No response

System Information

  • Arch Linux
  • Xfce4 as Desktop
  • Python version is 3.11.5
  • Kernel 6.1.61-1-lts

Stream Deck Version

XL

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments

I just realized, that I had a lot of references to /usr/share/fonts/TTF/Roboto-Regular.ttf in my config file. Changing this to Roboto-Regular.ttf removes the dependency to the external font and fixes the above error.