-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/mobile: App crashed on startup. #26009
Comments
This kind of error normally means that you have a non-pointer value that you have converted to a pointer type, probably when making a call out of Go. In Go, variables of pointer type must always hold pointer values. |
Everything shown in the stacktrace is not from my code. Everything is from gomobile. I don't have any null pointer in my code and nothing passes null, the worst from is an empty string, never null. |
This was fixed in Go 1.12. It was due to Android's jvalue being declared as void* but not being pointers. Go now detects it and there is a test. Internally we have the same test should it break again somehow. |
@agnivade I’ve worked on the project for a while now and the error doesn’t occur anymore |
Thanks, I will close it then. Please try with the latest released version if it happens again in the future. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.3 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux amd64
What did you do?
Crashes on second run of the app, doesn't crash at first. It crashes at launch every 2 intervals.
If possible, provide a recipe for reproducing the error.
All you need is to run the app.
Source Code
What did you expect to see?
A successful launch
What did you see instead?
Crashed app
Log output:
The text was updated successfully, but these errors were encountered: