Skip to content

[Godot 4 Beta 17] GDExtension plugin crashes editor on startup #160

Closed

Description

@ilovespicynoodles

Godot version

v4.0.beta17.official.c40020513

System information

Kernel: x86_64 Linux 6.1.8-zen1-1-zen

Issue description

Loading my project will instantly crash it with the following error:

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta17.official (c40020513ac8201a449b5ae2eeb58fef0ce0a2a4)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x389e0) [0x7fe00f2b49e0] (??:0)
[2] /usr/bin/godot4() [0x45ba731] (??:0)
[3] /usr/bin/godot4() [0x4542e5f] (??:0)
[4] void godot::ClassDB::_register_class<TBLoader, false>(bool) (??:0)
[5] godot::GDExtensionBinding::initialize_level(void*, GDExtensionInitializationLevel) (??:0)
[6] /usr/bin/godot4() [0x45291ab] (??:0)
[7] /usr/bin/godot4() [0xdf32a1] (??:0)
[8] /usr/lib/libc.so.6(+0x23290) [0x7fe00f29f290] (??:0)
[9] /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7fe00f29f34a] (??:0)
[10] /usr/bin/godot4() [0xe0908e] (??:0)
-- END OF BACKTRACE --
================================================================

Removing the plugins in the extension_list.cfg in my project folder let me load the project, but after enabling for example only the git plugin extension, it crashes again with:

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta17.official (c40020513ac8201a449b5ae2eeb58fef0ce0a2a4)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x389e0) [0x7f2f746a79e0] (??:0)
[2] [0xb737000] (??:0)
-- END OF BACKTRACE --
================================================================

Steps to reproduce

Having any plugins/extensions in my project crashes it immediately on load.

Minimal reproduction project

N/A

Activity

  1. Flavelius commented on Feb 4, 2023

    @Flavelius

    For me with a c# addon, the editor just freezes without any error in the console, or exception. Removing the addon from the file-list manually enables the editor to load again, too. When it's loaded i can enable the plugin which is when it doesn't yet work (just nothing happening, probably another bug), then once restarted (1 time) it works normally, but every restart after that makes it freeze again.

  2. 404Fox commented on Feb 6, 2023

    @404Fox

    In my case I only tried to use the git plugin. I haven't tried many others but the git plugin is the only one I found to crash.

    1. Create a new project and open it
    2. Install the git plugin via the asset library
    3. Editor immediately crashes after install, and always crashes when opening the project
    artix:[fox]:~$ godot4 -d
    Godot Engine v4.0.beta17.official.c40020513 - https://godotengine.org
    OpenGL Renderer: AMD Radeon RX 580 Series (polaris10, LLVM 15.0.7, DRM 3.49, 6.1.8-artix1-1)
     
    Editing project: /home/fox/Projects/Toru
    ERROR: Condition "!method" is true. Returning: 0
       at: get_builtin_method_hash (core/variant/variant_call.cpp:1348)
    ERROR: Error getting method typed_assign, hash mismatch.
       at: gdextension_variant_get_ptr_builtin_method (core/extension/gdextension_interface.cpp:480)
    ERROR: Condition "!method" is true. Returning: 0
       at: get_builtin_method_hash (core/variant/variant_call.cpp:1348)
    ERROR: Condition "!method" is true. Returning: 0
       at: get_builtin_method_hash (core/variant/variant_call.cpp:1348)
    Godot Engine v4.0.beta17.official.c40020513 - https://godotengine.org
    Vulkan API 1.3.235 - Using Vulkan Device #0: AMD - AMD Radeon RX 580 Series
    artix:[fox]:~$  
    
    ================================================================
    handle_crash: Program crashed with signal 11
    Engine version: Godot Engine v4.0.beta17.official (c40020513ac8201a449b5ae2eeb58fef0ce0a2a4)
    Dumping the backtrace. Please include this when reporting the bug to the project developer.
    [1] /usr/lib/libc.so.6(+0x38a00) [0x7f3c2d00ca00] (??:0)
    [2] [0xaa680c0] (??:0)
    -- END OF BACKTRACE --
    ================================================================
    
  3. changed the title [-][Godot 4 Beta 17] Every plugin crashes my editor on startup.[/-] [+][Godot 4 Beta 17] GDExtention plugin crashes editor on startup[/+] on Feb 6, 2023
  4. changed the title [-][Godot 4 Beta 17] GDExtention plugin crashes editor on startup[/-] [+][Godot 4 Beta 17] GDExtension plugin crashes editor on startup[/+] on Feb 6, 2023
  5. akien-mga commented on Feb 6, 2023

    @akien-mga
    Member

    The Git plugin was last updated for beta 10, and godot-cpp broke compatibility since then.

    How are you setting it up? If you use official builds, the crash is likely expected and should be reported on https://github.com/godotengine/godot-git-plugin so the maintainers can make a new release for newer Godot 4.0 betas.

    You can also update the godot-cpp submodule and try to compile it, which might solve the issue, if it compiles.

  6. transferred this issue fromgodotengine/godoton Feb 6, 2023
  7. akien-mga commented on Feb 6, 2023

    @akien-mga
    Member

    I transferred the issue to the git plugin repo. CC @twaritwaikar

  8. kuxv commented on Feb 13, 2023

    @kuxv

    it is the same on RC1

  9. patllamas commented on Feb 13, 2023

    @patllamas

    it is the same on RC1

    yep, my projects crash on startup when adding Godot-Git-Plugin version 3.0 to my addons folder. I'm running Godot RC 1

  10. RobertoMaurizzi commented on Feb 20, 2023

    @RobertoMaurizzi

    You can also update the godot-cpp submodule and try to compile it, which might solve the issue, if it compiles.

    I just tried compiling it: cloned the repo with --recursive, updated godot_cpp to master then ran scons target=editor generate_bindings=yes dev_build=yes gdextension_dir="/c/Users/myuser/whereIputthe2files/" -j 6 and after quite a bit of compiling I got the following (repeated a couple of times):

    C:\Users\...\Documents\Devel\Godot_dev\godot-git-plugin\godot-git-plugin\src\git_plugin.h(43): error C3668: 'GitPlugin::_get_diff': method with override specifier 'override' did not override any base class methods
    C:\Users\...\Documents\Devel\Godot_dev\godot-git-plugin\godot-git-plugin\src\git_plugin.h(46): error C3668: 'GitPlugin::_get_previous_commits': method with override specifier 'override' did not override any base class methods
    
  11. RobertoMaurizzi commented on Feb 23, 2023

    @RobertoMaurizzi

    Update: godot-cpp released a commit described as "compatible with RC3"...

    I tried to compile the plugin using that and it's the same (errors in git_plugin.h). By actually removing the override keyword the code compiles, but then the plugin interface doesn't show up 😅 (the two classes don't sound related to integration with the editor, so it might be due to some other mistake I'm making in building the plugin).

    I removed the dev_build=yes because it turned out that default scons for the editor isn't building a dev version so the editor is searching for libgit_plugin.windows.editor.x86_64.dll instead of libgit_plugin.windows.editor.dev.x86_64.dll

  12. akien-mga commented on Feb 23, 2023

    @akien-mga
    Member

    For those of you who can compile from source, please test #161. I didn't get to test it myself but it compiles and should work with Godot 4.0 RC 4.

  13. akien-mga commented on Feb 23, 2023

    @akien-mga
    Member

    I tagged a new v3.0.0-beta2 release with this fix: https://github.com/godotengine/godot-git-plugin/releases/tag/v3.0.0-beta2

    And it's updated on the Asset Library too: https://godotengine.org/asset-library/asset/1581

    It's compatible with 4.0 RC 4, possibly with some of the older RCs, and should work fine with 4.0-stable too (but we'll make a new release by then to be fully in sync with the latest godot-cpp).

  14. RobertoMaurizzi commented on Feb 25, 2023

    @RobertoMaurizzi

    I tried the new version and it compiles clean plus it doesn't crash the editor anymore.
    However, I can't get it to work even with the official RC-5 + the plugin downloaded from assets.
    I opened a new issue #163 for that.

  15. ilovespicynoodles commented on Mar 10, 2023

    @ilovespicynoodles
    Author

    After installing Godot 4 stable 1, it stopped being an issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions