question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I start ranging for Bluetooth devices using the altbeacon library I get the following crash.

java.lang.RuntimeException: Unable to create service org.altbeacon.beacon.service.BeaconService: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at android.app.ActivityThread.handleCreateService(ActivityThread.java:4524) at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2153) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7850) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

It happens on all Android devices I have tested that are running Android 13. The altbeacon library version is 2.19.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
FabienWitickcommented, Jun 24, 2022

@davidgyoung I think this is the same stack trace. The stack posted by @tonynguyen0523 is the cause of the RuntimeException posted by @DarrenMiddleton. I personally have the exact same stack trace on crashlytics.

0reactions
davidgyoungcommented, Jun 27, 2022

OK, thanks for the confirmation, @FabienWitick. I will merge this in and it will be included in the next non-beta release as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android 13 Apps are Crashing, How to Fix? - GetDroidTips
Go to the device Settings menu > Tap on Apps. · Tap on the problematic app that's crashing on your Android 13. ·...
Read more >
Android 13 update;apps crashing - Samsung Community
1 Solution · Go to device Settings > Tap on Apps > Select All apps. · Look for Android System WebView (there should...
Read more >
How To Fix Android 13 Apps Are Crashing? - KrispiTech
How To Fix Android 13 App Crashing? · Reboot the Device · Check the Internet Connection · Activate the Android System WebView Again...
Read more >
S22 Ultra Android 13 issue's - Google Support
They start to open and then crash immediately advising the app has a bug. I've tried clearing the cache (and system cache) and...
Read more >
Android 13: APKs not from PlayStore now crashes at the ...
What are the apps that are crashing? What does a logcat show when the app crashes? Google introduced restrictions in A13 for side...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found