elibroftw / music-caster

Music Caster is a modern music player with the ability to cast audio files, system audio, and URLs to Google Chromecasts, Google Home/Nest Minis, etc.
https://elijahlopez.ca/music-caster/
Other
142 stars 16 forks source link

Music Caster suddenly cannot start anymore #39

Closed segner closed 2 years ago

segner commented 2 years ago

Since maybe 2 hours, I cannot start the Windows app anymore. I receive this error message during startup:

Failed to execute script 'music_caster' due to unhandled exception: 'charmap' codec can't decode byte 0x81 in position 74: character maps to

Traceback (most recent call last): File "music_caster.py", line 202, in File "music_caster.py", line 132, in activate_from_lock_file File "music_caster.py", line 42, in is_already_running File "music_caster.py", line 33, in get_running_processes File "encodings\cp1252.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 74: character maps to

I speculate you deployed a new version via auto update. But I also made some config changes in my audio settings, which could have led to this problem...

segner commented 2 years ago

By the way, I have the non-portable version installed (latest).

segner commented 2 years ago

After uninstall and re-install, the app started working again.

elibroftw commented 2 years ago

Issue was because of an encoding thing. Should be good now. Reopen if anything happens after 5.1.12

segner commented 2 years ago

The issue came back! There is a slightly different error message, now:

image

Traceback (most recent call last): File "music_caster.py", line 202, in File "music_caster.py", line 132, in activate_from_lock_file File "music_caster.py", line 42, in is_already_running File "music_caster.py", line 33, in get_running_processes File "codecs.py", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 74: invalid start byte

I upgraded to version 5.1.13, but the issue persists...

elibroftw commented 2 years ago

I'll look into it. Leaving this here for me https://stackoverflow.com/questions/65591849/unicodedecodeerror-charmap-codec-cant-decode-byte-0x81-in-position-2483-cha. Todo try utf-16le.

elibroftw commented 2 years ago

Fixed, although you may receive a different error message.

segner commented 2 years ago

I can confirm that the new version (v5.1.14) does not show the error during startup. I will report, if it starts acting up again. Thank you for your support!