Skip to content

Manage playback errors to prevent infinite looping on repeat

Conditions:

  • Playlist is populated with non-local media
  • Repeat is enabled
  • File server disconnects in the middle of playback

System:

  • Windows 7 Pro x64 (Client) (but likely other platforms)
  • VLC 2.1.5 (possibly earlier versions)
  • Arch Linux Arm & Samba (Server)
  • Windows 7 Home Premium x64 (Server)

Bug:

  • VLC will try to play the media and loop infinitely through the playlist, reporting errors, rather than breaking out after erroring on all the files.
  • VLC becomes unresponsive to controls or hotkeys due to the error popup priority.
  • VLC then freezes/crashes, resulting in user a force-quit (CTRL-ALT-DEL end-task) or an OS-level application exit due to unresponsive application.

Suggested fixes:

  • Stop playback when number of playback errors reported is equal to playlist length (or some multiple of playlist length), or add booleans to playlist items to track if the items have already errored out.
  • Provide an option to limit error reporting to some value (ie. only show the last N errors in the error notification popup) to prevent excessive resource consumption.
  • Provide an button in the error notification popup that stops error reporting so that user can go back into VLC.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information