98teg / NativeDialogs

Native Dialogs is a plugin for Godot that allows you to interact with OS-specific dialogs, such as notifications, messages and file dialogs.
MIT License
156 stars 8 forks source link

Doesn't appear to work in 4.0 or 4.1 #20

Open sapienzor opened 1 year ago

sapienzor commented 1 year ago

Hi, I've been migrating my project to 4.x but I've been having issues with this addon(thank you btw, saved me a huge headache in 3). I tried downloading and installing off the assetlib as well as from here. I've also tried creating a new project. Getting this:

editor/editor_node.cpp:1271 - Condition "!res.is_valid()" is true. Returning: ERR_CANT_OPEN Can't open dynamic library: /home/zoey/Documents/godotsideprojects/Titans of Otili/addons/native_dialogs/bin/libnativedialogs.linux.template_debug.x86_64.so. Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/zoey/Documents/__godotsideprojects/Titans of Otili/addons/native_dialogs/bin/libnativedialogs.linux.template_debug.x86_64.so) core/extension/gdextension.cpp:400 - GDExtension dynamic library not found: /home/zoey/Documents/godotsideprojects/Titans of Otili/addons/native_dialogs/bin/libnativedialogs.linux.template_debug.x86_64.so

98teg commented 1 year ago

Thank you for your kind words! According to your error message, it seems like you are missing some dependencies installed in your operating system:

Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found 

If you run the command ldd --version, you should get an error. When I run it I get:

ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35

So it seems like you don't need version 2.32 specifically. I would recommend you to follow this section of the Godot documentation to install possible missing dependencies. If that solves the issue, please let me know.

sapienzor commented 1 year ago

2.31 appears to be the official version for my OS, which says it is up to date. It will not allow me to update past that for security reasons.

98teg commented 1 year ago

I've been looking into downgrading Ubuntu in the GitHub workflow, but it is already in the lowest version possible. Maybe you could try and build the extension yourself? I explain how to do it here.

98teg commented 1 year ago

Also, could you test if this error occurs with others GDExtensions, please? Such as Godot SQLite

sapienzor commented 1 year ago

Went down the rabbit hole a bit, apparently I need a higher python version to get a higher scons version, but updating python breaks my OS. I guess I could do a virtual environment for python but I have no idea how to do that.

SQLite and a few other extensions I randomly tried all worked fine.

98teg commented 1 year ago

Could you try this version, please? I've added a step to the workflow that I've seen in the GDExtension summator, and I've updated it to Godot 4.0.2. This may not work, but it is the only thing I can think of.

native_dialogs.zip

If this still crashes, please leave more information about your OS, in case anyone in the future wants to look into this.

sapienzor commented 1 year ago

Tried it in a fresh project on 4, 4.0.1, 4.0.2, 4.0.3, and 4.1 :(, same result. Thanks for trying. Can I ask if you've gotten it to work on another linux distro, if so, which?

Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.8 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-148-generic OS Type: 64-bit Processors: 4 × AMD Ryzen 3 1200 Quad-Core Processor Memory: 15.6 GiB of RAM

98teg commented 1 year ago

I've tested this plugin in Windows 10 and Ubuntu 22

INdIEDeV016 commented 1 year ago

The issue still persists in the stable version of Godot 4.1. Also there are changes to the GDExtension architecture so the plugin might be required to be rewritten.

OS: Windows 11 Pro 22H2

image