cv_bridge segmentation fault OpenCV 3.0
Hello everybody, I have compiled and installed from source OpenCV 3.0 and the project I had now throws a segmentation fault error. I tracked down the callback that causes it
void imageCallback(const sensor_msgs::ImageConstPtr &msg){
cv_bridge::CvImagePtr cv_image;
cv_image = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::RGB8);
(cv_image->image).copyTo(frame_);
}
It seems that cv_bridge has a problem with the new version of the library.
For this specific project I can use OpenCV 2.x without any problem, however for other projects (both ROS and non-ROS) I have to use OpenCV 3.0.
How can I solve the problem?