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

FATAL EXCEPTION: main #132

Closed
532910 opened this issue Oct 18, 2020 · 4 comments
Closed

FATAL EXCEPTION: main #132

532910 opened this issue Oct 18, 2020 · 4 comments

Comments

@532910
Copy link
Contributor

532910 commented Oct 18, 2020

This happens every time on AndrOBD close (swipe up from the app drawer).

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.fr3ts0n.ecu.gui.androbd, PID: 22708
E AndroidRuntime: java.lang.RuntimeException: Unable to destroy activity {com.fr3ts0n.ecu.gui.androbd/com.fr3ts0n.ecu.gui.androbd.MainActivity}: java.lang.NullPointerEx
ual method 'void java.util.logging.FileHandler.close()' on a null object reference
E AndroidRuntime:        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4941)
E AndroidRuntime:        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4970)
E AndroidRuntime:        at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)
E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:107)
E AndroidRuntime:        at android.os.Looper.loop(Looper.java:214)
E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7356)
E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.logging.FileHandler.close()' on a null object reference
E AndroidRuntime:        at com.fr3ts0n.ecu.gui.androbd.MainActivity.onDestroy(MainActivity.java:479)
E AndroidRuntime:        at android.app.Activity.performDestroy(Activity.java:8067)
E AndroidRuntime:        at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1341)
E AndroidRuntime:        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4926)
E AndroidRuntime:        ... 11 more

op3t on lineage 17.1 + microg (on android 10)

@fr3ts0n
Copy link
Owner

fr3ts0n commented Dec 13, 2020

Thanks for this report.

This error is caused by missing access to local file system.
It is prepended by another severe error message at program startup which indicates the lack of access when it attempts to create the log file.

Please allow AndrOBD access to the local file system at (initial) program startup.

@532910
Copy link
Contributor Author

532910 commented Dec 14, 2020

I wouldn't like to give storage access.

@fr3ts0n
Copy link
Owner

fr3ts0n commented Dec 15, 2020

Fixed test version V2.2.3 is available here: https://t.me/AndrOBD_dev/229

@532910
Copy link
Contributor Author

532910 commented Dec 15, 2020

I'll test it as soon as it becomes available on F-Droid. Avoid KGBgram!

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

2 participants