nextcloud / nextcloud/android

`OutOfMemoryError: Failed to allocate` in `GetStatusRemoteOperation`

未关闭
#13,402 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug performance: OOM :brain: stable-3.30
主要语言
Kotlin
星标
5.6k
派生
2k
平均合并
2 天 18 小时
30 天内合并 PR
92

描述

### 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`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。