Re: [wxVTK] GTK2 issue
Brought to you by:
malat
From: Wesley B. <wes...@gm...> - 2007-02-28 10:22:56
|
Thanks for your help, apollogies for the delay in replying I've been side tracked! >BTW Changing >WX_USE_GLCANVAS = 1 >into >WX_USE_GLCANVAS = 0 In my version of wxVTKRenderWindow.py that line isn't there, however adding the line doesn't seem to brake anything, but equally doesn't fix much! I did find the following at the top of the file: if wx.Platform == "__WXGTK__": import wx.glcanvas baseClass = wx.glcanvas.GLCanvas Commenting out these lines did get rid of the segmentation fault, however it did not fix the picker problem. It's still getting crazy coordinates which would place the mouse cursor at the top of the screen and a few offices to my right! I'm currently having a look to see if there are any RPMs avaliable of a more up to date version of wxPython/wxGTK. My software is the most up to date avaliable through FC5 software updater. Thanks again for the help, Wesley Brooks. Python 2.4.3 (#1, Oct 23 2006, 14:19:45) wxPython-2.6.3.2 wxGTK-2.6.3 VTK-5.0.2 On 03/02/07, Mathieu Malaterre <mat...@gm...> wrote: > On 2/3/07, Mathieu Malaterre <mat...@gm...> wrote: > > On 2/3/07, Wesley Brooks <wes...@gm...> wrote: > > > Dear Users, > > > > > > Is this the same problem I'm having? I guess I'm running the latest > > > version of GTK as I keep the machine updated frequently using the > > > package updater on KDE. I've just found this forum after posting the > > > messgage bellow on the vtk users forum: > > > > > > Dear Users, > > > > > > I'm trying to use wxVTKRenderWindow but not having much luck; > > > > > > >>>python wxVTKRenderWindow.py > > > > > > (python:5168): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion > > > `!GTK_WIDGET_REALIZED (widget)' failed > > > > Have you seen this bug for wxWidgets lib: > > > > https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1597527&group_id=9863 > > > > ... > > Hello. > > > > When use wxGlCanvas with wxGTK build, I have a gtk assertion : > > Gtk-CRITICAL **: gtk_widget_set_colormap: assertion > > `!GTK_WIDGET_REALIZED (widget)' failed > > > > The alone use of gtk_widget_set_colormap function (for wxGTK2 build) > > is src/gtk/glcanvas.cpp:339. > > In gtk documentation [1], it is specified that this function must be > > called before the widget is realized however in the wxGLCanvas::Create > > function, it calls wxWindow::Create (l325) which > > (src/gtk/window.cpp:2394) shows it. > > > > When I suppress gtk_widget_set_colormap call, assertion is not shoewd > > anymore and nothing is affected. > > ... > > > > Unfortunately nobody answered it. The real issue here is that API of > > wxGLCanvas really changed so I am not sure the bug really affect > > 2.8.0, thus I do not believe wx-deve team will be interested in > > solving it. My main goal here is really to try to move toward a common > > implementation for msw and gtk (by using wxWindow in both case instead > > of wxGLCanvas)....Hopefully solving all those weird issues. > > BTW Changing > WX_USE_GLCANVAS = 1 > into > WX_USE_GLCANVAS = 0 > > work around this issue. But as other people mentionned before, you'll > have some issue on the first render, and when moving a window on top > of the wxVTK window. > > :( > -M > |