HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Crashing after Hxgodot update and STC pull (MacOS) #37

Closed drekay closed 1 year ago

drekay commented 1 year ago

The basic STC demo keeps crashing the editor when I try to load it after updating HxGodot and doing a pull on STC main branch or, am I missing something? This is happening on MacOS 10.14.6 Mojave.

I am using Godot Engine v4.0.beta.custom_build [7e1bd3f95] and building with scons platform=macos target=release

Editing project: /Users/../../../../squash-the-creeps-3d-hxgodot
arguments
0: /Users/../../../../godot/bin/godot.macos.editor.x86_64
1: --path
2: /Users/../../../../c/squash-the-creeps-3d-hxgodot
3: --editor
Current path:  /Users/../../../../godot/bin
2023-01-22 14:43:57.912 godot.macos.editor.x86_64[12637:3791137] *** +[NSString stringWithUTF8String:]: NULL cString
Godot Engine v4.0.beta.custom_build.7e1bd3f95 - https://godotengine.org
2023-01-22 14:43:57.989 godot.macos.editor.x86_64[12632:3789601] obs-mac-virtualcam(DAL): HardwarePlugIn_Teardown self=0x11b76f768
$ OpenGL Renderer: NVIDIA GeForce GT 750M OpenGL Engine

ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1346)
ERROR: Error getting method get_bound_arguments_count, hash mismatch.
   at: gdextension_variant_get_ptr_builtin_method (core/extension/gdextension_interface.cpp:477)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1346)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1346)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta.custom_build (7e1bd3f95a10acf60e07a8a6518cc80bfee6fbbf)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] 1   libsystem_platform.dylib            0x00007fff75330b5d _sigtramp + 29
[2] 2   ???                                 0x000000000000004a 0x0 + 74
[3] godot::Object_obj::_hx___init_engine_bindings()
[4] godot::__Object_obj_hx___init_engine_bindings()
[5] hx::CStaticFunction0::__run()
[6] HxGodot_obj::main()
[7] 7   libhxgodot.release.x86_64.dylib     0x0000000117ee3052 hxgodot_init + 34
[8] GDExtensionManager::initialize_extensions(GDExtension::InitializationLevel) (in godot.macos.editor.x86_64) + 60
[9] Main::setup2(unsigned long long) (in godot.macos.editor.x86_64) + 12237
[10] Main::setup(char const*, int, char**, bool) (in godot.macos.editor.x86_64) + 37473
[11] main (in godot.macos.editor.x86_64) + 311
[12] 12  libdyld.dylib                       0x00007fff751453d5 start + 1
-- END OF BACKTRACE --
dazKind commented 1 year ago

The following errors are usually an indicator, that your godot binary is older and not compatible anymore.

ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1346)
ERROR: Error getting method get_bound_arguments_count, hash mismatch.
   at: gdextension_variant_get_ptr_builtin_method (core/extension/gdextension_interface.cpp:477)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1346)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1346)

Make sure you run the latest beta or build & run the latest godot master. :)