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
Some errors are triggered by Android or codes that outside developer's control. The only solution I found was use try and catch at all Java interface in hope that exceptions won't cause a crash.
What version of Go are you using (
go version
)?go1.8.3
(
gomobile version +0f31740 Wed Apr 19 17:20:05 2017 +0000 (android); androidSDK=[removed]/platforms/android-26
)
What operating system and processor architecture are you using (
go env
)?linux/amd64
cross complied to
android/arm
What did you do?
Calling Java function from go part of android app(with interface), and an unchecked exception was thrown at Java side.
This is the abridged version of original crash log:
I have successfully reproduced this crash. Try this binary apk(built with debug enabled):
app.zip
Reproduced log:
https://gist.github.com/xiaokangwang/8d7f5aefd98d7c52c644b4c815097eb5
Reproduce code:
Go part of reproduce
https://github.com/xiaokangwang/gomobilecrashreproducego
Java part of reproduce
https://github.com/xiaokangwang/gomobilecrashreproducejava
What did you expect to see?
Handle this situation gracefully, for example a API for dealing with unchecked exception, it can be:
What did you see instead?
Just crash, and destabilize entire app.
This issue also have been spotted at ethereum/go-ethereum#14437, but seems to be ignored.
Original discovered as my app's service crash frequently and render it unusable.
The text was updated successfully, but these errors were encountered: