Skip to content

OutOfMemoryError in awaitTimedBranchPostTask #1047

Open
@dsvoronin

Description

@dsvoronin

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

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