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.

Fatal exception on android

See original GitHub issue

Description: Since the upgrade to version 1.0.0+3 I randomly (?) get fatal exceptions on Android with a complete app crash (see strack trace). Unfortunately I’m not able yet to tell what events cause the issue…

Affected versions: 1.0.0+3 Affected devices: Nexus 5X API 28 x86 (Emulator), Huawei P20 (Physical)

D/AndroidRuntime( 6228): Shutting down VM
E/AndroidRuntime( 6228): FATAL EXCEPTION: main
E/AndroidRuntime( 6228): Process: app, PID: 6228
E/AndroidRuntime( 6228): java.lang.IllegalStateException: Image is already closed
E/AndroidRuntime( 6228): 	at android.media.Image.throwISEIfImageIsInvalid(Image.java:70)
E/AndroidRuntime( 6228): 	at android.media.ImageReader$SurfaceImage.getFormat(ImageReader.java:821)
E/AndroidRuntime( 6228): 	at com.google.firebase.ml.vision.common.FirebaseVisionImage.fromMediaImage(com.google.firebase:firebase-ml-vision@@24.0.1:6)
E/AndroidRuntime( 6228): 	at com.github.rmtmckenzie.qrmobilevision.QrCameraC2$Frame.toImage(QrCameraC2.java:213)
E/AndroidRuntime( 6228): 	at com.github.rmtmckenzie.qrmobilevision.QrDetector.processFrame(QrDetector.java:84)
E/AndroidRuntime( 6228): 	at com.github.rmtmckenzie.qrmobilevision.QrDetector.processLatest(QrDetector.java:79)
E/AndroidRuntime( 6228): 	at com.github.rmtmckenzie.qrmobilevision.QrDetector.onSuccess(QrDetector.java:94)
E/AndroidRuntime( 6228): 	at com.github.rmtmckenzie.qrmobilevision.QrDetector.onSuccess(QrDetector.java:27)
E/AndroidRuntime( 6228): 	at com.google.android.gms.tasks.zzn.run(Unknown Source:4)
E/AndroidRuntime( 6228): 	at android.os.Handler.handleCallback(Handler.java:873)
E/AndroidRuntime( 6228): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6228): 	at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime( 6228): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/AndroidRuntime( 6228): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 6228): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime( 6228): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I/Process ( 6228): Sending signal. PID: 6228 SIG: 9

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
rmtmckenziecommented, Apr 21, 2020

This should be fixed as of 1.0.1.

0reactions
Xaeroxaerocommented, Jul 23, 2020

Its also still occuring for me - Lenovo Tab10 PLUS. Also I have the same issue when lunching on android emulator with 6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FIX] AndroidRuntime: FATAL EXCEPTION: main - java.lang ...
RuntimeException exceptions in Java are the ones that would occur while running your Android Application on the device or Emulator.
Read more >
How to catch Fatal Exception thrown from a referenced library?
Although I am catching all Exceptions, my app still crashes. 05-31 13:43:06.297: W/dalvikvm(11150): ...
Read more >
App crash with Fatal Exception: android.app ... - GitHub
The library enters the foreground calling startForeground as soon as the onCreate method is called (see here) so it is possibly a corner...
Read more >
Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
FATAL EXCEPTION IN SYSTEM PROCESS: android.bg in Kitkat
Hello Android Developers,. Could you please help out here to avoid the below FATAL exception in system_server process and android.bg thread? This issue...
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