-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
Cannot obtain PhysicsDirectSpaceState in GDNative #28574
Comments
I've debugged into
So it seems that the hash table simply doesn't have the key. Is |
It should not segfault but the expression written there will. because you have non-null invalid pointer. |
In Then That |
are you sure it is not getptr which segfaults? try adding print of res value just agter getptr line, this will work as barrier for debugger, so it will not optimize value out, so you will know if it is getptr() or macro. |
It is I think there more interesting question here is: why isn't the key ( |
Curious: |
Duplicate of #28195, which is fixed. |
Godot version: 3.1.1 (custom build from commit f3eafce)
OS/device including version: Gentoo Linux 4.19.27, KDE 5 Plasma, NVidia proprietary drivers 418.43
Issue description:
I am trying to do a simple raycast in C++. But whatever path I take to obtain a PhysicsDirectSpaceState, it always results in a crash here:
https://github.com/godotengine/godot/blob/master/modules/gdnative/nativescript/nativescript.cpp#L1348
Assume I had a valid, non-null
Ref<World> world
in GDNative C++:Attempt #1
Segfaults at above location in
nativescript.cpp
Attempt #2
Segfaults at above location in
nativescript.cpp
Attempt #3
Segfaults at above location in
nativescript.cpp
The text was updated successfully, but these errors were encountered: