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 SIG: 9 on Android

See original GitHub issue

When saving an image, this null pointer exception kills the app. Android, latest version of this package.

E/AndroidRuntime(16565): FATAL EXCEPTION: main
E/AndroidRuntime(16565): Process: com.marco.faceroom_test2, PID: 16565
E/AndroidRuntime(16565): java.lang.NullPointerException
E/AndroidRuntime(16565): 	at carnegietechnologies.gallery_saver.GallerySaver.finishWithSuccess(GallerySaver.kt:77)
E/AndroidRuntime(16565): 	at carnegietechnologies.gallery_saver.GallerySaver.access$finishWithSuccess(GallerySaver.kt:16)
E/AndroidRuntime(16565): 	at carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1.invokeSuspend(GallerySaver.kt:72)
E/AndroidRuntime(16565): 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime(16565): 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
E/AndroidRuntime(16565): 	at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(16565): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(16565): 	at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime(16565): 	at android.app.ActivityThread.main(ActivityThread.java:7664)
E/AndroidRuntime(16565): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(16565): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime(16565): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I/Process (16565): Sending signal. PID: 16565 SIG: 9

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
marcoberetta96commented, Oct 31, 2021

@lecicdjuro Regret to inform that the problem is still the same.

Log

E/AndroidRuntime(30144): FATAL EXCEPTION: main
E/AndroidRuntime(30144): Process: com.marco.my_app, PID: 30144
E/AndroidRuntime(30144): java.lang.NullPointerException
E/AndroidRuntime(30144): 	at carnegietechnologies.gallery_saver.GallerySaver.finishWithSuccess(GallerySaver.kt:79)
E/AndroidRuntime(30144): 	at carnegietechnologies.gallery_saver.GallerySaver.access$finishWithSuccess(GallerySaver.kt:16)
E/AndroidRuntime(30144): 	at carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1.invokeSuspend(GallerySaver.kt:74)
E/AndroidRuntime(30144): 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime(30144): 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
E/AndroidRuntime(30144): 	at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(30144): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(30144): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(30144): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(30144): 	at android.app.ActivityThread.main(ActivityThread.java:7842)
E/AndroidRuntime(30144): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(30144): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(30144): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
I/Process (30144): Sending signal. PID: 30144 SIG: 9
Lost connection to device.

I’m trying to save this file /data/user/0/com.marco.my_app/app_flutter/FaceRoom/Images/f0d96875248f760ef4664921bf77b409.jpeg

Flutter doctor

[✓] Flutter (Channel stable, 2.5.3)
    • Flutter version 2.5.3
    • Framework revision 18116933e7 (2 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Platform android-31, build-tools 31.0.0

[✓] Connected device
    • Pixel 3a (mobile) • 948AY0KK49 • android-arm64  • Android 12 (API 31)

I’m using gallery_saver ^2.3.2. Please let me know if I can provide more useful information. As I said, unfortunately this makes the entire app crash, so at the moment this package is not usable.

0reactions
HeynSekkcommented, Jul 28, 2022

Same issue here. It still happening on gallery_saver 2.3.2. In my app, this issue has 15 crash events affecting 9 users according to crashlytics.

Fatal Exception: java.lang.NullPointerException
       at carnegietechnologies.gallery_saver.GallerySaver.finishWithSuccess(GallerySaver.kt:79)
       at carnegietechnologies.gallery_saver.GallerySaver.access$finishWithSuccess(GallerySaver.kt:16)
       at carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1.invokeSuspend(GallerySaver.kt:74)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:257)
       at android.app.ActivityThread.main(ActivityThread.java:8192)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015) ```
Read more comments on GitHub >

github_iconTop Results From Across the Web

E/AndroidRuntime: FATAL EXCEPTION: main Process: com ...
The first thing you should do is use androidx.constraintlayout.widget.ConstraintLayout instead of android.support.constraint.ConstraintLayout , ...
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 >
App crashes when I attempt to run it! (Example) - Treehouse
I got the following error messages in logcat: 10-06 13:23:09.490 ... FATAL EXCEPTION: main Process: com.example.alexander.funfacts, ...
Read more >
Bug - Native crash of /Fatal AndroidRuntime Exception detected
FATAL EXCEPTION : main. Process: com.google.android.googlequicksearchbox:interactor, PID: 1502. This is all there is.
Read more >
App is randomly crashing due to com.zipow.videobox.share ...
By going through all the logs I was able to find this critical error: ... FATAL EXCEPTION: main Process: com.myapp, PID: 18895 android.app....
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