2016-03-12 18:12:06 -0600 | commented question | "Assertion failed" with cv::merge, in release mode but not in debug (Win/x64) Ok, there might be some problem on my config then. I'll double check. If I remember well, the bug was not appearing if I was linking my release build against libopencvworld310d.lib, which is the debug one ... |
2016-03-12 17:18:56 -0600 | commented question | "Assertion failed" with cv::merge, in release mode but not in debug (Win/x64) Interesting. Are you compiling in release mode this code ? http://pastebin.com/CFLWrwfM Note that the part making the bug on my computer is commented out. You would have to uncomment line 30 and comment out line 33. |
2016-03-12 16:59:19 -0600 | received badge | ● Editor (source) |
2016-03-09 05:50:03 -0600 | commented question | "Assertion failed" with cv::merge, in release mode but not in debug (Win/x64) Yes, sorry, it is 3.1.0 and not 3.0.1. I checked the build and no, I'm not linking debug opencv to release build. That was indeed my first thought. My config is win/x64/ocv3.1/no ocl. |
2016-03-09 00:56:57 -0600 | asked a question | "Assertion failed" with cv::merge, in release mode but not in debug (Win/x64) Hi, On Visual studio, I am getting an Assertion failed error linked to the use of the cv::merge function. The error is as following: This is a runtime error that it is happening only in release mode, with the code running nicely in debug mode. I am compiling this using Visual Studio 2012, with OpenCV 3.1.0 that I compiled myself from source. The error is happening when trying to merge 3 channels back into a RGB image, let's say something like: Looking at the OpenCV source code, I actually found that the function that is called is in modules/core/src/convert.cpp, line 341: It looks to me like the line Looking at this problem, what I see is a rather unusual problem but triggering a bug in a consistent manner. I have found and posted a workaround here, but should I make a ticket on GitHub? Or is there some problem in my simple code that I don't understand and is causing the bug? FYI, a full code example is here: http://pastebin.com/CFLWrwfM |