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

DevIL.dll DLL Not Found Exception #54

Open
Dragodraki opened this issue Oct 19, 2022 · 13 comments
Open

DevIL.dll DLL Not Found Exception #54

Dragodraki opened this issue Oct 19, 2022 · 13 comments

Comments

@Dragodraki
Copy link

Unfortunately vimage.exe can't display an image in my windows 11. The process runs in background but no image and no taskbar icon shows up executed with user isn't an administrator. Process can only be killed through task manager. I downloaded your software again and tried it also but with same result. When executing from account with is in group of administrators, then instead DLL-errors appear.
Build-In Framework (the native one) is according to registry 4.8 - so it should fit the prerequisite.
Compatibility settings doesn't change anything either.
([I hate Microsofts work for its huge execution limitations and bad menus recently!])

Do you have an idea how to fix it?

@Dragodraki
Copy link
Author

Add: with downloaded versions of DevIL.dll, csfml-window-2.dll and csfml-graphics-2.dll, static PNGs work, but not animated GIFs...

@Torrunt
Copy link
Owner

Torrunt commented Oct 20, 2022

I've been using Windows 11 for a while and haven't encountered any problems with vimage.

Not sure about the issue with a non-admin user. I've never tested as a non-admin user myself before, will need to test it sometime.

What are the exact error messages you are getting?

@Dragodraki
Copy link
Author

Here it is:

Screenshot 2022-10-21 122857

@Dragodraki
Copy link
Author

... but the file "DevIL.dll" is already present

@Torrunt
Copy link
Owner

Torrunt commented Oct 22, 2022

I did some googling and it seems like this issue might not have to due with that dll not being found; but rather one of it's dependencies.

I used this tool on vimage.exe and it does mention that it can't find ILU.dll which is related to DevIL. But vimage works fine on my PC so I'm not sure if that would be the issue itself.
image

On a side note; while researching I did found a possible replacement image library I might look into replacing DevIL with sometime.

@Dragodraki
Copy link
Author

Dragodraki commented Oct 22, 2022

DevIL.dll is not the problem only, but also sfmlnet-graphics-2.dll and csfml-window-2.dll. If you take another working solution of DevIL.dll the error complains about the seccond one and then after fix about the third one. After fixing all three DLLs from an external source vimage.exe will shut up but on my Windows 11 the images are really broken then (so I assume the DLLs don't fit 100 percent).
Maybe you can 'mix me a cocktail' of DLL files among the main program so it works in WIndows 11 too. I mean, I can continue searching but you'd far better know the dependencies, the code itself and possible solutions than me...

@Torrunt
Copy link
Owner

Torrunt commented Oct 22, 2022

I tried replacing the sfml dlls in the repo with the SFML.Net nuget package. There were some errors due to changes so I fixed them as well. master...sfml-nuget

See if this version works any better for you: vimage_version18.zip

I didn't change the DevIL.dll at all though.

@Dragodraki
Copy link
Author

Dragodraki commented Oct 24, 2022

Hmmm, can't see any difference with the current problem, though you definitely fixed some other issues (e.g. taskbar icon parameter works now).
But on my Windows 11 there's still the same error:

Screenshot 2022-10-23 144630

@Torrunt
Copy link
Owner

Torrunt commented Oct 29, 2022

I tried rebuilding the DevILNet.dll from source. 910a1d4

Give this version a go: vimage_version18b.zip

@Dragodraki
Copy link
Author

Thank you.
I tried this on Windows 11 and I'm sorry to say this, but the error still exist in version 18b:

Screenshot 2022-11-01 143524

@Dragodraki
Copy link
Author

Another thing I found out is: When you haven't installed a proper GPU driver, vimage displays all images either semi-transparent or not at all (depending on the color is behind the image) - as if you decrease opacity... Maybe it's an error that occurs on several graphic cards only, I don't know.
As soon GPU driver is installed, opacity of images from vimage become fixed.

@Torrunt
Copy link
Owner

Torrunt commented Nov 5, 2022

Still not sure why you're having problems with it finding DevIL.dll. I know it's not a Windows 11 problem as it works fine on my PC.

As a workaround I decided to add a new setting so you can enable/disable DevIL support. With this setting disabled; vimage will work even if there is no DevIL.dll file.
image

You should still be able to open all major image file formats without it such as: bmp, png, tga, jpg, gif, psd, hdr, pic, ico, svg, webp
DevIL is not really needed unless you want to view one of these niche file formats: cut, dds, doom, exr, jp2, lbm, mdl, mng, pal, pbm, pcd, pcx, pgm, ppm, psp, raw, sgi and tif

vimage_version18c.zip

@Dragodraki
Copy link
Author

Thank you very much for the update!

Without DevIL.dll it works (hooray)!
:)

With DevIL.dll the following message appears in Windows 11 (though the file exists):
Screenshot 2022-11-07 155929

@Torrunt Torrunt changed the title Not work in Windows 11 at all DevIL.dll DLL Not Found Exception Dec 12, 2022
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

2 participants