Hocus Focus causes opencvsharp exception after image downloads
Just upgraded to 2.0BETA060, works beautifully. Installed hocus focus, after which i get the attached error following each image completing, so i dont see any. Uninstalled it and everything worked again. Reinstalled, error, uninstalled, success.
'Error
The type initializer for
‘OpenCvSharp.Internal.NativeMethods’ threw an exception.
Failure to prepare image for display: The type initializer for
'OpenCvSharp.Internal.NativeMethods' threw an exception.
Frustrating as I’d like to use this. I appreciate this might not be the place for this. Would discord be the place?
Comments (19)
-
-
reporter Hi Dale. No, since we last spoke I now have Win10 64-bit, and 64bit NINA.
-
Go ahead and toss the log file in here, perhaps it’ll help add some context to that error
-
reporter - attached 20220414-235331-2.0.0.2060.5216.log
<div class="preview-container wiki-content"><!-- loaded via ajax --></div> <div class="mask"></div> </div>
</div> </form>
-
reporter i think thats one that contains the error - should have looked there first as it points the blame quite squarely!
-
System.TypeInitializationException: The type initializer for 'OpenCvSharp.Internal.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'OpenCvSharpExtern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
You might want to try uninstalling the plugin, then installing it again. For some reason, a library it uses which is installed with it could not be found, indicating it’s missing.
-
reporter I tried that, and the error recurred, which is why i was so sure it was the plugin. i suppose i could try again but this hazy testing night has become unexpectedly good so im getting some good images, loathe to try anything just now. if you think its worth retrying i will. otherwise perhaps i should raise this on discord?
-
Hmm. The only thing I can think of that would interfere with this is antivirus software. AV software has been known the block the installation of DLLs
-
Yes, try talking to George (jokogeo) on Discord. In the interim, try disabling any 3rd party AV software and trying to reinstall the plugin. Windows Defender, the built-in AV system in Windows, generally doesn’t pull this kind of stuff but 3rd party AV software can pull such shenanigans
-
reporter ah ok, well thats worth a try. actually i havent installed any antivirus so i suppose i just have the default windows defender, or whatever it is. i could disable that presumably.
-
reporter and cheers Dale, appreciate your amazingly rapid response!
-
Can you share screenshots of the contents of “%LOCALAPPDATA%\NINA\Plugins”, as well as “%LOCALAPPDATA%\NINA\Plugins\Hocus Focus” and “%LOCALAPPDATA%\NINA\Plugins\Hocus Focus\dll”?
-
reporter Hi George, sorry for delay.
I tried disabling windows defendre and reinstalling, but nothing has changed. No antivirus software. Same error described above. Here are the folder contents you asked for.
Cheers
Nick
-
reporter sorry, attached one twice - heres the other.
-
reporter one other thing, i havent managed to activate windows 10 yet (i have the ‘go to settings to activate windows’ message at lower right) but this hasnt affected anythign else.
-
Nick, my best bet is that there is some Windows or C-runtime dependency in one of these dlls that is on most systems but not on yours. Figuring it out would be tricky and require me to run a debugger on your machine. Is this something you’d be comfortable with when we both have time?
I’d be following these instructions: https://docs.microsoft.com/en-us/archive/blogs/junfeng/debugging-loadlibrary-failures, and you could install https://www.microsoft.com/store/p/windbg/9pgjgd53tn86 ahead of time
-
reporter Hi George, yes I’d be happy with that. My scope laptop is actually on most of the time, so I could give you control via teamviewer or something, even if Im not there?
I’ll install that package in a sec.
cheers
Nick
-
Sure, that could work. Feel free to PM me the details on Discord (jokogeo) or email ghilios at gmail dot com
-
repo owner - changed status to closed
For plugin specific issues, please open an issue in their respective repository. Thanks.
- Log in to comment
Issues with plugins should really be discussed directly with the plugin author on Discord.
That said, are you running the 32bit version of NINA?