Ticket #5117 (closed Bugs: Fixed in SVN)

Opened 7 weeks ago

Last modified 6 weeks ago

XBMC hangs when reading a corrupt mp3 file

Reported by: Juan234 Owned by: spiff
Priority: 4 - Normal Milestone: 8.10
Component: Database for Audio/Music Version: SVN
Severity: Normal Keywords:
Cc: Platform: All
Revision:

Description

A single corrupt mp3 file will hang xbmc while its performing a media scan. UI becomes unresponsive. When I tested on the xbox with Atlantis Beta 1, xbmc never recovered when attempting to do a library scan over the network. On Windows (Atlantis Beta 2) it seems to finish scanning the individual mp3 file (locally) after a few minutes. Attempting to play the file freezes xbmc too. After a few minutes, the error message is displayed: "Playlist playback aborted. Too many consecutive failed items"

I think the correct behavior would be to allow the user to abort at any time. And I wouldn't think it should take minutes to discover a file is unplayable, especially when it's stored locally on the hard drive.

Attachments

xbmc.log (80.4 kB) - added by Juan234 7 weeks ago.
corrupt_mp3.mp3 (207 bytes) - added by Juan234 7 weeks ago.
example corrupt mp3
fix_infinite_loop_and_crash_playing_corrupt_mp3.patch (2.5 kB) - added by apanloco 6 weeks ago.
Fixes an infinite loop when playing a corrupt mp3, and a crash when seek information is unavailable, and minor cleanups in MP3Codec.cpp.

Change History

Changed 7 weeks ago by Juan234

Changed 7 weeks ago by Juan234

example corrupt mp3

Changed 6 weeks ago by apanloco

Fixes an infinite loop when playing a corrupt mp3, and a crash when seek information is unavailable, and minor cleanups in MP3Codec.cpp.

Changed 6 weeks ago by spiff

  • owner set to spiff
  • status changed from new to assigned

Changed 6 weeks ago by spiff

  • status changed from assigned to closed
  • resolution set to Fixed in SVN

applied with some minor adjustments. thanks!

r15847

Changed 6 weeks ago by sho

  • milestone set to 8.10
Note: See TracTickets for help on using tickets.