[Kepler SDK 0.23.8128] com.amazon.map.service crash-loops (ANR within <1ms of launch), freezing app JS thread — regression of 0.21 fix?

:backhand_index_pointing_right: Bug Description

1. Summary

com.amazon.map.service (component com.amazon.map.async.service.main) crashes in an infinite loop on Vega Virtual Device (VVD) — the Lifecycle Manager kills each newly-launched instance with reason AppNotResponding under 1 millisecond after launch, then immediately relaunches it, which then gets killed again, forever. This appears to starve the app’s JS thread (React Native / Hermes) of CPU, causing the app to freeze entirely (React stops committing UI updates) with no error surfaced to the app.

App Name: [App Name]
App Link on Amazon Appstore: N/A (app not yet published; found during in-development testing on VVD)

Bug Severity:

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation
  • Other

2. Steps to Reproduce

  1. Build a React Native app with Kepler SDK 0.23.8128 and install it on a Vega Virtual Device.
  2. Launch the app normally (no special component or method call triggers this — it starts immediately on app launch).
  3. Start streaming device logs: vega device start-log-stream.
  4. Observe com.amazon.map.service / com.amazon.map.async.service.main crash-relaunch-crash continuously in the log stream from the moment the app launches.
  5. While this loop is running, use the app normally (e.g. play a video) and observe the UI/JS thread eventually freezing.

3. Observed Behavior

Immediately after app launch, com.amazon.map.async.service.main is launched, then force-terminated by the Lifecycle Manager for AppNotResponding within under 1 millisecond:

07:41:56.656492  lcm-server:[Lcm.cpp:5104] appInst[514](com.amazon.map.async.service.main): Launched in pid 40962
07:41:56.657327  lcm-server:[Lcm.cpp:6616] Forcefully terminating process 40962 with reason AppNotResponding
07:41:56.663097  acr_core_dump: Process 'com.amazon.map.service:map_service_library' (PID=40962) crashed with signal 3
07:41:56.663279  acr_core_dump: Hit crash throttle, crash report skipped for process com.amazon.map.service (PID=40962). Please wait 60 seconds before observing new acrs of the same fingerprint.

This cycle repeats with a new PID every ~200-500ms, continuously, for as long as the app runs — thousands of occurrences were recorded in a single ~5 minute log capture.

Correlated with this, the app’s own React Native rendering appears to freeze entirely. MountingManager::SurfaceTelemetryLogger (emitted periodically by the RN renderer) reports the exact same stats repeatedly for 2+ minutes straight (e.g. an unchanging mutations counter), meaning React stopped committing any UI updates at all during this period. During this same window, video playback in the app also gets stuck (buffered position stops advancing entirely, no further playback events fire).

4. Expected Behavior

com.amazon.map.service should launch and run normally without being immediately flagged as unresponsive and killed. No real process can become “unresponsive” within under 1ms of being spawned, so this looks like a false-positive ANR detection / resource coordination bug in the Lifecycle Manager, not a genuine hang in the map service itself.

4.a Possible Root Cause & Temporary Workaround

Possible root cause: This looks like it may be a regression of a previously-fixed defect. The Vega SDK 0.21 release notes describe fixing a very similar-sounding issue:

Fixed the music playback issues by resolving a resource management conflict. Previously, map service was incorrectly terminated by LCM. Improved coordination between Resource Manager and Lifecycle Manager to prevent premature service termination.

This is being seen on SDK 0.23.8128, which is newer than 0.21 — so either this is a regression of that fix, or an unresolved variant of the same underlying Resource Manager / Lifecycle Manager coordination issue.

Workaround: Per the documented VVD troubleshooting guide (vega/0.23/kvd-issues.html, “The VVD service crashes, causing your app to freeze and become unresponsive”), running:

vega virtual-device stop
vega virtual-device start
vega device launch-app <app>

temporarily resolves it, but the crash loop recurs after continued use.

5. Logs or crash report

App/Device Logs: captured via vega device start-log-stream; excerpts included above. Full log file available on request.

Crash Logs / Crash Report: acr_core_dump entries are being throttled (“Hit crash throttle, crash report skipped”) for nearly all occurrences, so a full ACR was only generated for the very first crash in the sequence. Can pull additional detail via vega device copy-logs if needed.

6. Environment

SDK Version:

$ vega --version
Active SDK Version: 0.23.8128
Vega CLI Version: 1.2.18

App State: Foreground

OS Information (cat /etc/os-release via vega device run-cmd --command 'cat /etc/os-release'):

NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="1"
OS_MINOR_VERSION="1"
RELEASE_ID="19"
OS_VERSION="1.1"
BRANCH_CODE="TV Ship"
BUILD_VARIANT="user"
BUILD_TAGS="dev-keys"
BUILD_DATE="Thu May 28 17:38:10 UTC 2026"

7. Example Code Snippet / Screenshots / Screengrabs

N/A — this is not triggered by any specific component or API call in the app; it is a platform system service crash loop present from app launch onward, independent of the app’s own code.

:backhand_index_pointing_right: Playback Issues

This is not a player-SDK-specific bug (it is a platform/OS-level service crash loop), but since it manifests as stalled video playback, for context:

Player SDK: HLS-based video player using standard IMA ad integration
Audio Codecs: AAC
Video Codecs: H.264
Manifest Types: HLS (m3u8)

Q: If applicable, please provide your media/content url — N/A (internal test content, not publicly accessible)
Q: Are there any special headers required to reproduce the issue you are facing? — N/A

:backhand_index_pointing_right: Additional Context

This crash loop was discovered while investigating an intermittent “video does not resume after ads” bug in the app. That separate issue was traced to and fixed in the app’s own ad-integration code, but this com.amazon.map.service crash loop is a distinct, deeper issue that persists independent of ad playback and appears platform-level. It’s possible this crash loop is also a contributing factor to other intermittent instability/freezes observed on this VVD instance throughout development.

Hi @r-ando,

Thank you for the detailed bug report on the TextInput keyboard focus issue.

We acknowledge the specific symptoms you’ve described:

  • Infinite crash-loop: com.amazon.map.async.service.main being force-terminated by the Lifecycle Manager with AppNotResponding within <1ms of launch, cycling with new PIDs every ~200-500ms.
  • JS thread starvation: React Native/Hermes rendering freezing entirely, as evidenced by the unchanging MountingManager::SurfaceTelemetryLogger mutation counters over 2+ minutes.
  • Potential regression: Your observation that this may be a regression of the Resource Manager/Lifecycle Manager coordination fix shipped in SDK 0.21 is noted and will be a key area of our investigation.

Our team is investigating this issue. The reproduction steps, log excerpts, and environment details you provided are very helpful for diagnosis. We will provide an update as soon as we have more information.

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya

Hi @r-ando,

Could you help us reproduce this issue a few more times and share the full device logs?

Please include the approximate timestamp when it occurs. This will help us move forward with the investigating.

The restart workaround remains valid in the meantime.

Thanks,
Aishwarya

Hi Aishwarya,

Thanks for following up. I reproduced the issue three more times today and captured full device logs for each run. All timestamps below are UTC, 2026-08-04.

Environment

  • Vega Virtual Device, Kepler SDK 0.23.8358 (also reproduces on this newer build — original report was 0.23.8128)
  • Vega CLI 1.2.18, macOS (Apple Silicon)

Reproduction procedure (identical for all 3 runs)

  1. vega virtual-device stop → vega virtual-device start (clean boot)
  2. vega device start-log-stream to capture the full device log
  3. Launch our app. Note: the crash loop starts before the app is launched. (The app id is masked as com.example.maskedapp in the attached logs.)

Results — the loop starts 2–3 seconds after every clean boot:

Run VVD boot (UTC) First crash Last crash (capture end) Forceful terminations captured
1 22:41 22:41:22.454 22:46:04.314 106
2 22:46:34 22:46:37.284 22:49:38.092 57
3 22:50:14 22:50:16.132 22:53:29.310 58

Signature (repeats every ~200ms–2s with a new PID; launch → kill latency is ~1.0–1.5 ms):

Aug 04 22:46:03.733951 lcm_service[1011]: lcm-server:[Lcm.cpp:5104] appInst[135](com.amazon.map.async.service.main): Launched in pid 11135
Aug 04 22:46:03.735531 lcm_service[1011]: lcm-server:[Lcm.cpp:6616] Forcefully terminating process 11135 with reason AppNotResponding
Aug 04 22:46:03.7xx    acr_core_dump: Process 'com.amazon.map.service:map_service_library' (PID=11135) crashed with signal 3

Additional observations

  • The restart workaround restores shell/device connectivity, but the map.service crash loop itself resumes on every boot.
  • App impact is visible in the same logs: MountingManager::SurfaceTelemetryLogger reports identical stats (mutations=34) for 15+ seconds (React commits fully stalled), and LCM repeats Trigger event FOREGROUND in state VISIBLE. Completed: false for our app (e.g. run 2, 22:49:24–22:49:39).
  • No ACRs were persisted because of crash throttling (Hit crash throttle, crash report skipped appears throughout).

Attached: full device logs for all three runs plus system/var_log .

Please let me know if you need anything else (e.g. a longer capture, or logs from a freshly created VVD instance).

Thanks!

cycle2_devicelog_20260804_2246utc.log (2.8 MB)

cycle3_devicelog_20260804_2250utc.log (2.5 MB)

cycle1_devicelog_20260804_2241utc.log (4.4 MB)

system-var_log.log (11.8 MB)

Hi @r-ando,

Could you please attach 2–3 ACR files from your device? This will help us investigate the issue further.

