Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

[Bug]: ANR Card.logImpression #266

@ashraf-patel-hs

Description

@ashraf-patel-hs

Braze Android SDK Version

23.2.1

Steps To Reproduce

Card.logImpression is causing the ANR when performed on the main thread.

Expected Behavior

NO ANRs or documentation on which thread shall we use to perform such operation

Actual Incorrect Behavior

It's causing an ANR

main (waiting):tid=1 systid=3971
at jdk.internal.misc.Unsafe.park(Native method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:211)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:715)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:938)
at java.util.concurrent.locks.ReentrantLock$Sync.lock(ReentrantLock.java:153)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:322)
at bo.app.p.a(SourceFile:10)
at com.appboy.models.cards.Card.logImpression(SourceFile:5)

Verbose Logs

No response

Additional Information

Are we supposed to execure Card.logImpression on the UI thread?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions