utopia-rise/godot-kotlin-native

Godot objects declared in Kotlin are not properly initialized

CedNaru opened this issue · 1 comments

I'm currently trying to implement the benchmarks for the new bindings. But a lot of calls crash.

I noticed that the cause was when I am trying to use a Godot Object that has been created directly from Kotlin.

What is working:
-Using a CoreType coming from Godot
-Using a CoreType created in Kotlin
-Using an Object coming from Godot

What is not working:
-Using an Object created in Godot.

I tried several methods like:
image
image
image

None of them works.
It ran the debugger many times and it seems that the issue is that the ptr is never properly initialized.
When it's sent to Godot, I just get a segfault error:
image

Fixed in #234.