Skip to content
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

Error opening project after compilation on Godot 4 alpha 14. #4

Closed
m4rr5 opened this issue Aug 22, 2022 · 8 comments · Fixed by #7
Closed

Error opening project after compilation on Godot 4 alpha 14. #4

m4rr5 opened this issue Aug 22, 2022 · 8 comments · Fixed by #7
Labels
bug Something isn't working

Comments

@m4rr5
Copy link

m4rr5 commented Aug 22, 2022

I followed the steps in README.md to build the code (on Windows 10, 64 bit) after cloning the repository. After I open the project in the 'game' subdirectory in Godot 4 alpha 14, I get the following errors in the console:

Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

Editing project: D:/dev/GDExtensionSummator/game

ERROR: Index p_type_b = 3272620160 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 3235386816 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 3235386816 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 3235386816 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Error getting method , hash mismatch.
   at: gdnative_variant_get_ptr_builtin_method (core/extension/gdnative_interface.cpp:497)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
ERROR: Condition "!windows.has(p_window)" is true.
   at: window_resize (drivers/vulkan/vulkan_context.cpp:1479)
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

ERROR: Condition "!mb" is true. Returning: nullptr
   at: gdnative_classdb_get_method_bind (core/extension/gdnative_interface.cpp:906)
WARNING: FBX file import is enabled, but no FBX2glTF path is configured. FBX files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:92)
SCRIPT ERROR: Parse Error: Identifier "Summator" not declared in the current scope.
          at: GDScript::reload (res://main.gd:5)
SCRIPT ERROR: Parse Error: Identifier "Summator" not declared in the current scope.
          at: GDScript::reload (res://main.gd:5)

When I try to run i complains that 'Summator' is not declared in the current scope.

@paddy-exe
Copy link
Owner

paddy-exe commented Aug 22, 2022

@m4rr5 Hey there, thanks for the issue report! The last working state the repo was on, was Alpha 9. I am currently not on Windows but I updated the godot-cpp version to the latest and updated some minor syntax to reflect the changes that were made to the official godot-cpp example.
Could you pull the latest version and check if it works for you now?

Edit: I tried it myself and I noticed there were some renames. You should be able to run the project with the latest commit now

@m4rr5
Copy link
Author

m4rr5 commented Aug 23, 2022

Hello @paddy-exe thanks for looking into this, but I'm afraid even with the latest changes it still does not work for me. Latest output:

Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

Editing project: D:/dev/GDExtensionSummator/game

ERROR: Index p_type_b = 1069689152 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 1033049536 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 1033049536 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 1033049536 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Error getting method , hash mismatch.
   at: gdnative_variant_get_ptr_builtin_method (core/extension/gdnative_interface.cpp:497)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
ERROR: Condition "!windows.has(p_window)" is true.
   at: window_resize (drivers/vulkan/vulkan_context.cpp:1479)
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

ERROR: Condition "!mb" is true. Returning: nullptr
   at: gdnative_classdb_get_method_bind (core/extension/gdnative_interface.cpp:906)
WARNING: FBX file import is enabled, but no FBX2glTF path is configured. FBX files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:92)
SCRIPT ERROR: Parse Error: Identifier "Summator" not declared in the current scope.
          at: GDScript::reload (res://main.gd:5)
SCRIPT ERROR: Parse Error: Identifier "Summator" not declared in the current scope.
          at: GDScript::reload (res://main.gd:5)```

I did find this related project that does work, maybe it is of help: https://github.com/nathanfranke/gdextension

For the record, the "official" example and documentation also does not work for me and on the Godot Discord people said that was because it was out of date and needed updates.

@paddy-exe
Copy link
Owner

paddy-exe commented Aug 23, 2022

@m4rr5 I think I know what the cause is. The last sync of godot-cpp with the upstream godot repo was on this commit: 8498f64a506ba96bce82f1506567be16938b831c, so if you run

git checkout 8498f64a506ba96bce82f1506567be16938b831c

you should be able to run the project. You should know that his action will transform you into headless mode

@m4rr5
Copy link
Author

m4rr5 commented Aug 23, 2022

Still no joy, I updated godot-cpp to that commit and built everything again, still getting:

Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

Editing project: D:/dev/GDExtensionSummator/game

ERROR: Index p_type_b = 3498405312 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 3460702464 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 3460702464 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 3460702464 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Error getting method , hash mismatch.
   at: gdnative_variant_get_ptr_builtin_method (core/extension/gdnative_interface.cpp:497)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
ERROR: Condition "!windows.has(p_window)" is true.
   at: window_resize (drivers/vulkan/vulkan_context.cpp:1479)
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

ERROR: Condition "!mb" is true. Returning: nullptr
   at: gdnative_classdb_get_method_bind (core/extension/gdnative_interface.cpp:906)
WARNING: FBX file import is enabled, but no FBX2glTF path is configured. FBX files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:92)
SCRIPT ERROR: Parse Error: Identifier "Summator" not declared in the current scope.
          at: GDScript::reload (res://main.gd:5)
SCRIPT ERROR: Parse Error: Identifier "Summator" not declared in the current scope.
          at: GDScript::reload (res://main.gd:5)
Running: D:/Godot/Godot_v4.0-alpha14_win64.exe --path D:/dev/GDExtensionSummator/game --remote-debug tcp://127.0.0.1:6007 --editor-pid 36824 --position 1408,780

ERROR: Index p_type_b = 1897723936 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 1860838208 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 1860838208 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Index p_type_b = 1860838208 is out of bounds (Variant::VARIANT_MAX = 38).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1052)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Error getting method , hash mismatch.
   at: gdnative_variant_get_ptr_builtin_method (core/extension/gdnative_interface.cpp:497)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 25 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 26 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 27 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 28 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 29 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 30 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 31 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 32 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 33 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Index p_operator = 34 is out of bounds (Variant::OP_MAX = 25).
   at: get_ptr_operator_evaluator (core/variant/variant_op.cpp:1050)
ERROR: Condition "!method" is true. Returning: 0
   at: get_builtin_method_hash (core/variant/variant_call.cpp:1235)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
ERROR: Getting Variant conversion function with invalid type
   at: (core/extension/gdnative_interface.cpp:401)
Godot Engine v4.0.alpha14.official.106b68050 - https://godotengine.org
Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

ERROR: Condition "!mb" is true. Returning: nullptr
   at: gdnative_classdb_get_method_bind (core/extension/gdnative_interface.cpp:906)

@paddy-exe
Copy link
Owner

@m4rr5 Hmm now that is really weird that it works for me but not for you...
Can you try the godot-cpp commit of the other extension that you shared where the project worked?:

git checkout 8ba1c059da5e97428d40612dd0afc2be4079b5c6

@paddy-exe paddy-exe added the bug Something isn't working label Sep 3, 2022
@Deins
Copy link

Deins commented Sep 10, 2022

Bumped into this issue when using forked repository: https://github.com/lxg13/GDExtension with Godot_v4.0-alpha15
However (this) latest repository worked.

Only had to modify summator.gdextension library paths from:

windows.64.debug = "summator/libgdsummator.windows.debug.64.dll"

to

windows.64.debug = "summator/libgdsummator.windows.debug.x86_64.dll

@paddy-exe
Copy link
Owner

Bumped into this issue when using forked repository: https://github.com/lxg13/GDExtension with Godot_v4.0-alpha15

However (this) latest repository worked.

Only had to modify summator.gdextension library paths from:


windows.64.debug = "summator/libgdsummator.windows.debug.64.dll"

to


windows.64.debug = "summator/libgdsummator.windows.debug.x86_64.dll

Thanks for the solution! Will update the code when I am back from vacation. I didn't have access to a Windows computer so I couldn't try it out

@paddy-exe
Copy link
Owner

@Deins @m4rr5 Could you both please try this PR: #7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants