`OutOfMemoryError: Failed to allocate` in `GetStatusRemoteOperation`
- Vorherrschende Sprache
- Kotlin
- Sterne
- 5.6k
- Forks
- 2k
- Ø Merge
- 2 T. 20 Std.
- Gemergte PRs (30 T.)
- 105
Beschreibung
### 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`
Beitragsleitfaden
Rechercherichtung
Beginne bei GetStatusRemoteOperation.java:94, wo der Stacktrace zeigt, dass der Response-Body in einen String konvertiert wird, und verfolge den Aufruf von GetServerInfoOperation. Reproduziere die gemeldeten Response- und Speicherbedingungen oder untersuche sie; abgeschlossen ist die Aufgabe, wenn die Ursache bestätigt ist und die Operation nicht mehr mit dem gemeldeten OutOfMemoryError abstürzt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, java
- Bereich
- api, mobile, networking
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100