android icon indicating copy to clipboard operation
android copied to clipboard

OutOfMemoryError when uploading large amount of files

Open ShareVepari opened this issue 3 years ago • 0 comments
trafficstars

⚠️ Before posting ⚠️

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

Steps to reproduce

Log in to android nextcloud mobile app Automatically upload files Navigate to others apps on mobile Launch nextcloud mobile app

Expected behaviour

Should not crash

Actual behaviour

Cause of error

Exception in thread "pool-3-thread-1" java.lang.OutOfMemoryError: Failed to allocate a 56 byte allocation with 3528048 free bytes and 3445KB 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.greenrobot.eventbus.PendingPost.releasePendingPost(PendingPost.java:54)
    at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:509)
    at org.greenrobot.eventbus.BackgroundPoster.run(BackgroundPoster.java:64)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
    at java.lang.Thread.run(Thread.java:1012)

App information

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

Device information

  • Brand: samsung
  • Device: c2q
  • Model: SM-N986U
  • Id: SP1A.210812.016
  • Product: c2qsqw

Firmware

  • SDK: 31
  • Release: 12
  • Incremental: N986USQS2FVG6

Android version

12

Device brand and model

Samsung note 20 ultra

Stock or custom OS?

Stock

Nextcloud android app version

3.21.0

Nextcloud server version

24.0.4

Using a reverse proxy?

No

Android logs

No response

Server error logs

No response

Additional information

Cause of error

Exception in thread "pool-3-thread-1" java.lang.OutOfMemoryError: Failed to allocate a 56 byte allocation with 3528048 free bytes and 3445KB 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.greenrobot.eventbus.PendingPost.releasePendingPost(PendingPost.java:54)
    at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:509)
    at org.greenrobot.eventbus.BackgroundPoster.run(BackgroundPoster.java:64)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
    at java.lang.Thread.run(Thread.java:1012)

App information

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

Device information

  • Brand: samsung
  • Device: c2q
  • Model: SM-N986U
  • Id: SP1A.210812.016
  • Product: c2qsqw

ShareVepari avatar Aug 20 '22 23:08 ShareVepari