x/mobile stack traces on Android?

83 views
Skip to first unread message

Brien Colwell

unread,
Aug 27, 2024, 4:17:02 AM8/27/24
to golang-nuts
I’m using gomobile to compile an Android aar. The issue I have is when there is a crash in the native code, I don’t see any stack trace. Crash reports from the Google Console are equally useless.

If anyone has stack traces figured on on gomobile, I’d love your help to learn how.

My build flags are below:

gomobile bind \
-target=android/arm64,android/amd64 -androidapi 24 \
-javapkg com.bringyour \
-trimpath \
-gcflags="-dwarf=true" \
-ldflags="-X client.Version=$$WARP_VERSION -compressdwarf=false -B gobuildid" \
-o build/android/BringYourClient.aar \

I thought I must be dropping the debug symbols in the build, but I can’t tell what would cause this. The gradle file includes the usual NDK debugSymbolLevel, below.

ndk {
    debugSymbolLevel 'SYMBOL_TABLE'
}



Brien

Reply all
Reply to author
Forward
0 new messages