streamdeck-linux-gui: [BUG]: streamdeck-ui crashing on launch
In raising this issue I confirm that
- I have fully completed the issue template
- I have searched open and closed issues for duplicates
- I have read the Contribution Guidelines
- I have read the Code of Conduct
- I have read the Documentation
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)
I just realized, that I had a lot of references to
/usr/share/fonts/TTF/Roboto-Regular.ttfin my config file. Changing this toRoboto-Regular.ttfremoves the dependency to the external font and fixes the above error.