Android: opening a session crashes the app
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 22/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- mobile-dev
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Kotlin
- Étoiles
- 146
- Forks
- 35
- Merge moyen
- 7 h 41 min
- PR mergées (30 j)
- 221
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de anomalyco/opencode-android
-
F-droid releaseOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
anomalyco/opencode-android#345 ·
Les mainteneurs répondent en général sous 1 jour
-
Crash: IllegalStateException in AppContext.getLiveValuePeut-être pris @Tarquinen l’a pris il y a 1 jour. Ouvertecrash crash-triaged
Difficulté 3/5 Une demi-journée Accessibilité débutants 65/100
anomalyco/opencode-android#343 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
crash crash-needs-human crash-triaged
Difficulté 3/5 1-2 jours Accessibilité débutants 58/100
anomalyco/opencode-android#341 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
crash crash-needs-human crash-triaged
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
anomalyco/opencode-android#340 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponsePeut-être pris @Tarquinen l’a pris il y a 3 jours. Ouvertecrash crash-triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
anomalyco/opencode-android#320 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de anomalyco/opencode-android
Issues similaires
-
feature request needs decision
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
tswistak/Battery-Monitor#207 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
IzzyOnDroid inclusionOuverteF-Droid FOSS question
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
d4rken-org/butler#365 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
panel-assistant/android#224 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour