Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponse

Đang mở
#320 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Tarquinen đang làm issue này rồi.

Từ ngày 26/11/2026.

  • #327 của @Tarquinen — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

Start by reading LiveTransport.kt at the reported onResponse location, line 117, and inspect the response body handling around ResponseBody.bytes(). Use the crash stack trace to trace how the response is consumed and look for a way to avoid loading an unbounded body into memory. Confirm the fix with a regression test for oversized responses; pull request #327 is already open against this issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

crash crash-triaged

Google Play reported this crash (Android vitals).

  • Exception: java.lang.OutOfMemoryError
  • Where: ai.opencode.server.live.LiveTransportKt$awaitResponse$2$2.onResponse
  • Last 7 days: 15 reports from about 2 users
  • Version codes: 380–1015
  • Android API levels: 33–36
  • Last seen: 2026-11-27
  • Sample: Oppo CPH2145, Android API 33, version code 380, commit 82079247e
Exception java.lang.OutOfMemoryError
  at okio.Buffer.readByteArray (Buffer.kt:1164)
  at okio.Buffer.readByteArray (Buffer.kt:1159)
  at okio.RealBufferedSource.readByteArray (RealBufferedSource.kt:267)
  at okhttp3.ResponseBody.bytes (ResponseBody.kt:125)
  at ai.opencode.server.live.LiveTransportKt$awaitResponse$2$2.onResponse (LiveTransport.kt:117)
  at okhttp3.internal.connection.RealCall$AsyncCall.run (RealCall.kt:584)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1154)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:652)
  at java.lang.Thread.run (Thread.java:1564)

Play Console (needs access):

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode-android

Tất cả issue của anomalyco/opencode-android

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.