Writing and reading through Lollypop causes occasional file corruption
Environment
- Lollypop version: 0.9.607
- GNOME version: 3.28
- Operating system: Ubuntu 18.04 LTS
Bug
I've encountered this bug a few times while using Lollypop. I've not been fully able to pinpoint the issue, but I think I have enough info.
- Have an music file that is playing, both mp3 and flac showed this behaviour
- Change the image of the album through Lollypop
After doing this, I sometimes discovered that Lollypop stutters and goes to the next track. It doesn't do very well when it's source files are changed. When no going back to the music file, I can check it using flac -wst or mp3val and it shows that the file got a corruption in the read-write action. Sometimes the damage is also audible, which is how I discovered the issue for the first time sometime last month.
before coming here, I did look into something like bad sectors, bit rot, and my file syncing system, but that didn't statistically work out. It's unlikely that of one album, 5 songs flag as 'corrupt' because of bit rot: I'll more likely die in a vehicular manslaughter.
And tonight, I experienced the same thing as I described above. I tried to add some updated artwork to an album, and Lollypop stuttered, after which the files had a few audible artefacts when playing back.
Remedy
Perhaps it would be best to prevent the user from changing artwork of albums he is listening to. I never had this issue when using kid3-qt, for the likely reason that kid3 doesn't actually play the audio.