They contain the loaded-library list and a backtrace, which will show directly whether map_service_library was even loaded.

Thanks,
Aishwarya

Hi @r-ando,

Just following up on my previous request regarding the ACR files. These are important for us to investigate the com.amazon.map.service crash-loop issue further - specifically, the loaded-library list and backtrace will help us determine whether map_service_library was even loaded at the time of the crash.

Thanks for your patience and continued help with this!

Thanks,
Aishwarya

Hi Aishwarya,

I tried hard to get you the ACR files, and I want to be transparent about where I’m stuck: the ACRs are being generated, but I can’t extract them from the VVD with the tooling available to me.

What I confirmed by reproducing again on SDK 0.23.8358:

  • The crash loop is generating com.amazon.map.service ACRs. Their paths show up directly in the device log, e.g.:
    • /var/lib/data/acr/tombstones/crash_1789106913_30001_5000_5920_3_com_amazon_map_service.acr
    • /var/lib/data/acr/tombstones/crash_1789106913_30001_5000_5944_3_com_amazon_map_service.acr
    • /var/lib/data/acr/tombstones/crash_1789106915_30001_5000_6090_3_com_amazon_map_service.acr
    • (also written under /var/lib/data/acr/tmp/)
  • The loop is unchanged from before: lcm-server force-terminates each new PID with AppNotResponding, new PIDs spawn every few hundred ms, and the failed attempts counter climbs continuously (I watched it pass 8).

The problem is access. On the VVD, everything I have runs as the app user (uid 5000), and /var/lib/data/acr/ is not readable to it:

  • vega device copy-logs --artifact SYSTEM_TOMBSTONE/acr --directory <dir> completes but copies 0 files.
  • vega device copy-from --source /var/lib/data/acr/tombstones ... fails with failed to stat remote object '/var/lib/data/acr/tombstones': Permission denied (same for /var/lib/data/acr and .../tmp).
  • The developer shell can’t traverse the directory at all. copy-from works fine on paths I own (e.g. /tmp), so the tool is fine — it’s a permissions wall on the ACR store specifically.

So my questions:

  1. Is there a supported way to pull ACRs off a VVD — a root/elevated shell, an adb-root equivalent, or a different copy-logs artifact/provider than SYSTEM_TOMBSTONE/acr? If copy-logs is expected to return these, it isn’t on the VVD for me.
  2. If ACR extraction is effectively physical-device-only: this crash loop is VVD-specific and does not reproduce on a physical Fire TV, so a real device won’t produce these map_service ACRs. In that case, is there another artifact you can work from?

For what it’s worth, the loop also still reproduces on the current 0.24.9914 VVD, so the regression isn’t limited to 0.23. Full device logs are in my earlier reply; happy to capture more, or to run any specific extraction command you can suggest.

Thanks,

Hi @r-ando,

Thanks for your continued patience on this. One thing we’d like you to check in the meantime: each Vega SDK ships with its own matching Virtual Device image, and vega --version reports the SDK/CLI version rather than the VVD image actually running - so it’s possible to be on an older VVD image even after updating. Could you make sure you’re on the latest SDK with its bundled VVD image (and that no older VVD is being picked up), then stop and start the VVD fresh before retesting? Ref: Notice: Virtual Device tests must be run on the latest SDK

If it still reproduces after that, let us know and we’ll follow up with the next steps.

Thanks!
Aishwarya

Hi Aishwarya,

Thanks for the pointer. I retested on the latest SDK on 2026-10-16 and confirmed which VVD image was actually running, not just the version vega --version reports.

Image check

  • Active SDK: 0.24.12112 (still marked LATEST in vega sdk list-remote), Vega CLI 1.2.18
  • Running image, checked against the qemu path in ps (main/0.24.12112/vvd/...), kvd_version in image_files/kvd-manifest.json, and /etc/os-release on the device:
    • 0.24.12112 → kvd 1.0.81444.0, OS 1.2 TV Ship, build 102282480 (built 2026-09-18)
    • For comparison, 0.24.9914 (the image where I reproduced it on 9/11) → kvd 1.0.67506.0, build 101520710 (built 2026-07-15)

Results on 0.24.12112

  • 5 clean boots, each one vega virtual-device stop → start → launch our app, then 3 minutes of watching the full log stream
  • No crash loop on any boot: com.amazon.map.async.service.main stayed on a single PID, with zero Forcefully terminating ... AppNotResponding, zero failed attempts, and zero map_service crashes

Caveat

As a control, I also ran the older 0.24.9914 image the same day. It didn’t reproduce on 2 clean boots or in a later 45-second check, even though it reproduced reliably on 9/11. So I can’t say for sure that 12112 fixed it. The issue may be intermittent or depend on the host environment.

Next steps

I’ll stay on 0.24.12112 for daily development and will post fresh logs with timestamps here if the loop comes back. From our side, it’s fine to set this thread aside until then.

Thanks,