cboxdoerfer / ddb_waveform_seekbar

Waveform Seekbar plugin for DeaDBeeF audio player
74 stars 10 forks source link

Repeatedly hitting 'next' or 'back' in a playlist causes UI to freeze and possibly crash DeaDBeeF #14

Open tinglycraniumplacidly opened 8 years ago

tinglycraniumplacidly commented 8 years ago

Thank you for this wonderful plugin - without it I might never have used DeaDBeeF! I'm currently using version 0.7.2 of DeaDBeeF built from source, and 0.5 of ddb_waveform_seekbar also built from source.

So the problem I'm having is that DeaDBeeF crashes pretty quickly if you hold down the hotkey for 'next' or 'back'. If you tap the keys in quick succession, it will freeze up the UI while playing one of the tracks that was next in the queue. When I remove the plugin, the problem goes away and DeaDBeeF will handle track loading/playlist navigating perfectly.

Unchecking 'Use cache' will prevent DeaDBeeF from crashing, but the UI becomes unresponsive to commands to play or pause a track or any other track in the playlist. If I try quitting DeaDBeeF at this point, I get the following popup:

The player is currently running background tasks. If you quit now, the tasks will be cancelled or interrupted. This may result in data loss.

There's no additional output to the console if run from terminal.

cboxdoerfer commented 8 years ago

Good catch, thx for reporting. There are a couple of issues here which need fixing. Most of them can probably be fixed with a more intelligent queue management for decoding. I'll have a look at that right away.