You are not logged in.

#1 2013-10-31 09:56:09

user99292
Member
Registered: 2013-10-31
Posts: 1

OpenCV SEGFAULT when using imshow functions

Hello,

recently, when I run my OpenCV application on archlinux, I get a segfault when using  OpenCV's imshow() functions for displaying the video output. This still worked some weeks ago and I did not change my code since then.

The error is related to GTK+ which causes the segfault after OpenCV uses the gtk_init() function.

This is the stacktrace:
#0  0x00000000006328a0 in signal ()
#1  0x00007ffff1dff264 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#2  0x00007ffff1524427 in g_option_context_parse ()
   from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff1dff80e in gtk_parse_args ()
   from /usr/lib/libgtk-x11-2.0.so.0
#4  0x00007ffff1dff869 in gtk_init_check ()
   from /usr/lib/libgtk-x11-2.0.so.0
#5  0x00007ffff1dff899 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x00007ffff6a1fa38 in cvInitSystem ()
   from /usr/lib/libopencv_highgui.so.2.4
#7  0x00007ffff6a20163 in cvNamedWindow ()
   from /usr/lib/libopencv_highgui.so.2.4
#8  0x00007ffff6a20cfd in cvShowImage ()
   from /usr/lib/libopencv_highgui.so.2.4
#9  0x00007ffff6a1c7f7 in cv::imshow(std::string const&, cv::_InputArray const&) () from /usr/lib/libopencv_highgui.so.2.4
#10 0x00000000004187e0 in StereoMatrix::displayImages (this=0x7fffffffd6ff)
    at /home/user/mtdev/src/StereoMatrix.cpp:51
#11 0x000000000041861a in StereoMatrix::generateStereoMat (
    this=0x7fffffffd6ff, input=..., resizeMat=false)

I'm running the recent version of OpenCV from the repositories:
extra/opencv 2.4.6.1-3

Apart from that my system is also up-to-date.
Can anyone reproduce this error or has an idea what causes it?

Thanks

Offline

Board footer

Powered by FluxBB