Extensions crash the app at launch after sleep on Fire TV Cube (3rd Gen)
What happened?
On a Fire TV Cube (Fire OS 7 / Android 9), Zangetsu periodically gets into a state where every launch plays the splash and then drops straight back to the Fire TV home screen, without ever showing the UI. It usually starts after the device has been asleep. Force close and clear cache don't help; only clear data (and setting the app up again) fixes it, and the problem comes back later.
A tombstone from a broken launch shows ART deliberately aborting the process while constructing an Aniyomi extension source. Android's background dexopt job recompiled the extension APK (a secondary dex) and inlined a Kotlin stdlib method from the extension's own copy. At runtime, DexClassLoader resolves that class parent-first to Zangetsu's copy in base.apk, and Android 9's ART aborts on the mismatch.
Recompiling only the app's secondary dex with a non-inlining filter fixes it without losing data (confirmed on device, see Workaround).
NOTE: I had help using Claude Opus to diagnose and track down the source of this issue.
App version
2.3.6
Device type
Android TV / TV box / stick
Device and Android version
Fire TV Cube (3rd Gen) on Fire OS 7 (Android 9)
Which APK did you install?
TV
Where is the problem?
Sources / extensions
Which source?
No response
Did you try another source?
- [x] Yes — the same thing happens with a different source
- [ ] No / not applicable
Logs
Screenshots or anything else
Below are not logs generated from the UI (since it could not load at the time of the problem), but from some adb debugging Claude had me run:
Crash log (broken launch, 2026-11-22)
F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 3767 (DefaultDispatch), pid 3719 (spyou.watch_app)
F DEBUG : Build fingerprint: 'Amazon/gazelle/gazelle:9/PS7718.5826N/0036609376768:user/amz-p,release-keys'
F DEBUG : ABI: 'arm'
F DEBUG : pid: 3719, tid: 3767, oom: 0, name: DefaultDispatch >>> com.spyou.watch_app <<<
F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
F DEBUG : Abort message: 'entrypoint_utils-inl.h:94] Inlined method resolution crossed dex file boundary: from void extensions.utils.Source.<init>() in /data/user/0/com.spyou.watch_app/files/aniyomi/eu.kanade.tachiyomi.animeextension.en.animesuge.apk/0xdc5e2520 to kotlin.Lazy kotlin.LazyKt__LazyJVMKt.lazy(kotlin.jvm.functions.Function0) in /data/app/com.spyou.watch_app-qHNa_MaOwrVEtwrZMTFQNg==/base.apk!classes8.dex/0xe4617730. This must be due to duplicate classes or playing wrongly with class loaders'
F DEBUG : backtrace:
F DEBUG : #00 pc 0001cd1e /system/lib/libc.so (abort+58)
F DEBUG : #01 pc 0034fc9f /system/lib/libart.so (art::Runtime::Abort(char const*)+910)
F DEBUG : #02 pc 000071b3 /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+494)
F DEBUG : #03 pc 00365ae5 /system/lib/libart.so (art::GetResolvedMethod(art::ArtMethod*, art::MethodInfo const&, art::InlineInfo const&, art::InlineInfoEncoding const&, unsigned char)+2168)
F DEBUG : ...
F DEBUG : #17 pc 003d00cb /system/lib/libart.so (artResolveStringFromCode+22)
F DEBUG : #18 pc 0040fe8f /system/lib/libart.so (art_quick_resolve_string+30)
F DEBUG : #19 pc 00009551 /data/data/com.spyou.watch_app/files/aniyomi/oat/arm/eu.kanade.tachiyomi.animeextension.en.animesuge.odex (offset 0x15000)
Managed frames (from the ART abort dump):
extensions.utils.Source.<init>+912 animesuge.odex
eu.kanade.tachiyomi.multisrc.anikototheme.AnikotoTheme.<init>+36 animesuge.odex
eu.kanade.tachiyomi.animeextension.en.animesuge.AnimeSuge.<init>+34 animesuge.odex
java.lang.reflect.Constructor.newInstance boot.oat
com.spyou.watch_app.aniyomi.AniyomiExtensionLoader.load base.vdex
com.spyou.watch_app.aniyomi.AniyomiBridge$attach$1$2.invokeSuspend base.vdex (the "loadInstalled" boot step)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run base.vdex
...
I ActivityManager: Process com.spyou.watch_app (pid 3719) has died: fore TOP
NOTE: I'm also attaching the full summary that I had Claude write up for me.
Thanks for the deep dive on this, super helpful. Pushed a fix: on boot we now detect if the last extension load died partway through and wipe the extensions' compiled dex cache before retrying, so it recompiles clean instead of crash-looping until you clear data.
1451c3ad
Would love it if you could confirm on your Cube once it hits a build, since I can't repro the idle/dexopt timing locally.
Awesome, that was quick! I'll keep an eye out for the next build release and let you know how it goes. It will take some time to confirm, though, since I didn't find any way to trigger the issue on demand via adb. It just happens naturally after the Cube does a sleep cycle at the wrong time. So I might need to observe it for a week or two. If there's no crash, then I'd consider it fixed.
Sounds good, take your time — I'll keep this issue open until you've had a chance to confirm it over that window. No rush on your end. 😄