-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Hello,
I'm encountering a UnicodeDecodeError when launching Friture. The application gets stuck on the splash screen and then crashes. The traceback points to an issue within the sounddevice library when querying for audio devices, specifically when decoding a device name.
This suggests that one of my audio device names may contain non-UTF-8 characters, which is causing the decoding to fail. However, it's strange because I've checked all my audio device names and I couldn't seem to find any non-UTF-8 characters.
Steps to Reproduce:
1.Launch the Friture application.
2.The splash screen appears.
3.The application crashes and the following error is produced.
Error Log:
Traceback (most recent call last):
File "main.py", line 6, in
File "friture\analyzer.py", line 418, in main
File "friture\analyzer.py", line 117, in init
File "friture\audiobackend.py", line 64, in AudioBackend
File "friture\audiobackend.py", line 83, in init
File "friture\audiobackend.py", line 205, in get_input_devices
File "sounddevice.py", line 564, in query_devices
File "sounddevice.py", line 564, in
File "sounddevice.py", line 578, in query_devices
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 6: invalid continuation
System Information:
Operating System: Windows 11 Pro 64-bit
System Language: Simplified Chinese
Friture Version: 0.51
It would be great if the device name handling could be made more robust to prevent such crashes. Thank you for your work on this great tool!