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

unrecoverable System.DllNotFoundException on initialise #4

Open
poppy-io opened this issue Nov 8, 2024 · 3 comments
Open

unrecoverable System.DllNotFoundException on initialise #4

poppy-io opened this issue Nov 8, 2024 · 3 comments

Comments

@poppy-io
Copy link

poppy-io commented Nov 8, 2024

immediately after installing the plugin via Dalamud, upon running the /aetherment command, and on XIV launch with the plugin, a window appears displaying the following error:

Aetherment has encountered an unrecoverable error

System.DllNotFoundException: Unable to load DLL 'C:\users\<USER>\Temp\tik1xqfv.deb\aetherment_core.dll' or one of its dependencies: Module not found (0x8007007E)
    at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)
    at System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(String unmanagedDllPath)
    at Dalamud.Plugin.Internal.Loader.ManagedLoadContext.LoadUnmanagedDllFromShadowCopy(String unmanagedDllPath) in C:\goatsoft\companysecrets\dalamud\\Plugin\Internal\Loader\ManagedLoadContext.cs:line 371
    at Dalamud.Plugin.Internal.Loader.ManagedLoadContext.LoadUnmanagedDllFromResolvedPath(String unmanagedDllPath, Boolean normalizePath) in C:\goatsoft\companysecrets\dalamud\\Plugin\Internal\Loader\ManagedLoadContext.cs:line 362
    at Dalamud.Plugin.Internal.Loader.ManagedLoadContext.LoadUnmanagedDll(String unmanagedDllName) in C:\goatsoft\companysecrets\dalamud\\Plugin\Internal\Loader\ManagedLoadContext.cs:line 220
    at System.Runtime.Loader.AssemblyLoadContext.ResolveUnmanagedDll(String unmanagedDllName, IntPtr gchManagedAssemblyLoadContext)
    at Aetherment.Aetherment.initialize(Initializers data)
    at Aetherment.Aetherment..ctor()

The error seems like a straightforward missing DLL, but I haven't been able to make any progress debugging it on my end via reinstalls or checking available DLLs. aetherment_core.dll is present in ~/.xlcore/installedPlugins/Aetherment/0.1.14.0, and none of the other files mentioned in the above error appear to be missing either.

I'm running v1.1.0.0(1.1.0) of XIVLauncher.Core on NixOS. Are there additional steps to get this plugin working under Linux? Am I missing a dependency?

@maliciouspastry
Copy link

Aetherment discord has this under aetherment-issues channel.

Known Issues
Aetherment fails to install on Linux. This is caused by a library (bcryptprimitives.dll) XIVLauncher.Core doesn't seem to include in its wineprefix. To resolve this issue:
Make sure wine is installed on your system (tested with wine-9.14)
Open a terminal
Enter the following command wine ""; cp "$HOME/.wine/drive_c/windows/system32/bcryptprimitives.dll" "$HOME/.xlcore/wineprefix/drive_c/windows/system32/bcryptprimitives.dll"
A better solution is being looked into.

Aetherment fails to run properly on Linux with the error Fatal error in initialize
This is being looked into, no known fix yet.

There was a post about building the DLL under Linux but I don't know if that will help, since its not really linux native its running under Wine. Others can probably give you more information.

I'm stuck waiting for this as well, but I am using Aetheris UI AIO just fine.

@NK-Kira
Copy link

NK-Kira commented Nov 23, 2024

Hello, I'm not a programmer but I've been stuck with the same issue and I figured I may as well contribute on the off-chance it may help. (If it doesn't, then delete at will.) I don't really know which specs you need to see, but I'm using Windows 11 for baseline (Since I saw you discussing Linux above).
Seeing the code I can immediately tell that there is some access issues with the folder which impedes its initialization, but beyond that I don't know what could be the issue.
image

Moreover, I tried disabling and enabling the plugin through Penumbra, but it gives a different issue.
image

Whether this is useful or not I don't know, and I know that plug-ins are very unstable right now, so I don't expect this to be fixed quickly. I just hope that maybe my input may help with something.

For what its worth, Material UI (the one from Aetherment) has been working fine even after the update, but I decided to delete it as a safety precaution in case anything gets outdated.

@Shiichibukai
Copy link

Hello, I'm not a programmer but I've been stuck with the same issue and I figured I may as well contribute on the off-chance it may help. (If it doesn't, then delete at will.) I don't really know which specs you need to see, but I'm using Windows 11 for baseline (Since I saw you discussing Linux above). Seeing the code I can immediately tell that there is some access issues with the folder which impedes its initialization, but beyond that I don't know what could be the issue. image

Moreover, I tried disabling and enabling the plugin through Penumbra, but it gives a different issue. image

Whether this is useful or not I don't know, and I know that plug-ins are very unstable right now, so I don't expect this to be fixed quickly. I just hope that maybe my input may help with something.

For what its worth, Material UI (the one from Aetherment) has been working fine even after the update, but I decided to delete it as a safety precaution in case anything gets outdated.

Stuff has been falsely flagged by AV's this patch for some reason, could be related to your AV's deleting stuff, and just a general fyi you dont need to delete UI Mods, they will work even when outdated they just wont show the missing textures. You dont need to do anything they will auto update via aetherment when they are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants