Skip to content

Unable to load DLL on Linux Dedicated Server build #66

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

Open
Sleggie opened this issue Apr 5, 2025 · 2 comments
Open

Unable to load DLL on Linux Dedicated Server build #66

Sleggie opened this issue Apr 5, 2025 · 2 comments
Labels
bug Something isn't working linux Issue occurs on Linux platform

Comments

@Sleggie
Copy link

Sleggie commented Apr 5, 2025

Hello

I am getting the error below on Linux Dedicated Server.

Using IL2CPP:

4/5 3:13:51 PM [Info] 2025-04-05T19:13:51.234Z|0x7fdf2d2bc740|DllNotFoundException: Unable to load DLL 'gilzoide-sqlite-net'. Tried the load the following dynamic libraries: Unable to load dynamic library 'gilzoide-sqlite-net' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = gilzoide-sqlite-net: cannot open shared object file: No such file or directory

Using Mono:

4/5 3:55:40 PM [Info] 2025-04-05T19:55:40.410Z|0x7fb73e2c0740|DllNotFoundException: gilzoide-sqlite-net assembly:<unknown assembly> type:<unknown type> member:(null)

@Sleggie Sleggie changed the title Unable to load DLL on Linux Dedicated Server build with IL2CPP Unable to load DLL on Linux Dedicated Server build Apr 5, 2025
@gilzoide
Copy link
Owner

gilzoide commented Apr 6, 2025

Hey @Sleggie, thanks for the report.
Say, can you see the libgilzoide-sqlite-net.so file in your build?
If yes, there may be another error message above this one you showed with the root error, may be a "undefined symbol X" or maybe something related to the version of GLIBC that is linked to this library.
If not though, what version of Unity and what architecture are you building? We only have a prebuilt DLL for Linux for x86_64. As far as I know, Unity makes no difference between standalone builds and dedicated server builds, so the standalone DLL should be copied over and used there 🤔 But I might be wrong, I have never built Unity projects for dedicated servers.

@gilzoide gilzoide added bug Something isn't working linux Issue occurs on Linux platform labels Apr 6, 2025
@Sleggie
Copy link
Author

Sleggie commented Apr 8, 2025

Hey @Sleggie, thanks for the report. Say, can you see the libgilzoide-sqlite-net.so file in your build? If yes, there may be another error message above this one you showed with the root error, may be a "undefined symbol X" or maybe something related to the version of GLIBC that is linked to this library. If not though, what version of Unity and what architecture are you building? We only have a prebuilt DLL for Linux for x86_64. As far as I know, Unity makes no difference between standalone builds and dedicated server builds, so the standalone DLL should be copied over and used there 🤔 But I might be wrong, I have never built Unity projects for dedicated servers.

Hi @gilzoide

The libgilzoide-sqlite-net.so is indeed in the build. Also note that we are using IL2CPP, but the issue still happens with Mono.
There are no mentions of undefined symbols above it, we are using unity version 2022.3.50f1, and we are targeting x86_64 architecture.

Because of this issue, we switched to this sqlite solution: https://github.com/kdw9502/UnitySQLiteAsync which ended up working but only with Mono, not IL2CPP. Perhaps that might give a bit more insight into the issue!

Thanks :)

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

No branches or pull requests

2 participants