Android: opening a session crashes the app
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- mobile-dev
Direzione di ricerca
The crash happens when opening a non-archived session from Home, so start with the Home transcript cache, prefetch, and unread-anchor code that runs on open, not the message renderer. Reproduce with a session of about 437 messages on an Android device, capture logcat -b crash for the failing open, and check whether the unread anchor points outside the loaded limit=30 window. Done means the session opens from Home without crashing and a regression check covers that path.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Opening one specific session crashes the Android app immediately. The same session opens fine on iOS. Every other session on the same Android install opens fine.
Archiving the session makes it open normally from the Archived page, with the exact same server payload. So the crash is not in the message content; it looks tied to the non-archived open path (Home transcript cache / unread positioning / Catch Up).
Environment
- App: 0.8.4 (Android)
- Device: Lenovo Pad, Android 13 (tablet)
- Server: opencode 2.3.2, V2 contract
- Session: ~437 messages, ~1.2 MB
Steps
- Pair the app with the server.
- Tap the affected session from Home.
- The app closes immediately (no error screen).
Expected
Session opens and shows the latest replies.
Actual
Instant crash from Home. Other sessions open normally. iOS opens the affected session without problems.
Key observation: archiving fixes it
After archiving the session, opening it from the Archived page works normally.
Reverse-proxy logs show the app requested the same endpoint before and after archiving:
- before archive:
GET /api/session/<id>/message?order=desc&limit=30→ 18397 bytes - after archive:
GET /api/session/<id>/message?order=desc&limit=30→ 18397 bytes (identical) - after archive the app also paged older history:
GET /api/session/<id>/message?limit=80&cursor=…→ 73095 bytes, rendered fine
The archived session's newest 30 messages include the two assistant replies with Markdown tables and the 1090-char single-line tool output. They render fine in that path, so the content is not the trigger.
Hypothesis
Non-archived sessions are in Home's prefetch/cache, Catch Up and unread/new-message tracking. Archived sessions are excluded from all of those, so they open with a clean load of limit=30.
This points at the Home transcript cache or the unread-anchor logic during opening (possibly positioning on a message outside the loaded window), not at message rendering.
Ask
If useful, I can bisect further and capture logcat -b crash for the failing open. Happy to provide the full /api/session/<id>/message?order=desc&limit=30 response (sanitized) if you want to reproduce.
- Lingua principale
- Kotlin
- Stelle
- 146
- Fork
- 35
- Merge medio
- 7h 41m
- PR unite (30g)
- 221
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anomalyco/opencode-android
-
F-droid releaseAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
anomalyco/opencode-android#345 ·
I maintainer di solito rispondono entro 1 giorno
-
Crash: IllegalStateException in AppContext.getLiveValueForse già presa @Tarquinen l’ha presa 1 giorno fa. Apertacrash crash-triaged
Difficoltà 3/5 Mezza giornata Idoneità per principianti 65/100
anomalyco/opencode-android#343 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
crash crash-needs-human crash-triaged
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
anomalyco/opencode-android#341 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
crash crash-needs-human crash-triaged
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
anomalyco/opencode-android#340 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponseForse già presa @Tarquinen l’ha presa 3 giorni fa. Apertacrash crash-triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
anomalyco/opencode-android#320 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode-android
Issue simili
-
[Request]: KylleneAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
ScoopInstaller/Extras#19589 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
difficulty: beginner documentation help wanted networking
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
feature request needs decision
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tswistak/Battery-Monitor#207 ·
I maintainer di solito rispondono entro 1 giorno