Opened 9 years ago

Closed 9 years ago

#10127 closed Bug Report - Hang/Deadlock (fixed)

mirobridge fails if there are graphics files with non ascii characters in storagegroups

Reported by: ryan.goat@… Owned by: sphery
Priority: minor Milestone: 0.25
Component: Contributed Scripts & Apps Version: Master Head
Severity: medium Keywords: miro mirobridge
Cc: Ticket locked: no


Mirobridge stopped working for me several months ago. It seems to be failing because of non-ascii characters in mythtvideo graphics files for non-miro related videos.

Here is the error message. . .

2011-10-26 20:57:46,027 INFO     No items downloading
Traceback (most recent call last):
  File "./mythtv_git/mythtv/mythtv/contrib/imports/mirobridge/", line 2729, in <module>
  File "./mythtv_git/mythtv/mythtv/contrib/imports/mirobridge/", line 2392, in main
    videostodelete = getOldrecordedOrphans()
  File "./mythtv_git/mythtv/mythtv/contrib/imports/mirobridge/", line 1191, in getOldrecordedOrphans
    data[u'subtitle'], graphic_suffix[u'episodeimagedir'], u'png'))
  File "/home/ryan/mythtv_git/mythtv/mythtv/contrib/imports/mirobridge/mirobridge/", line 228, in cleanupVideoAndGraphics
    if name.startswith(fileBaseName):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 3: ordinal not in range(128)

Unicode byte 0xe9 is character: é. I have several graphic files with names like, "Pokémon Season 1_coverart.jpg". So it seems mirobridge seeing those files is the root cause behind the hang.

Everytime I run mirobridge it reaches this error and hangs. <ctrl-c> does not terminate the process. I have to do a "kill -9" command on the offending process.

Attachments (1)

mirofail.log (3.3 KB) - added by ryan.goat@… 9 years ago.
log showing hanging

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by Raymond Wagner

Status: newinfoneeded_new

This sounds awfully like the kind of problem that arises from running something other than a UTF locale. Run the command locale from within the same environment that mirobridge operates under, and paste the result.

Changed 9 years ago by ryan.goat@…

Attachment: mirofail.log added

log showing hanging

comment:2 in reply to:  1 Changed 9 years ago by ryan.goat@…

Output from locale:


and I'm attaching a file showing the full output from locale & in the same session.

comment:3 Changed 9 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: infoneeded_newclosed

Fix unicode fault when dealing with file names

Correct a fault found when dealing with unicode filenames where the incorrect character set is used and string matching fails.

Fixes #10127

Signed-off-by: Raymond Wagner <rwagner@…>

Branch: master Changeset: de3efcfb54d383761197e5f8f6c5c3b3dc866e9b

Note: See TracTickets for help on using tickets.