android-branch-deep-linking-attribution icon indicating copy to clipboard operation
android-branch-deep-linking-attribution copied to clipboard

OutOfMemoryError in awaitTimedBranchPostTask

Open dsvoronin opened this issue 1 year ago • 0 comments

Describe the bug

Hello, I'm seeing OOM's from Branch sdk

Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 3079136 free bytes and 3006KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.addWaiter(AbstractQueuedSynchronizer.java:651)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1060)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1369)
       at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278)
       at io.branch.referral.Branch.awaitTimedBranchPostTask(Branch.java:6)
       at io.branch.referral.Branch$1.run(Branch.java:11)
       at java.lang.Thread.run(Thread.java:1012)

Do you have any idea

Steps to reproduce

Can't reproduce it. Only Crashlytics data

Expected behavior

Not failing, i guess

SDK Version

5.1.3

Make and Model

A lot of different devices, seems like not device-specific

OS

75%-12 25%-13

Additional Information/Context

No response

dsvoronin avatar Feb 27 '23 19:02 dsvoronin