User sessions begin and end with AUDIO_RENDERER_ERROR

1. Summary

We are experiencing sporadic audio_renderer_errors on AFTCA002 Fire TV devices (affecting 0.6% of VPF sessions). Errors occur at the beginning and end of playback sessions. While the Shaka player auto-recovers at the start, the error at session end coincides with TV power-off or AC-3 device disconnection, after which users do not attempt further playback. We believe this is triggered by these device/power events, though we have not yet reproduced the issue locally to confirm the root cause.

App Name: Peacock TV

Bug Severity
Select one that applies

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation (If selected, please share the doc link and describe the issue)
  • Other

2. Steps to Reproduce

  1. Start playback on Fire TV device (AFTCA002) with AC-3 compatible external audio device connected.
  2. Play extended session (long duration content)
  3. Disconnect or power off AC-3 compatible audio device during playback
  4. Observe media element behavior during device switch back to TV audio output
  5. Note: So far, unable to reproduce locally; issue occurs only on production hardware in field

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.

At the beginning of playback: Error occurs when session starts; Shaka player automatically recovers and creates a new session (no user impact due to retry logic)
End of session: Error occurs when content ends or user powers off TV; after this event, no further playback sessions are initiated from the device

4. Expected Behavior

Describe what you expected the SDK to do under normal operation.

Recover and do not throw error like it does on Android Fire TV. 

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

Shaka recovers and creates new session automatically but we like to know why this error is thrown.

5. Logs or crash report

So far not able to repro locally. No logs collected yet. Logs from affected AFTCA002 devices will be provided once available.

6. Environment

SDK Version: 0.22.5600
React Native Version: N/A (uses WebView instead of React Native)
App State: Foreground (sessions are user-initiated)
OS Information: FireTV OS 2.0
Player SDK: Shaka
Audio Codecs: EC3, MP4A2, AC4
Video Codecs: UHD, HDR10**

Any Additional Context you would like to provide?**

We recognize that device and crash logs from affected AFTCA002 units would be instrumental for investigating this issue; however, we wanted to bring this to your attention early. This behavior may be a known issue, and we'd appreciate any insights or workarounds your team might have. 

Hi @tlsky,

Thank you for the detailed bug report on the sporadic AUDIO_RENDERER_ERROR at the start and end of playback sessions on AFTCA002 devices, and for flagging it early.

Our team is investigating this issue and will provide an update as soon as we have more information.

As you mentioned, logs from affected devices will be key. When available, could you please share:

  1. The full, unfiltered device log covering an occurrence of the error, captured with loggingctl (see Use Loggingctl to Manage System Logs ( Use Loggingctl to Manage System Logs - Amazon Vega Docs )), along with any crash reports (ACR files) generated at that time, and the approximate timestamp of the error
  2. The full error details as reported by Shaka and the media element (Shaka error code, category and data, plus the HTMLMediaElement error code and message)
  3. From your field data: which audio codec (EC3, MP4A2 or AC4) was playing when the error occurred, the exact OS build of affected devices, and whether the error also occurs on other Vega Fire TV models or without an external audio device connected

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya

Hi Aishwarya,

We have seen an increase of this error since around 7 Feb. It does not align with any of our releases. Was there a firmware release around this time? Thanks!

Regards,
Karen

Hi @Karen_Wong, @tlsky,

Thank you for your patience. Our team has looked into the AUDIO_RENDERER_ERROR that occurs at the end of playback sessions.

The error can occur when the last connected audio output is removed during playback, for example when the TV is powered off or when the only external audio device is disconnected. If another audio output is still connected, playback recovers. Our team is evaluating a fix for this scenario. We don’t have a timeline to share yet.

Until a fix is available, you can use the following temporary workaround. It only runs when a media error occurs, so it is safe to keep after the fix:

  1. Treat the media element error event (MediaError code 3) as recoverable, not as the end of the session.
  2. Retry only once the app is visible again (on the visibilitychange event), since no audio output is available right after the TV powers off.
  3. For Shaka/MSE playback, call player.load(manifestUri, lastPosition) again, then play(). For progressive video playback, set src again, seek to the last position, then call play().

Please let us know if this workaround doesn’t help in your case.

Thank you also for letting us know that the increase started around 7 Feb and doesn’t line up with any of your app releases. We’ve shared this timing with our team so they can check it against device software updates from around that time.

To help our team look into the errors at the start of sessions and the increase since 7 Feb, could you please capture logs on an affected Fire TV Stick 4K Select and share:

  1. The full, unfiltered loggingctl log covering EC3 playback during which you power off the TV once and disconnect the external audio device (AVR or soundbar) once, with the UTC timestamp of each error
  2. The device serial number (DSN) and OS build number of the device used for the capture
  3. The Shaka error data and the HTMLMediaElement error message (MediaError.message) for each error in the capture
  4. From your field data, the OS build numbers of affected devices before and after 7 Feb, and the error rate per OS build if available

We’ll update you here as soon as we have more information.

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya

Thanks, @amen. Is it possible to receive the AUDIO_RENDERER_ERROR due to a malformed asset or another cause on the player side, or is it only caused by a hardware unplug/shutoff on the user’s end?

Hi @Darrin_Duford,

Thank you for the follow-up question.

Our team has confirmed that AUDIO_RENDERER_ERROR is raised when the audio output path fails during playback. Besides a device being unplugged or powered off, this includes the audio output stream failing to open or start, or a write to the platform audio output failing in a way that can’t be recovered.

A malformed or undecodable asset normally shows up earlier as a decode or “format not supported” error instead. However, a stream that passes the initial checks but is rejected by the platform audio output can also surface as AUDIO_RENDERER_ERROR.

The logs requested in my previous reply will help our team identify which of these applies to your errors.

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya