Skip to content

OOM during file sync #16193

@cyroxx

Description

@cyroxx

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Having a couple of AutoUpload folders, with a lot of files to sync.
There is also a large number of conflicts during the sync.

Expected behaviour

The files should be uploaded after some time, except for the conflicts.

Actual behaviour

Cause of error

Exception in thread "Thread-96" java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 1475504 free bytes and 1440KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
    at java.lang.String.fastSubstring(Native Method)
    at java.lang.String.substring(String.java:2959)
    at com.android.org.kxml2.io.KXmlParser.adjustNsp(KXmlParser.java:278)
    at com.android.org.kxml2.io.KXmlParser.parseStartTag(KXmlParser.java:1153)
    at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:372)
    at com.android.org.kxml2.io.KXmlParser.nextToken(KXmlParser.java:317)
    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:329)
    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:128)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
    at org.apache.jackrabbit.webdav.xml.DomUtil.parseDocument(DomUtil.java:104)
    at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getResponseBodyAsDocument(DavMethodBase.java:113)
    at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.getRootElement(DavMethodBase.java:137)
    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:192)
    at com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation.run(ReadFolderRemoteOperation.java:62)
    at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
    at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:462)
    at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:274)
    at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
    at java.lang.Thread.run(Thread.java:1563)

App information

  • ID: com.nextcloud.client
  • Version: 30340190
  • Build flavor: generic

Device information

  • Brand: Fairphone
  • Device: FP5
  • Model: FP5
  • Id: AQ3A.240912.001
  • Product: FP5

Firmware

  • SDK: 35
  • Release: 15
  • Incremental: VT2F

Android version

15

Device brand and model

Fairphone 5

Stock or custom OS?

Stock

Nextcloud android app version

3.34.1

Nextcloud server version

31.0.10

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions