x/mobile: gomobile integrated app crashes on GBox clone mode #66989
Labels
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.19 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I've been using gomobile bind to build Android sdk for my app. It worked well most times. However when I tried to run app with gbox clone mode, it crashed every time on init.
What did you see happen?
As I mentioned above, my app crashes every time on init, only on clone mode. More specifically, it occurs when the app loads the libgojni.so file I compiled.
Go involved Logcat logs from Android studio:
Will provide more if needed.
What did you expect to see?
At first I presumed this would be some kind of biz error. But after I went though the logs, no biz-matching runtime panic occured.
I did a bit of digging in the stacktrace. Panic happens in
go lineLog(r, C.ANDROID_LOG_ERROR)
. Maybe this is some kind of permission bug?Not an Android developer actually. Would really appreciate any professional help.
The text was updated successfully, but these errors were encountered: