utopia-rise / godot-kotlin-native

Kotlin bindings for Godot Engine
MIT License
290 stars 16 forks source link

Godot objects declared in Kotlin are not properly initialized #231

Closed CedNaru closed 4 years ago

CedNaru commented 4 years ago

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

raniejade commented 4 years ago

Fixed in #234.