I don't know if the following will help in tracking this down but I'm developing code in openCV and sometimes see this. It happens after creating a 'namedwindow()'. If the new window isn't loaded with an image, it seems to time out and give the error. I was investigating some timing issues in my code and decided to put a waitkey() delay to allow window generation to finish before doing the timing checks and I started getting the "G_IS_OBJECT (object)" failure. I got rid of it by inserting an imshow() for each new window and the problem disappears.
The following snippet may help, if the three lines after the comment are removed then the report occurs three times
I don't know if the following will help in tracking this down but I'm developing code in openCV and sometimes see this. It happens after creating a 'namedwindow()'. If the new window isn't loaded with an image, it seems to time out and give the error. I was investigating some timing issues in my code and decided to put a waitkey() delay to allow window generation to finish before doing the timing checks and I started getting the "G_IS_OBJECT (object)" failure. I got rid of it by inserting an imshow() for each new window and the problem disappears.
The following snippet may help, if the three lines after the comment are removed then the report occurs three times
namedWindow( "Input- Gray", WINDOW_NORMAL); r("StdDevVal" , "Input- Gray",& SDPosn, 255, SDTBEvent); r("MeanVal" , "Input- Gray",& MeanPosn, 255, MeanEvent); r("Deriv" , "Input- Gray",& DerivPosn, 255, DerivEvent); "SDMasked" , WINDOW_NORMAL); "MeanMasked" , WINDOW_NORMAL); "DerivMasked" , WINDOW_NORMAL); "Input- Gray", M_gray);
createTrackba
createTrackba
createTrackba
namedWindow(
namedWindow(
namedWindow(
imshow(
// the following stops the reporting of :- CRITICAL **: g_object_ unref:assertion 'G_IS_OBJECT (object)' failed
//(Input:4135): GLib-GObject-
// seems to be associated with creating a window and not showing an image!
imshow( "SDMasked" , M_gray); "MeanMasked" , M_gray); "DerivMasked" , M_gray);
imshow(
imshow(
if( cv::waitKey(0) != 0x20 ) // wait for windows to settle
.....