Android: opening a session crashes the app
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Kotlin
- Star
- 146
- Fork
- 35
- Merge trung bình
- 7 giờ 41 phút
- Pull request đã merge (30 ngày)
- 221
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anomalyco/opencode-android
-
F-droid releaseĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
anomalyco/opencode-android#345 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Crash: IllegalStateException in AppContext.getLiveValueCó thể đã có người làm @Tarquinen đã nhận 1 ngày trước. Đang mởcrash crash-triaged
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 65/100
anomalyco/opencode-android#343 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
crash crash-needs-human crash-triaged
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
anomalyco/opencode-android#341 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
crash crash-needs-human crash-triaged
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
anomalyco/opencode-android#340 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponseCó thể đã có người làm @Tarquinen đã nhận 3 ngày trước. Đang mởcrash crash-triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
anomalyco/opencode-android#320 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode-android
Issue tương tự
-
feature request needs decision
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
tswistak/Battery-Monitor#207 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
IzzyOnDroid inclusionĐang mởF-Droid FOSS question
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
d4rken-org/butler#365 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
panel-assistant/android#224 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày