Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main thread can be blocked sometimes #1189

Open
VolodaUa opened this issue Apr 18, 2024 · 0 comments
Open

Main thread can be blocked sometimes #1189

VolodaUa opened this issue Apr 18, 2024 · 0 comments

Comments

@VolodaUa
Copy link

Expected behavior

The main thread should not be blocked.

Actual behavior

Sometimes main thread is blocked on region changing.

Steps to reproduce this behavior

It happens randomly and I can't provide any steps. I am near two iBeacons.

Stack trace

"main@33652" prio=5 tid=0x2 nid=NA waiting for monitor entry
java.lang.Thread.State: BLOCKED
blocks pool-29-thread-1@33728
waiting for pool-29-thread-1@33728 to release lock on <0x83c2> (a org.altbeacon.beacon.service.MonitoringStatus)
at org.altbeacon.beacon.service.MonitoringStatus.regions(MonitoringStatus.java:88)
at org.altbeacon.beacon.service.ScanState.restore(ScanState.java:181)
- locked <0x6bac> (a java.lang.Class)
at org.altbeacon.beacon.service.ScanJobScheduler.scheduleAfterBackgroundWakeup(ScanJobScheduler.java:133)
at org.altbeacon.beacon.startup.StartupBroadcastReceiver.onReceive(StartupBroadcastReceiver.java:62)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4490)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(ActivityThread.java:-1)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8248)
at java.lang.reflect.Method.invoke(Method.java:-1)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Mobile device model and OS version

Google Pixel 7 Pro, Android 14

Android Beacon Library version

Android Beacon Library 2.20.4
Java 17

IMPORTANT: This forum is reserved for feature requests or reproducible bugs with the library itself. If you need help with using the library with your project, please open a new question on StackOverflow.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant