Sometimes the first song of an album skips midway through

Issue description:

Sometimes when I start playing a new album, the first song starts playing just fine and then unexpectedly mid-way through the song Symfonium skips to the next song.

Logs:

Upload description: ProTofik

Additional information:

 
In my experience, this only affects some first songs of some albums. The song is cached on my phone and a stable, fast Wi-Fi connection is also available. My subsonic server is Navidrome and this album plays just fine directly in Navidrome.

See the screen recording, you can see the problem occuring at around 2:18 mark: https://youtu.be/_G3WU6cNf50

I have managed to reproduce this error twice on this album, however I have had it occur on a different album before as well. Debug logs have been uploaded with my nickname as the description.
 

Reproduction steps:

 

  1. Play a new album
  2. Let it play
  3. About 2/3 through the first song you will first notice the progress bar showing the song as complete, then a few second later Symfonium will skip to the next song on its own.

 

Media provider:

Subsonic

Screenshots:

     

Does it happens 100% of the time at the same place on the same song ?

What happens if you disable Playback cache in the settings and play the album again ?

I’m trying to find this setting but no luck. Where is it located? Or do you want me to clear the playback cache?

Anyway I just tried again and discovered something interesting.
Wi-Fi/5G on: The song always skips at the same moment

Wi-Fi/5G off: The song plays in full as expected.

Logs uploaded with ‘internet disabled’ note.

You are transcoding with Wifi off so not the same cached data and not the same file at all in the end.

Playback cache is in Offline Cache and Downloads then Playback.

Ok, I disabled it and tried again. The song still skips. Debug log uploaded.

Please also upload that song so I can look tomorrow.

There you go: 01. 赤猫.flac

SHA256 because I don’t trust Microsoft not to do something funny to the file: 89E9B0A7A46805AC36B1D8DE0C93725AF24C8563022DA37276B2A79DCC9D4D05

The cache is not disabled in those logs.

Ok my bad. New logs uploaded.
With cache disabled, it plays fine and doesn’t skip.

Ok so the playback cache is corrupted but does not throw an error :frowning:

Can you please enable back the playback cache then after the bug occurs capture a bug report.

Then upload it to https://upload.symfonium.app

Google will probably need it to investigate :frowning:

Ok so I re-enabled the cache, played the song until it skipped, then went to dev options and generated a full bug report, is that correct?

Uploaded as requested.

Thanks yes, hopefully Google will react and figure out something.

1 Like

Ok, should I empty rolling cache in the meantime, or better wait for Google to come back to you?

If you can it’s better to keep it like this in case they need more.

I added a few new albums to navidrome yesterday and tried to play them on symfonium today and one of them got exactly the same issue with its song no. 1. I will disable playback cache for now.

Do you have logs when you first played that song ?
That would maybe show the actual source of the issue.

I have a theory what might be happening. I started playing thos album as I was driving away from my house, so maybe it gets corrupted as I lose the WiFi and switch to 5g? I will test it next week with some new albums and will try to capture the logs.

It’s probable but it should not cause an issue, maybe some combination of settings like transcoding on 5g and the option instant switch or something like that.

If you can repro with logs it would help yes.

Ok I managed to reproduce it, sort of.

  1. Upload new album to Navidrome
  2. In Symfonium settings, go to Media Providers > Sync
  3. New album appears in ‘Recently Added’
  4. Hit play on the new album, it starts playing and shows codec: FLAC
  5. A few seconds into the album, power off my access point to simulate sudden loss of Wi-Fi and automatic switchover to 5G
  6. The song continues to play, but some 3/4 through the song I noticed the codec changed from FLAC to ogg/opus. It continues to play though.
  7. Then the last 10-15 seconds of the song skipped

Although when I hit ‘previous song’ button and let it play again, it didn’t skip again :thinking:

I uploaded the logs as ‘protofik skipped song’ or something like that.

So not this is something different here, the server did not transcode fast enough.
You can enable the option Force instant transcoding to workaround this, this will cause a small glitch on the switch but ensure less issues.

Does that song properly play on Wifi now too ?