[vtkusers] X Error: BadWindow, vtk5.8.0, Qt4.6.2

John Platt jcplatt at dsl.pipex.com
Sat Apr 28 17:46:20 EDT 2012


Hi All,

My mistake. The QVTKWidget was being used as a parent to another widget 
hosted by the QDockWidget. Clint's debugging help was spot on. You can 
specify qt_x_errhandler as the function to break in.

Thanks for the help.

John.


----- Original Message ----- 
From: "Clinton Stimpson" <clinton at elemtech.com>
To: <vtkusers at vtk.org>
Sent: Thursday, April 26, 2012 10:44 PM
Subject: Re: [vtkusers] X Error: BadWindow, vtk5.8.0, Qt4.6.2


>
> You can mix debug and release of Qt or VTK on Linux and be just fine.
> To debug this, I would suggest you set a breakpoint in _XError() and run 
> your
> app with the -sync option.  QApplication will see the -sync, and set it up 
> so
> that every X call will be synchronized with the X server and errors 
> reported
> immediately.  It'll stop at the code that causes the error, instead of 
> some
> time later in some irrelevant code.
>
> Clint
>
> On Thursday, April 26, 2012 01:57:32 pm John Platt wrote:
>> Hi All,
>>
>> I haven't been able to make any progress on this. A earlier port using
>> vtk-5.4.2 gave no such errors. Is it likely to come from mixing release
>> vtk with debug Qt? Any help much appreciated.
>>
>> Thanks.
>>
>> John.
>>   ----- Original Message -----
>>   From: John Platt
>>   To: vtkusers
>>   Sent: Tuesday, April 24, 2012 9:15 PM
>>   Subject: [vtkusers] X Error: BadWindow, vtk5.8.0, Qt4.6.2
>>
>>
>>   Hi All,
>>
>>   I have ported a Qt app from Windows to Open SUSE 10.3. The main window
>> consists of a QDockWidget & QMdiArea which contains QVTKWidgets. When a
>> QVTKWidget is added, X Error: BadWindow messages are given but the app
>> continues to run without crashing. Is this luck or should I be worried! 
>> (I
>> am not a frequent Linux user).
>>
>>   Thanks for any help.
>>
>>   John.
>>
>>
>> ---------------------------------------------------------------------------
>> ---
>>
>>
>>   _______________________________________________
>>   Powered by www.kitware.com
>>
>>   Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>>   Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>>   Follow this link to subscribe/unsubscribe:
>>   http://www.vtk.org/mailman/listinfo/vtkusers
>
> -- 
> Clinton Stimpson
> Elemental Technologies, Inc
> Computational Simulation Software, LLC
> www.csimsoft.com
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 





More information about the vtkusers mailing list