这大约是我试图解决我的问题的一周,我真的需要帮助。我希望有人能发现我的设置有什么问题。
(我是法国人,所以对于任何英语错误我深表歉意)
语境
我有一个由 OpenFace 开发的 Visual Studio 项目,OpenFace 是一个免费的开源库,可在该地址下载: https: //github.com/TadasBaltrusaitis/OpenFace。“开发自”是因为该项目仅使用 OpenFace 的代码。我确切地说该项目不是我做的,我是从私人存储库中签出的。
问题
我的项目构建了一个可执行文件,但未运行,在进入我的程序的入口点之前,被第 223 行文件 exe_common.inl (不知道这个文件是什么)处的非法指令停止了(cout << " " << main() 函数开头的 endl 未执行)。
这是有罪线:
__scrt_current_native_startup_state = __scrt_native_startup_state::initialized;
Run Code Online (Sandbox Code Playgroud)
这里是该断点处的堆栈跟踪:
CamFeaturesExtractor_Affich.exe!dlib::get_global_clock(void)
CamFeaturesExtractor_Affich.exe!00007ff63493114e()
ucrtbase.dll!_initterm()
CamFeaturesExtractor_Affich.exe!__scrt_common_main_seh() line 223
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()
Run Code Online (Sandbox Code Playgroud)
这里是确切的消息异常:
Unhandled exception at 0x00007FF63499C5B7 in CamFeaturesExtractor_Affich.exe: 0xC000001D: Illegal Instruction.
Run Code Online (Sandbox Code Playgroud)
我尝试过的
这个问题不会出现在一些较新的计算机上(请检查下面的我的规格),所以我的第一个猜测是这是一个硬件问题。Intel Cord Duo I5(与我的计算机型号相同)上不会触发异常。这是我的规格:
Edition : Windows 10 Professionel
Version : 1511 …Run Code Online (Sandbox Code Playgroud)