x/mobile,runtime: missing stack trace on Android crash #69101
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
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: