Skip to content

[Bug] audio buffer stuttering loop on stream underrun ("large audio sync error") #1645

@ge0rg

Description

@ge0rg

Describe the problem

After multiple failures to load the next segment from a streaming service, Kodi will keep playing back the last used audio buffer, causing a very loud and annoying stuttering sound (remember when old PC games crashed?). I thought this is related to #1629 but it's still happening with ISA 21.5.2.

I'm not asking you to fix the rotten backend, but when running out of audio data, Kodi should stop playback instead of just repeating the last sample buffer.

Unfortunately it's not possible to reproduce by merely disconnecting the running Kodi from the Internet, in that case it will properly pause playback, so a HTTP 502 response seems to trigger a different code path in ISA/Kodi.

Possible fix

No response

Steps to reproduce

  1. Run a video from a streaming service
  2. Wait for the streaming service backend to fail on a URL multiple times with HTTP 502
  3. Wake up from loud audio stuttering

Debug log

https://paste.kodi.tv/alagajalet.kodi
log.txt

Stream manifest file(s)

No response

Additional info

Relevant log timestamps:

  • 2024-08-20 00:21:13.722 T:21133 start of playback of the video
  • 2024-08-20 00:31:38.618 T:21143 first HTTP error 502
  • 2024-08-20 00:31:50.240 T:31275 stuttering begins
  • 2024-08-20 00:31:57.773 T:31266 I press the [stop] key, stuttering stops

Operating system(s)

Linux

Operating system version(s)

Arch Linux / ALARM

InputStream Adaptive version(s)

21.5.2

Kodi version(s)

21.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage: Needed(managed by bot) issue that was just created and needs someone looking at it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions