nextcloud / nextcloud/android

`OutOfMemoryError: Failed to allocate` in `GetStatusRemoteOperation`

Đang mở
#13,402 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug performance: OOM :brain: stable-3.30
Ngôn ngữ chính
Kotlin
Star
5.6k
Fork
2k
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
105

Mô tả

### Cause of error
```java
Exception in thread "Operations thread" java.lang.OutOfMemoryError: Failed to allocate a 206515904 byte allocation with 25165824 free bytes and 152MB until OOM, target footprint 133607288, growth limit 268435456
at java.lang.StringFactory.newStringFromBytes(StringFactory.java:96)
at java.lang.StringFactory.newStringFromBytes(StringFactory.java:75)
at org.apache.commons.httpclient.util.EncodingUtil.getString(EncodingUtil.java:164)
at org.apache.commons.httpclient.util.EncodingUtil.getString(EncodingUtil.java:187)
at org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(HttpMethodBase.java:806)
at com.owncloud.android.lib.resources.status.GetStatusRemoteOperation.tryConnection(GetStatusRemoteOperation.java:94)
at com.owncloud.android.lib.resources.status.GetStatusRemoteOperation.run(GetStatusRemoteOperation.java:187)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
at com.owncloud.android.operations.GetServerInfoOperation.run(GetServerInfoOperation.java:67)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
at com.owncloud.android.services.OperationsService$ServiceHandler.nextOperation(OperationsService.java:437)
at com.owncloud.android.services.OperationsService$ServiceHandler.handleMessage(OperationsService.java:400)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.os.HandlerThread.run(HandlerThread.java:67)

```

### App information
* ID: `com.nextcloud.android.beta`
* Version: `20240807`
* Build flavor: `versionDev`

### Device information
* Brand: `samsung`
* Device: `a12`
* Model: `SM-A125F`
* Id: `SP1A.210812.016`
* Product: `a12nseea`

### Firmware
* SDK: `31`
* Release: `12`
* Incremental: `A125FXXS5CXE3`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start at GetStatusRemoteOperation.java:94, where the stack trace shows the response body is converted to a string, and trace the call from GetServerInfoOperation. Reproduce or inspect the reported response and memory conditions; done means the cause is confirmed and the operation no longer crashes with the reported OutOfMemoryError.

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

Đánh giá

Công nghệ
android, java
Lĩnh vực
api, mobile, networking
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.