VelodyneCapture icon indicating copy to clipboard operation
VelodyneCapture copied to clipboard

OpenCV viz crashes once execution starts in VS2015

Open kelray opened this issue 6 years ago • 3 comments

Hello Tsukasa,

I'm encountering an issue with the "Viewer" example when compiling it with Visual Studio 2015 (x64), the executable crashes with this message: abort_issue

After some code tracing, the issue appears to be in these two lines of code: cv::Mat cloudMat = cv::Mat(static_cast<int>(buffer.size()), 1, CV_32FC3, &buffer[0]); cv::viz::WCloud cloud(cloudMat, viz::Color::white());

But haven't had any luck resolving the issue, have you faced this issue before?.

Thanks, Karim

kelray avatar Oct 27 '18 00:10 kelray

It is different from the original code. The original code is following.

cv::Mat cloudMat = cv::Mat( static_cast<int>( buffer.size() ), 1, CV_32FC3, &buffer[0] );
cv::viz::WCloud cloud( cloudMat );

Also, You specify white (viz::Color::white())) but display of attached image is green. Why? At the least, You need to tell the OpenCV version.

UnaNancyOwen avatar Oct 27 '18 09:10 UnaNancyOwen

You are right, I modified this part after I took the screenshot, however that doesn't change anything, even if I remove the color option still it crashes, I tried all options. I'm using OpenCV v.3.4.3.

kelray avatar Oct 27 '18 18:10 kelray

Any luck with this issue?, I had very little progress trying to solve it, so, now it doesn't crash when I replaced viewer.spinOnce(); with viewer.spin();, However the application doesn't loop and stuck at the first frame constructed, this is a screenshot: opencv_viz_sample I tried to print out the values of x, y and z, it stops after 31935 readings (the pcap file has 8305 data points. Just in case you are wondering what is the VTK version I have used when building Viz, it's v8.1.

kelray avatar Nov 20 '18 23:11 kelray