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
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
- 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
npm installnpx react-native build-vega --build-type Release --target armv7- On the device:
loggingctl config --set-rate all 60000andloggingctl config --set-level all info - Start
vega exec vda shell "loggingctl log -f" > device_logs.txt. vega device install-app -p build/armv7-release/keplervideoapp_armv7.vpkg- The system launches
com.amazondeveloper.keplervideoapp.onInstallOrUpdateTask([[tasks.work]] mode = "install"), which callsEpgSyncTaskScheduler.scheduleTask('com.amazondeveloper.keplervideoapp.epgSyncTask', 1440). - Repeat steps 3–7 after adding
"useSystemJsBundlesForHeadlessJs": falseto thekeplersection ofpackage.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 buildruntime-modulereact_native_kepler_4vsreact_native_kepler_headless_4for the tasks- separate vs shared process group
- explicit
[[needs.module]]forkepler_epg_sync_scheduler_1@IKeplerEpgSyncScheduler_2,kepler_epg_provider_1@IKeplerEpgProvider_9andkepler_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 publishedsample-with-flag.acr: crash report, sample app withuseSystemJsBundlesForHeadlessJs: falsedevice-log-sample-no-flag.txt/device-log-sample-with-flag.txt: fullloggingctl log -fcaptures, started before install (rate limit 60000, level info)device-etc-autolink-metadata.json:/etc/autolink/autolink-metadata.jsonfrom 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"