DlibDotNet: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
Windows 10 pro 64-bit (10.0, Build 17134) Intel® Core™ i5-8400 CPU @2.80ghz (6 CPUs), ~ 2.8ghz 24576 MB of RAM No separate graphics card
Microsoft Visual Studio Professional 2017 Version 15.9.3
dotnet core SDK 2.1.6
I publish my code, and I run it
Example code:
public static ShapePredictor _SP { get { if (_sp == null) { var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ShapeModel", "shape_predictor_5_face_landmarks.dat"); _sp = ShapePredictor.Deserialize(path); } return _sp; } }
I worked fine in the “Debug” directory and under “Release\netcoreapp2.1\publish”, but I copied all the files in publish to my desktop . It reported an error。 If necessary, I can send you a copy of my complete code.
This problem has been bothering me for a long time and I’m not sure if it’s a (C++/CLI and standard C++) problem.
- It would be nice to find out what the problem is and fix it.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (9 by maintainers)
FYI, you can build DlibDotNet.Native and DlibDotNet.Native.Dnn on system you want to let it run. Perhaps, it is easy. You can install development tools and latest cmake. Then you run BuildLinux.sh.
I was able to build and run the #80 program on CentOS 7.6.
Ok. It is not weird.
You may install libpng and need to update GLIBCXX.
You can refer https://stackoverflow.com/questions/43070900/version-glibcxx-3-4-22-not-found
After install and update,
It works fine!!!