Error Debug Output for namedWindow call

asked 2017-02-20 21:49:43 -0600

updated 2017-02-20 22:46:35 -0600

Hi there,

I'm just learning OpenCV. I downloaded it off github and compiled. (I'm running Ubuntu). I followed the instructions here: docs.opencv.org/3.2.0/d7/d9f/tutorial_linux_install.html

Everything compiled and installed without issue. Next I tried the simple DisplayImage tutorial: docs.opencv.org/3.2.0/db/df5/tutorial_linux_gcc_cmake.html

Compiled fine, runs, and displays an image. However there is one issue: when running there is some error debug output at the command line:

john@john-desktop ~/DisplayImage/build $ ./DisplayImage lena.jpeg 

(DisplayImage:9277): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(DisplayImage:9277): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

I went through the code in my DisplayImage.cpp file and tracked it down to this line:

namedWindow("Display Image", WINDOW_AUTOSIZE );

When this line is commented out, there is no error output.

I'm not sure why this call is a problem... is there perhaps a dependency I'm missing? I have no idea here. Not sure what the GLib-GObject is. Any help you can provide would be appreciated! Thanks!

Edit: I did some searching around and it looks like this error might be systemic in Ubuntu and unrelated to OpenCV: bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1582496

edit retag flag offensive close merge delete

Comments

Its simply an issue embedded in Ubuntu, so nothing to worry about.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-21 03:33:56 -0600 )edit