-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
app crash if "invalid memory address or nil pointer dereference" #3965
Comments
Can comfirm it happen to me too, I had a fucntion which was called fro; javascript to go and it required access to an ele;ent in the App struct wich I forgot to intilize and cost me some time to figure out that this complex error message was only due to a nil pointer derefrence. The function called from frontend was this:
Nor
The error is very confusing and scary in way, I tought I wouldn't be able to use goroutines, channels, or atomics in wails app. |
I'm not sure what the ask is from the Wails project on this one. Everything that's described is Go related. |
I am not sure the reason that recover can't capture the error, usually it should be. |
Description
signal 11 received but handler not on signal stack
mp.gsignal stack [0xc000170000 0xc000178000], mp.g0 stack [0x7f738a1ffe08 0x7f738a9ffa08], sp=0xc000920798
fatal error: non-Go code set up signal handler without SA_ONSTACK flag
refer issue: #2152
To Reproduce
add following code to Greet method:
Expected behaviour
exception is recovered.
if put the method in test function, the exception could be recovered.
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: