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.

Occasional crash on Pixel 5 Android 13

See original GitHub issue

Integrate with: implementation("io.github.g00fy2.quickie:quickie-bundled:1.5.1")

Crash log:

Fatal Exception: java.lang.IllegalStateException: MlKitContext has not been initialized
       at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.1.0:2)
       at com.google.mlkit.common.sdkinternal.MlKitContext.getInstance(com.google.mlkit:common@@18.5.0:1)
       at com.google.mlkit.vision.barcode.BarcodeScanning.getClient(BarcodeScanning.java:3)
       at io.github.g00fy2.quickie.QRCodeAnalyzer$barcodeScanner$2.invoke(QRCodeAnalyzer.kt:24)
       at io.github.g00fy2.quickie.QRCodeAnalyzer$barcodeScanner$2.invoke(QRCodeAnalyzer.kt:18)
       at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
       at io.github.g00fy2.quickie.QRCodeAnalyzer.getBarcodeScanner(QRCodeAnalyzer.kt:18)
       at io.github.g00fy2.quickie.QRCodeAnalyzer.analyze(QRCodeAnalyzer.kt:42)
       at androidx.camera.core.ImageAnalysis$$ExternalSyntheticLambda2.b(R8$$SyntheticClass:3)
       at androidx.camera.core.ImageAnalysisAbstractAnalyzer.lambda$analyzeImage$0(ImageAnalysisAbstractAnalyzer.java:285)
       at androidx.camera.core.ImageAnalysisAbstractAnalyzer$$InternalSyntheticLambda$8$864b24cc058c102b9ababe9f2eaf5f45916e7a7a0663a2b450741580c02ea23e$0.run(ImageAnalysisAbstractAnalyzer.java:66)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
       at java.lang.Thread.run(Thread.java:1012)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
G00fY2commented, Oct 27, 2022

This is fixed with f164aa9 (which is included in 1.5.2).

1reaction
kyze8439690commented, Oct 27, 2022

Is it possible for quickie to catch this exception and invoke something like ‘failure callback’ instead?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix a Pixel phone that's restarting or crashing - Google Help
Open your phone's Settings app. · Tap Apps and then See all apps. · Tap the app. · Tap Force stop and then...
Read more >
Fix: Games and Apps Crashing or Not Working on Android 13
In most cases, games and app crashing issue is mainly due to random system bugs and can be fixed by simple device restart....
Read more >
Google Pixel devices on Android 13 freezing or unresponsive
Some Google Pixel users are facing an issue where their devices are freezing or become unresponsive after the update to Android 13.
Read more >
Google fixes 9 Android 13 issues on Pixel with October update
Ahead of new Pixel phones, the Android 13 October update is rolling ... Fix for issue occasionally causing device crash when playing audio...
Read more >
Android app crashes since updating to Android 13 - Reddit
This is happening to me on Pixel 5. Just updated to Android 13 yesterday and now everytime the game is open and the...
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