-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile,runtime: missing stack trace on Android crash #69101
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
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
This was referenced Aug 28, 2024
cc @hyangah |
cc @golang/runtime @golang/android |
Does this commit mean now stacktrace will be emitted as expected? 8203295 |
I'm exploring a proposal to improve errors in x/mobile generally - #70668 @ignoramous @hyangah I'd love your feedback on the proposal. I'm currently thinking x/mobile needs some improvement to unrecovered error handling. I'm curious how you are approaching this. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.22.6 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Create a go module and build it with gomobile. For example, the build command below will produce an AAR file that can be bundled into an Android app.
The build AAR can be bundled into an Android app with the build.gradle lines:
What did you see happen?
Now if there is a crash from a goroutine inside the library, the following is printed to the Android logs. e.g. a nil pointer deference
What did you expect to see?
I would expect to see a full stack trace similar to what happens when a go binary crashes. This is much more useful for crash logging and debugging.
The text was updated successfully, but these errors were encountered: