Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError during local scan #1599

Closed
raqua opened this issue Feb 9, 2017 · 1 comment
Closed

UnicodeDecodeError during local scan #1599

raqua opened this issue Feb 9, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@raqua
Copy link

@raqua raqua commented Feb 9, 2017

Hi, I was using Mopidy and it worked fine. Without any change to config, I altered my collection.
I run a ReplayGain software on in in order to get relative volume levels. I am aware that this is not supposed to work with Mopidy, but I also use other players on the same collection.

After that, local scan started to crash. I had a backup of my collection and restored that, but I still get the crash and there is no info that would help me to identify on what songs it crashes.

Log attached.
mopidy.txt

@alexjaw
Copy link
Contributor

@alexjaw alexjaw commented Jul 11, 2017

Have looked at mopidy.txt and searched for similar errors. The cause for this error might be that your locale LANG variable is unset, see SO. At least I got the same error with locale_decode(bytestr) when I unset my LANG variable.

I propose that local_decode() returns a string to scan.py if it fails with decoding. The error string could be "Codec can't decode content. Check your LANG setting ($ echo $LANG).". Then I assume that the scanner stops at the track that failed, thus giving better feedback to the user.

(I can implement a fix for the issue.)

alexjaw added a commit to alexjaw/mopidy that referenced this issue Jul 31, 2017
…rn error msg upon failure (Fixes: mopidy#1599)

This exception can happen when locale is unset, which effectively means that ascii char set is used.
alexjaw added a commit to alexjaw/mopidy that referenced this issue Aug 1, 2017
…error msg upon failure (Fixes: mopidy#1599)

This exception can happen when locale is unset, which effectively means that ascii char set is used.
alexjaw added a commit to alexjaw/mopidy that referenced this issue Aug 14, 2017
…ls with local encoding (Fixes: mopidy#1599)

This exception can happen when locale is unset, which effectively means that ascii char set is used.
@jodal jodal closed this in e215484 Mar 30, 2018
@jodal jodal self-assigned this Mar 30, 2018
@jodal jodal added this to the v2.2 milestone Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants