OpenCV 尝试使用 RELEASE 构建读取视频时崩溃
作为
VideoCapture vcc("someDir/someFile.avi");
我的代码(OpenCV 2.x、Win7、VS2010)中的第一行,RELEASE 的执行崩溃了,但 DEBUG 工作正常……尽管慢如预期。它只会在尝试读取视频文件时崩溃,这意味着将字符串传递给构造函数。
错误看起来像这样:
someName.exe 中 0x00905a4d 处未处理的异常:0xC0000005:访问冲突。
到目前为止我已经尝试过:
- 来自SVN的多个OpenCV2.x版本
- 不同的计算机
- 不同的视频文件
- 有或没有CUDA,TBB,Eigen,...
我什至创建了一个新项目,其中包含这一行..仍然在发布时崩溃仅有的。
Using
VideoCapture vcc("someDir/someFile.avi");
as the first line in my code (OpenCV 2.x, Win7, VS2010), the execution for RELEASE crashes but the DEBUG works fine .. as slow as expected though. It only crashes when trying to read a video file which means passing a string to the constructor.
The error looks like this:
Unhandled exception at 0x00905a4d in someName.exe: 0xC0000005: Access violation.
What I've tried so far:
- Multiple OpenCV2.x versions from SVN
- Different computer
- Different video files
- With or without CUDA, TBB, Eigen, ...
I even created a new project with this single line in it .. still crashes on RELEASE only.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧..两周后解决了我自己的问题。
我在(子)项目 opencv_ffmpeg(在解决方案 OpenCV 中)中将项目选项“带有调试信息”更改为 YES 以进行 RELEASE 构建。
有趣的是,它现在适用于运行时的“有”和“无调试”……这两者以前都不起作用。
Alright .. Solved my own problem after two weeks.
I changed the project option "With debugging information" to YES in (sub)project opencv_ffmpeg (in solution OpenCV) for the RELEASE build.
Interestingly it works now for "with" and "without debugging" when running .. which both didn't work before.
这是一个错误 - 修复是 https://code.ros.org/trac/opencv/ticket /752
It's a bug - fix is https://code.ros.org/trac/opencv/ticket/752