[Qt-interest] OpenCV2 + Qt crashes on GUI applications

Albert Graells Rovira txandi at gmail.com
Tue Feb 2 11:32:51 CET 2010


Hello,

Thanks for your quick reply!

In the program I have attatched I am doing all the job on the same
thread (the GUI thread) and no GUI elements are passed to the 3rd part
library, only an image.

So, it seems that it should be something different...





2010/2/2 Valentin Heinitz <vheinitz at googlemail.com>:
> Hello,
>
> console but not GUI? You could check, if some GUI elements / QObjects from
> GUI thread are accessed directly from
> another thread (e.g. from 3dr part library). If so, consider forwarding your
> data via event queue or polling from GUI thread.
> Regards.
>
> Am 02.02.2010 09:17, schrieb Albert Graells Rovira:
>
> Hello,
>
> I have been using Qt and OpenCV for quite a long time. I have Qt
> application that runs without problems with OpenCV1.1, but it crashes
> using OpenCV2, more concretely when using libcv200 library; however,
> it does not crash when using libhighgui200.
>
> I am using Qt 4.6 (I have also tested older versions) on WinXP with
> MinGW (g++ 4.4.0) and the latest SVN version of OpenCV2 (I think it is
> 2655), compiled by myself in this environment, without doing any
> strange tricks apart from including a version of libVideoInput
> compiled with g++ 4.4.0.
>
> After testing for a while, I have seen that this behaviour only
> happens on GUI applications but not on console ones. Any idea of
> what's going on???
>
> I am attatching a tiny program that shows this strange problem.
>
>
> Thanks in advance,
>
>
>
> albert
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>



More information about the Qt-interest-old mailing list