Live TV Integration on RN 0.83

Hey,

while porting our application to RN 0.83, we found a serious blocker for continuing the development: Even with the workaround for headless tasks we cannot get any of our tasks running. In this bug report, we focus on the Live TV integration, but this also extends to any other feature integration which needs a background task or service.

We know the issue is already acknowledged, but the last update on that matter is 2 month ago, and it becomes a serious blocker for us.

Best,
Sebastian

:backhand_index_pointing_right: Bug Description

1. Summary

On RN 0.83 (Vega SDK 0.24), the EPG Sync / OnInstallOrUpdate headless task crashes with Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeEpgSyncTaskScheduler' could not be found. As a result, the EPG Sync Task is never scheduled and no channel lineup is ingested, so Live TV integration does not work at all.

The issue reproduces with Amazon’s own Vega Video Sample App (GitHub - AmazonAppDev/vega-video-sample: This sample app shows you how to implement a W3C media player and the core multimedia functionality, such as interactive screens, a video player, search, and focus management. · GitHub without any code changes. It reproduces both with and without the "useSystemJsBundlesForHeadlessJs": false workaround from the 0.24 release notes.

Bug Severity

  • Blocks current development

2. Steps to Reproduce

  1. Clone GitHub - AmazonAppDev/vega-video-sample: This sample app shows you how to implement a W3C media player and the core multimedia functionality, such as interactive screens, a video player, search, and focus management. · GitHub
  2. npm install
  3. npx react-native build-vega --build-type Release --target armv7
  4. On the device: loggingctl config --set-rate all 60000 and loggingctl config --set-level all info
  5. Start vega exec vda shell "loggingctl log -f" > device_logs.txt.
  6. vega device install-app -p build/armv7-release/keplervideoapp_armv7.vpkg
  7. The system launches com.amazondeveloper.keplervideoapp.onInstallOrUpdateTask ([[tasks.work]] mode = "install"), which calls EpgSyncTaskScheduler.scheduleTask('com.amazondeveloper.keplervideoapp.epgSyncTask', 1440).
  8. Repeat steps 3–7 after adding "useSystemJsBundlesForHeadlessJs": false to the kepler section of package.json, with all build output and Metro caches deleted and --reset-cache.

Triggering call: EpgSyncTaskScheduler.scheduleTask() from @amazon-devices/kepler-epg-sync-scheduler. The crash happens when the package’s NativeEpgSyncTaskScheduler turbomodule is resolved via TurboModuleRegistry.getEnforcing('NativeEpgSyncTaskScheduler').

3. Observed Behavior

  • The install task is launched 4 times after install, and each process crashes with SIGABRT (Process 'com.amazondeveloper.keplervideoapp#anon_3' ... crashed with signal 6).
  • Crash reason (CrashLang: JavaScript):
    Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeEpgSyncTaskScheduler' could not be found. Verify that a module by this name is registered in the native binary.

4. Expected Behavior

The install task calls EpgSyncTaskScheduler.scheduleTask() successfully, ktf.tm.nests: Successfully scheduled EPG Sync Task is logged

Tried without success:

  • "useSystemJsBundlesForHeadlessJs": false, with a clean build
  • runtime-module react_native_kepler_4 vs react_native_kepler_headless_4 for the tasks
  • separate vs shared process group
  • explicit [[needs.module]] for kepler_epg_sync_scheduler_1@IKeplerEpgSyncScheduler_2, kepler_epg_provider_1@IKeplerEpgProvider_9 and kepler_channel_1@IKeplerChannel_1
  • Vega SDK 0.24.9914 and 0.24.12112

No workaround found.

5. Logs or crash report

Attached:

  • sample-no-flag.acr: crash report, sample app as published
  • sample-with-flag.acr: crash report, sample app with useSystemJsBundlesForHeadlessJs: false
  • device-log-sample-no-flag.txt / device-log-sample-with-flag.txt: full loggingctl log -f captures, started before install (rate limit 60000, level info)
  • device-etc-autolink-metadata.json: /etc/autolink/autolink-metadata.json from the device

6. Environment

SDK Version: Active SDK Version 0.24.12112, Vega CLI Version 1.3.4 (also reproduced with SDK 0.24.9914)
React Native Version: RN 0.83 (@amazon-devices/react-native-kepler 4.0.1+rn0.83.0, react-native 0.83.0)
Relevant packages (sample and our app, identical): @amazon-devices/kepler-epg-sync-scheduler 1.2.140, @amazon-devices/kepler-epg-provider 1.9.124, @amazon-devices/kepler-channel 1.1.110, @amazon-devices/headless-task-manager 1.2.8, @amazon-devices/kepler-cli-platform 0.22.14
Device: Fire TV Stick, model AFTCA002 (developer mode), armv7
App State: Background (headless task launched by the system after install)

OS Information (cat /etc/os-release):

NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="2"
OS_MINOR_VERSION="0"
RELEASE_ID="26"
OS_VERSION="2.0"
BRANCH_CODE="TV Ship"
BUILD_DESC="OS 2.0 (TV Ship/515)"
BUILD_FINGERPRINT="4.0.512374.0(3072cab629675a74)/515N:user/release-keys"
BUILD_VARIANT="user"
BUILD_TAGS="release-keys"
BUILD_DATE="Fri Oct 02 22:31:28 UTC 2026"
BUILD_TIMESTAMP="1790980288"
VERSION_NUMBER="2602000051520"

7. Example Code Snippet

Unmodified sample code, src/livetv/task/OnInstallOrUpdateTask.ts:

import { EpgSyncTaskScheduler } from '@amazon-devices/kepler-epg-sync-scheduler';

const DAY_HOURS_IN_MINUTES = 60 * 24;
const SYNC_TASK_COMPONENT_ID = 'com.amazondeveloper.keplervideoapp.epgSyncTask';

const doTask = async (): Promise<void> => {
  console.info('ktf:EpgSync - Scheduling EPG Sync task');
  await EpgSyncTaskScheduler.scheduleTask(SYNC_TASK_COMPONENT_ID, DAY_HOURS_IN_MINUTES);
};

export default doTask;

task.js:

HeadlessEntryPointRegistry.registerHeadlessEntryPoint(
  'com.amazondeveloper.keplervideoapp.onInstallOrUpdateTask::doTask',
  () => doOnInstallOrUpdateTask,
);

manifest.toml (excerpt):

[[components.task]]
id = "com.amazondeveloper.keplervideoapp.onInstallOrUpdateTask"
runtime-module = "/com.amazon.kepler.runtime.react_native_kepler_4@IReactNativeKepler_0"

[[processes.group]]
component-ids = ["com.amazondeveloper.keplervideoapp.onInstallOrUpdateTask"]

[[needs.privilege]]
id = "com.amazon.kepler.tv.privilege.data_provider"

[[tasks.work]]
component-id = "com.amazondeveloper.keplervideoapp.onInstallOrUpdateTask"
mode = "install"

Hi @Sebastian_Mader,

Thank you for the detailed bug report on the Live TV / EPG Sync headless task issue on RN 0.83.

Could you please re-share all of the items listed under “5. Logs or crash report” (the two ACRs, both device-log captures, and the autolink metadata JSON)? They didn’t come through on our end, and we’d like to review them.

A few additional things that would help us narrow this down:

  1. Debug vs release: Does the EPG onInstallOrUpdate task launch in a debug build, or does it crash in both debug and release?
  2. Bundle presence: After building, unzip the .vpkg and confirm whether task.hermes.bundle is present.
  3. Bundle contents: Run npx react-native-bundle-visualizer --entry-file task.js (or the Headless JS Bundle Validator) and let us know if any unsupported @amazon-devices/react-native-kepler UI modules are being pulled in.

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

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya

Hello @amen ,

thanks for the quick response. I have attached the logs now, forgot about them yesterday.
device-etc-autolink-metadata.json (92.3 KB)
device-log-sample-no-flag.txt (2.0 MB)
device-log-sample-with-flag.txt (2.3 MB)
sample-no-flag.acr (280.2 KB)
sample-with-flag.acr (275.0 KB)

Regarding the other questions:

  1. I retested with both debug and release builds. It is reproducible with both build types. I tested the built-in bundle on a debug build, as well as a bundle provided via Metro.
    sample-debug-metro.acr (275.9 KB)
    sample-debug-packaged.acr (268.7 KB)
  2. task.hermes.bundle is present
  3. We ran the Headless JS Bundle Validator 1.0.1 and react-native-bundle-visualizer on the task.bundle and service.bundle of both the unmodified Vega Video Sample App and our app. Neither pulls in @amazon-devices/react-native-kepler/index.js or any UI modules. In both apps the only finding is node_modules/react/index.js and react/jsx-runtime.js. They come through @amazon-devices/headless-task-manager → react-native-kepler/Libraries/Core/polyfillPromise.js → ExceptionsManager.js → LogBox/LogBox.js, so they are inside the SDK, not our code.

Hope that helps,
Sebastian