You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_instance_bindings is initialized multiple times #679
Note that I picked get_node solely as an example here; all other functions which access the instance binding object may trigger the same issue.
My findings
When Object::get_instance_binding is called before Object::set_instance_binding, godot core fallbacks to newly created instance (object.cpp#L1799-L1815). I am suspecting that fallback instance is reason for multiple initialization in Wrapped::_postinitialize. If that's the case, we must fix the godot core first, then fix godot-cpp accordingly.
Reacted by Teodor Potančok, Alex Laing and Gergely Sárosi
I've rebuilt godot and godot-cpp on current master (godotengine/godot@9b3972a) but the _instance_bindings assertion errors are still flooding my console.
I have also confirmed that the workaround I posted on #668 (comment) is working, however I'm not sure if it is the correct fix (see the caveat mentioned by vnen, #668 (comment))
I really want to propose an appropriate fix for this, but I'm still not sure where the multiple initialization of _instance_bindings comes from.
Unless I massively screwed up, I'm running with godot 5ca09b322c0dea3f71de3239c2da2a72d987f67d and godot-cpp 9aa129c and I'm still seeing a lot of 'Condition "_instance_bindings != nullptr" is true.' - these commits shouldn't be showing this any more should they?
Activity
saki7 commentedon Jul 11, 2022
I've rebuilt godot and godot-cpp on current master (godotengine/godot@9b3972a) but the
_instance_bindingsassertion errors are still flooding my console.I have also confirmed that the workaround I posted on #668 (comment) is working, however I'm not sure if it is the correct fix (see the caveat mentioned by vnen, #668 (comment))
I really want to propose an appropriate fix for this, but I'm still not sure where the multiple initialization of
_instance_bindingscomes from.Kev commentedon Jul 29, 2022
Unless I massively screwed up, I'm running with godot 5ca09b322c0dea3f71de3239c2da2a72d987f67d and godot-cpp 9aa129c and I'm still seeing a lot of 'Condition "_instance_bindings != nullptr" is true.' - these commits shouldn't be showing this any more should they?
Kev commentedon Jul 29, 2022
Very sorry - the library rename meant I was running my old dylib, not the new one. Ignore the report - no sign of this now.