You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Describe the bug
If there's a Java exception, we need to at least clear the exception so JNI knows we're aware of it.
When do we so, it is smart to print its stacktrace or otherwise do something useful for debugging. It might be sensible to raise a Python exception.
To Reproduce
Steps to reproduce the behavior:
Run some Python code that triggers an unhandled Java exception
Immediately after that, run some more Python code that does operations against JNI
Expected behavior
Clear the JNI exception state. Additionally, perhaps see a Java stacktrace or other information about what caused the exception, perhaps in the form of a Python exception.
Actual behavior
On Android, the process gets killed, and this gets logged. Note the text about a "pending exception."
Describe the bug
If there's a Java exception, we need to at least clear the exception so JNI knows we're aware of it.
When do we so, it is smart to print its stacktrace or otherwise do something useful for debugging. It might be sensible to raise a Python exception.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Clear the JNI exception state. Additionally, perhaps see a Java stacktrace or other information about what caused the exception, perhaps in the form of a Python exception.
Actual behavior
On Android, the process gets killed, and this gets logged. Note the text about a "pending exception."
Additional context
beeware/briefcase#538
See e.g. https://www.developer.com/java/data/exception-handling-in-jni.html and https://docs.oracle.com/en/java/javase/13/docs/specs/jni/functions.html#exceptioncheck to check for these exceptions.
The text was updated successfully, but these errors were encountered: