Skip to content

Plugin import error #11

Closed
Closed

Description

@Flash1232

I encountered the following error when trying to use the plugin with GodotEngine X11 v3.2-stable on ArchLinux (Linux Kernel v5.4.15):

E 0:00:00.462 open_dynamic_library: Can't open dynamic library: /home/[username]/Documents/Git/[project_folder]/bin/x11/libgitapi.so. Error: /home/[username]/Documents/Git/[project_folder]/bin/x11/libgitapi.so: undefined symbol: deflateInit_
<C++ Error> Condition "!p_library_handle" is true. Returned: ERR_CANT_OPEN
<C++ Source> drivers/unix/os_unix.cpp:424 @ open_dynamic_library()

Activity

  1. twaritwaikar commented on Feb 1, 2020

    @twaritwaikar
    Contributor

    This might be happening because of the Libgit2 binaries were built from an Ubuntu 18.10 system. Do you encounter this error with other GDNative plugins too?

  2. twaritwaikar commented on Feb 2, 2020

    @twaritwaikar
    Contributor

    Might be related to this godotengine/godot#20765

  3. arigoru commented on Feb 2, 2020

    @arigoru

    Ubuntu 18.04 LTS here, same issue:

    ERROR: open_dynamic_library: Can't open dynamic library: /media/[user]/Projects/Godot/[project]/bin/x11/libgitapi.so. Error: /media/[user]/Projects/Godot/[project]/bin/x11/libgitapi.so: undefined symbol: deflateInit_
       At: drivers/unix/os_unix.cpp:424.
    ERROR: open_dynamic_library: Can't open dynamic library: /media/[user]/Projects/Godot/[project]/bin/x11/libgitapi.so. Error: /media/[user]/Projects/Godot/[project]/bin/x11/libgitapi.so: undefined symbol: deflateInit_
       At: drivers/unix/os_unix.cpp:424.
    ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
       At: modules/gdnative/gdnative.cpp:483.
    ERROR: init_library: No nativescript_init in "res://bin/x11/libgitapi.so" found
       At: modules/gdnative/nativescript/nativescript.cpp:1506.
    
    
  4. arigoru commented on Feb 3, 2020

    @arigoru

    Small update on the issue. I have two versions of Godot - normal and C# Mono build, and issue only persists in normal version. Mono build of Godot initializes with no issues.

  5. twaritwaikar commented on Feb 5, 2020

    @twaritwaikar
    Contributor

    That could indicate a regression. I haven't been able to reproduce this yet though. I will try if mixing release/debug builds or the C# build does anything different

  6. twaritwaikar commented on Feb 14, 2020

    @twaritwaikar
    Contributor

    Finally reproduced this, but on my Windows system. It believe this is mostly related to mixing release and debug builds. A fix is in the works.

  7. twaritwaikar commented on Feb 14, 2020

    @twaritwaikar
    Contributor

    I am sure this was an issue of mixing debug and release modes. I segregated the builds properly this time and since I have not been able to reproduce this.

    This will be reflected in the next release. Closing this for now

  8. twaritwaikar commented on Feb 17, 2020

    @twaritwaikar
    Contributor

    This was found happening in Windows again

  9. kforney commented on Mar 7, 2020

    @kforney

    Also occurring on my Arch Linux system:

    Godot Engine v3.2.stable.custom_build - https://godotengine.org
    OpenGL ES 3.0 Renderer: GeForce GTX 1050 Ti/PCIe/SSE2
     
    ERROR: open_dynamic_library: Can't open dynamic library: /data/code/godotengine/godot-git-plugin/demo/bin/x11/release/libgitapi.so. Error: /data/code/godotengine/godot-git-plugin/demo/bin/x11/release/libgitapi.so: undefined symbol: deflateInit_
       At: drivers/unix/os_unix.cpp:424.
    ERROR: open_dynamic_library: Can't open dynamic library: /data/code/godotengine/godot-git-plugin/demo/bin/x11/release/libgitapi.so. Error: /data/code/godotengine/godot-git-plugin/demo/bin/x11/release/libgitapi.so: undefined symbol: deflateInit_
       At: drivers/unix/os_unix.cpp:424.
    ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
       At: modules/gdnative/gdnative.cpp:483.
    ERROR: init_library: No nativescript_init in "res://bin/x11/release/libgitapi.so" found
       At: modules/gdnative/nativescript/nativescript.cpp:1506.
    ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
       At: modules/gdnative/gdnative.cpp:483.
    
  10. lennartkloock commented on Mar 7, 2020

    @lennartkloock

    Same for me on Ubuntu 19.10...

  11. twaritwaikar commented on Mar 30, 2020

    @twaritwaikar
    Contributor

    Quoting from here

    Found the issue. Libgit2 has been compiled without the bundled Zlib, which means that it relies on the system to provide a libzlib.so in linux and likewise on other platforms.
    Fixing this is merely recompiling libgit2 and flipping the switch: USE_BUNDLED_ZLIB

  12. twaritwaikar commented on Mar 30, 2020

    @twaritwaikar
    Contributor

    Should be fixed on master. Will close with the next release

  13. RealTehreal commented on Apr 7, 2020

    @RealTehreal

    Hi there,
    I'm on Pop!OS 19.10 and compiled from source because the last release didn't work. Now I get the following errors when godot tries to load the plugin:

    ERROR: open_dynamic_library: Can't open dynamic library: /mnt/ramdisk/Test/bin/x11/release/libgitapi.so. Error: /mnt/ramdisk/Test/bin/x11/release/libgitapi.so: failed to map segment from shared object
       At: drivers/unix/os_unix.cpp:424.
    ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
       At: modules/gdnative/gdnative.cpp:483.
    ERROR: init_library: No nativescript_init in "res://bin/x11/release/libgitapi.so" found
       At: modules/gdnative/nativescript/nativescript.cpp:1506.
    ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
       At: modules/gdnative/gdnative.cpp:483.
    

    Some help would be very appreciated.

    Greets

  14. twaritwaikar commented on Apr 7, 2020

    @twaritwaikar
    Contributor
  15. RealTehreal commented on Apr 8, 2020

    @RealTehreal

    Godot_v3.2.1-stable_x11.64

    What version of Godot are you using?

  16. twaritwaikar commented on Apr 10, 2020

    @twaritwaikar
    Contributor

    I recommend trying with the newer release v1.2: https://github.com/godotengine/godot-git-plugin/releases/tag/v1.2
    Feel free to comment here if any issues occur.

  17. RealTehreal commented on Apr 10, 2020

    @RealTehreal

    It works now. But the issue was on my side.
    First it didn't work, using the latest release. Then after more digging I found out what the issue was:
    No exec permissions on the drive with the libgitapi.so
    In my case, I was running it on a ramdrive. After remounting with exec permissions
    (sudo mount -o remount,exec /mnt/ramdisk)
    it worked.
    Thanks for enduring me :-)

  18. twaritwaikar commented on Apr 10, 2020

    @twaritwaikar
    Contributor

    That's good to know. That might have been the issue, however, I fixed some other issues that might get in the way anyway. Closing till newer reports come in.

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