Android App Crash due to OutOfMemoryError

Hi,

on my Android Phone the Android App Nextcloud crash. Only Open then crash:

Cause of error

Exception in thread "Thread-7" java.lang.OutOfMemoryError: Failed to allocate a 56 byte allocation with 364264 free bytes and 355KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
    at java.util.Arrays.copyOf(Arrays.java:3645)
    at java.util.Arrays.copyOf(Arrays.java:3614)
    at java.util.ArrayList.grow(ArrayList.java:275)
    at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:249)
    at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:241)
    at java.util.ArrayList.add(ArrayList.java:467)
    at org.apache.harmony.xml.dom.NodeListImpl.add(NodeListImpl.java:47)
    at org.apache.harmony.xml.dom.InnerNodeImpl.getChildNodes(InnerNodeImpl.java:59)
    at org.apache.jackrabbit.webdav.xml.DomUtil.hasContent(DomUtil.java:377)
    at org.apache.jackrabbit.webdav.property.DefaultDavProperty.createFromXml(DefaultDavProperty.java:127)
    at org.apache.jackrabbit.webdav.MultiStatusResponse.createFromXml(MultiStatusResponse.java:463)
    at org.apache.jackrabbit.webdav.MultiStatus.createFromXml(MultiStatus.java:185)
    at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.processResponseBody(DavMethodBase.java:282)
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1749)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at com.owncloud.android.lib.common.OwnCloudClient.executeMethod(OwnCloudClient.java:195)
    at com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation.run(ReadFolderRemoteOperation.java:80)
    at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:205)
    at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:405)
    at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:239)
    at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:399)
    at java.lang.Thread.run(Thread.java:1012)

App information

  • ID: com.nextcloud.client
  • Version: 30240290
  • Build flavor: gplay

Device information

  • Brand: OnePlus
  • Device: OP515BL1
  • Model: DN2103
  • Id: SP1A.210812.016
  • Product: DN2103EEA

Firmware

  • SDK: 31
  • Release: 12
  • Incremental: R.GDPR.f1ba30-5fd8

Seems there are a series of issues on the github repo related to OutOfMemoryError

Hi,

and what is the solution now? Reports are from October 2022. I can trace a thread to a text document, what do I do with it. The Github branches are all quite confusing