Thread: [wxVTK] wxVTK and wxWidgets 2.8
Brought to you by:
malat
From: Deli G. \(David\) <del...@du...> - 2008-01-02 10:51:57
|
Hi, I realized on the wxVTK web page it was claimed not to support wxWidgets 2.8 for the moment. However, I did use the wxVTKRenderWindowInteractor.cxx with my wxWidget 2.8 application. It seemed to work ok, although I haven't tested it thoroughly. So I wonder if it actually supports 2.8 now, or if not, is there anything I should be careful with? Many thanks David |
From: Nigel N. <nN...@au...> - 2008-01-02 11:04:24
|
wxVtk and wxAUI/wxWidgets 2.8.7 are working well here Win32(XP). Is this a good time to update the wxVtk samples to show off some current wx features? The floating/docking panels of wxAUI are very impressive. Any reports from Mac (cocoa/carbon) users? Nigel -----Original Message----- From: wxv...@li... On Behalf Of Deli Geng (David) Sent: Wednesday, 2 January 2008 9:51 PM To: wxv...@li... Subject: [wxVTK] wxVTK and wxWidgets 2.8 Hi, I realized on the wxVTK web page it was claimed not to support wxWidgets 2.8= for the moment. However, I did use the wxVTKRenderWindowInteractor.cxx with= my wxWidget 2.8 application. It seemed to work ok, although I haven't teste= d it thoroughly. So I wonder if it actually supports 2.8 now, or if not, is= there anything I should be careful with? Many thanks David ----------------------------------------------------------------------------= --------- Keep up to date with what's happening in Australian sport visit http://www.a= usport.gov.au This message is intended for the addressee named and may contain confidentia= l and privileged information. If you are not the intended recipient please n= ote that any form of distribution, copying or use of this communication or t= he information in it is strictly prohibited and may be unlawful. If you rece= ive this message in error, please delete it and notify the sender. ----------------------------------------------------------------------------= --------- |
From: Marco <tsu...@si...> - 2008-01-02 11:25:42
|
Deli Geng (David) ha scritto: > Hi, > > > > I realized on the wxVTK web page it was claimed not to support wxWidgets > 2.8 for the moment. However, I did use the > wxVTKRenderWindowInteractor.cxx with my wxWidget 2.8 application. It > seemed to work ok, although I haven’t tested it thoroughly. So I wonder > if it actually supports 2.8 now, or if not, is there anything I should > be careful with? Hi, I tried the wxVTK samples with wxWidgets 2.8.4 on Ubuntu, it works but there is something strange...the cone does not look as it should, something like the surface normals are not oriented the right way. Anyone experiencing this behaviour? Cheers, Marco |
From: Marco <tsu...@si...> - 2008-01-02 11:28:48
|
Marco ha scritto: > Deli Geng (David) ha scritto: >> Hi, >> >> >> >> I realized on the wxVTK web page it was claimed not to support wxWidgets >> 2.8 for the moment. However, I did use the >> wxVTKRenderWindowInteractor.cxx with my wxWidget 2.8 application. It >> seemed to work ok, although I haven’t tested it thoroughly. So I wonder >> if it actually supports 2.8 now, or if not, is there anything I should >> be careful with? > > > Hi, > > I tried the wxVTK samples with wxWidgets 2.8.4 on Ubuntu, it works but > there is something strange...the cone does not look as it should, > something like the surface normals are not oriented the right way. > > Anyone experiencing this behaviour? Sorry, another small thing, the rendering windows do not refresh automatically, I have to click on them. Bye, Marco |
From: Sander N. <nie...@st...> - 2008-01-02 12:26:05
|
You might want to have a look at the patch I submitted in August last =20= year: = http://sourceforge.net/mailarchive/message.php?msg_name=3D627122B2-45B7-4C= B2-A162-E942858EB422%40stcorp.nl Especially the removal of the wxCHECK_VERSION(2, 8, 0) check for the =20 define of USE_WXGLCANVAS. Best regards, Sander Niemeijer On 2 jan 2008, at 12:28, Marco wrote: > Marco ha scritto: >> Deli Geng (David) ha scritto: >>> Hi, >>> >>> >>> >>> I realized on the wxVTK web page it was claimed not to support =20 >>> wxWidgets >>> 2.8 for the moment. However, I did use the >>> wxVTKRenderWindowInteractor.cxx with my wxWidget 2.8 application. It >>> seemed to work ok, although I haven=92t tested it thoroughly. So I =20= >>> wonder >>> if it actually supports 2.8 now, or if not, is there anything I =20 >>> should >>> be careful with? >> >> >> Hi, >> >> I tried the wxVTK samples with wxWidgets 2.8.4 on Ubuntu, it works =20= >> but >> there is something strange...the cone does not look as it should, >> something like the surface normals are not oriented the right way. >> >> Anyone experiencing this behaviour? > > Sorry, > > another small thing, > > the rendering windows do not refresh automatically, I have to click on > them. > > Bye, > Marco > > > = ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users |
From: Marco <tsu...@si...> - 2008-01-02 13:36:53
|
Great, your patch solved both the problems. Is it going to be merged with the official wxVTK? The patch solved this two problems with wxGTK 2.8, but now, with wxGTK 2.8 I have the same problem I have using wxGTK 2.6 (as I wrote on another thread). Closing the window the application crashes trying to delete the wxVTKRenderWindowInteractor. It seems the use of wxglcanvas makes the application not to free the resources correctly on my system. Any idea? Is there anyone using wxVTK on Ubuntu 7.10? Many Thanks, Marco Sander Niemeijer ha scritto: > You might want to have a look at the patch I submitted in August last year: > http://sourceforge.net/mailarchive/message.php?msg_name=627122B2-45B7-4CB2-A162-E942858EB422%40stcorp.nl > > > Especially the removal of the wxCHECK_VERSION(2, 8, 0) check for the > define of USE_WXGLCANVAS. > > Best regards, > Sander Niemeijer > > On 2 jan 2008, at 12:28, Marco wrote: > >> Marco ha scritto: >>> Deli Geng (David) ha scritto: >>>> Hi, >>>> >>>> >>>> >>>> I realized on the wxVTK web page it was claimed not to support >>>> wxWidgets >>>> 2.8 for the moment. However, I did use the >>>> wxVTKRenderWindowInteractor.cxx with my wxWidget 2.8 application. It >>>> seemed to work ok, although I haven’t tested it thoroughly. So I wonder >>>> if it actually supports 2.8 now, or if not, is there anything I should >>>> be careful with? >>> >>> >>> Hi, >>> >>> I tried the wxVTK samples with wxWidgets 2.8.4 on Ubuntu, it works but >>> there is something strange...the cone does not look as it should, >>> something like the surface normals are not oriented the right way. >>> >>> Anyone experiencing this behaviour? >> >> Sorry, >> >> another small thing, >> >> the rendering windows do not refresh automatically, I have to click on >> them. >> >> Bye, >> Marco |
From: Mathieu M. <mat...@gm...> - 2008-01-02 13:55:05
|
In fact the main dev on wxVTK is a lazy bastard. Shame on you Mathieu ! You should not rely on release being stable, and instead always try the version from CVS... sorry :( Good luck -Mathieu Ps: there is AFAIK only one patch that did not make it -yet- into wxVTK, and this has to do with a smoother handling of the mouse wheel On Jan 2, 2008 2:35 PM, Marco <tsu...@si...> wrote: > Great, > > your patch solved both the problems. Is it going to be merged with the > official wxVTK? > > The patch solved this two problems with wxGTK 2.8, but now, with wxGTK > 2.8 I have the same problem I have using wxGTK 2.6 (as I wrote on > another thread). Closing the window the application crashes trying to > delete the wxVTKRenderWindowInteractor. It seems the use of wxglcanvas > makes the application not to free the resources correctly on my system. > > Any idea? > > Is there anyone using wxVTK on Ubuntu 7.10? > > Many Thanks, > Marco > > > > Sander Niemeijer ha scritto: > > > You might want to have a look at the patch I submitted in August last year: > > http://sourceforge.net/mailarchive/message.php?msg_name=627122B2-45B7-4CB2-A162-E942858EB422%40stcorp.nl > > > > > > Especially the removal of the wxCHECK_VERSION(2, 8, 0) check for the > > define of USE_WXGLCANVAS. > > > > Best regards, > > Sander Niemeijer > > > > On 2 jan 2008, at 12:28, Marco wrote: > > > >> Marco ha scritto: > >>> Deli Geng (David) ha scritto: > >>>> Hi, > >>>> > >>>> > >>>> > >>>> I realized on the wxVTK web page it was claimed not to support > >>>> wxWidgets > >>>> 2.8 for the moment. However, I did use the > >>>> wxVTKRenderWindowInteractor.cxx with my wxWidget 2.8 application. It > >>>> seemed to work ok, although I haven't tested it thoroughly. So I wonder > >>>> if it actually supports 2.8 now, or if not, is there anything I should > >>>> be careful with? > >>> > >>> > >>> Hi, > >>> > >>> I tried the wxVTK samples with wxWidgets 2.8.4 on Ubuntu, it works but > >>> there is something strange...the cone does not look as it should, > >>> something like the surface normals are not oriented the right way. > >>> > >>> Anyone experiencing this behaviour? > >> > >> Sorry, > >> > >> another small thing, > >> > >> the rendering windows do not refresh automatically, I have to click on > >> them. > >> > >> Bye, > >> Marco > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > -- Mathieu |
From: Sander N. <nie...@st...> - 2008-01-02 14:09:25
|
On 2 jan 2008, at 14:35, Marco wrote: > your patch solved both the problems. Is it going to be merged with the > official wxVTK? It would be nice, but this is up to Mathieu. Furthermore, I haven't tested my patch with older versions of wxWidgets/VTK, so I don't know if it breaks anything there. It may be wise to test it first. > The patch solved this two problems with wxGTK 2.8, but now, with wxGTK > 2.8 I have the same problem I have using wxGTK 2.6 (as I wrote on > another thread). Closing the window the application crashes trying to > delete the wxVTKRenderWindowInteractor. It seems the use of wxglcanvas > makes the application not to free the resources correctly on my > system. > > Any idea? In the destructor of our wxVTKRenderWindowInteractor derived classes we use the following: ----- SetRenderWindow(NULL); SetInteractorStyle(NULL); // Normally one has to remove a wxVTKRenderWindowInteractor object using 'window->Delete()', // but we also would like 'delete window' to work (which is needed for e.g. Python wrapping) // This should be safe as long as the reference count is 1 (i.e. no other objects have a reference to this object) // The problem is that we can't use Delete() or Unregister(NULL) here, because that would recursively invoke the // destructor. Therefore, we just explicitly decrease the reference count by 1 if it was 1 (this way you will still // get a warning from VTK if the reference count afterwards was not 0). if (GetReferenceCount() == 1) { SetReferenceCount(0); } ----- However, the samples already seem to use Delete() instead of 'delete', so perhaps setting the renderwindow and interactorstyle to NULL before destruction can solve the problem? > Is there anyone using wxVTK on Ubuntu 7.10? We are ;) If you want to see our app (and sources), just download the VISAN package from our website: http://www.stcorp.nl/beat We have a version for Linux, Windows, and Mac OS X. Best regards, Sander |
From: Mathieu M. <mat...@gm...> - 2008-01-02 14:13:17
|
On Jan 2, 2008 3:09 PM, Sander Niemeijer <nie...@st...> wrote: > > On 2 jan 2008, at 14:35, Marco wrote: > > > your patch solved both the problems. Is it going to be merged with the > > official wxVTK? > > It would be nice, but this is up to Mathieu. Furthermore, I haven't > tested my patch with older versions of wxWidgets/VTK, so I don't know > if it breaks anything there. It may be wise to test it first. Sander/anybody do you have a sourceforge account ? Would anyone like to volonteer in some basic dev work on wxVTK ? It is getting harder and harder to find time to work in this project for me. Thanks, -- Mathieu |
From: Sander N. <nie...@st...> - 2008-01-02 14:47:32
|
Dear Mathieu, I am afraid I also have too many other obligations that eat up my time to take on this task. I can provide you with our updates and patches based on the way we use wxVTK in our own application (as I have done in the past), but can not provide much more at this point. Best regards, Sander On 2 jan 2008, at 15:13, Mathieu Malaterre wrote: > On Jan 2, 2008 3:09 PM, Sander Niemeijer <nie...@st...> wrote: >> >> On 2 jan 2008, at 14:35, Marco wrote: >> >>> your patch solved both the problems. Is it going to be merged with >>> the >>> official wxVTK? >> >> It would be nice, but this is up to Mathieu. Furthermore, I haven't >> tested my patch with older versions of wxWidgets/VTK, so I don't know >> if it breaks anything there. It may be wise to test it first. > > Sander/anybody do you have a sourceforge account ? Would anyone like > to volonteer in some basic dev work on wxVTK ? It is getting harder > and harder to find time to work in this project for me. > > Thanks, > -- > Mathieu > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users |
From: Marco <tsu...@si...> - 2008-01-02 15:45:15
|
Sander Niemeijer ha scritto: > > On 2 jan 2008, at 14:35, Marco wrote: > >> The patch solved this two problems with wxGTK 2.8, but now, with wxGTK >> 2.8 I have the same problem I have using wxGTK 2.6 (as I wrote on >> another thread). Closing the window the application crashes trying to >> delete the wxVTKRenderWindowInteractor. It seems the use of wxglcanvas >> makes the application not to free the resources correctly on my system. >> >> Any idea? > > In the destructor of our wxVTKRenderWindowInteractor derived classes we > use the following: > ----- > SetRenderWindow(NULL); > SetInteractorStyle(NULL); [snip] > ----- > > However, the samples already seem to use Delete() instead of 'delete', > so perhaps setting the renderwindow and interactorstyle to NULL before > destruction can solve the problem? It doesn't:( Do the wxVTK samples work on your system linking against the system libvtk5 and libwxgtk2.6 or libwxgtk2.8? this is my status: with wxGTK 2.6 the visualization is ok but the application crashes when I close the window; with wxGTK 2.8 *without* your patches I have visualization problems (the ones I described in my previous emails) but the application does not crash; with wxGTK 2.8 *with* your patches the visualization is ok but the application crashes as with wxGTK 2.6; Thanks a lot, Marco |
From: Mathieu M. <mat...@gm...> - 2008-01-02 15:47:36
|
On Jan 2, 2008 4:44 PM, Marco <tsu...@si...> wrote: > Sander Niemeijer ha scritto: > > > > On 2 jan 2008, at 14:35, Marco wrote: > > > >> The patch solved this two problems with wxGTK 2.8, but now, with wxGTK > >> 2.8 I have the same problem I have using wxGTK 2.6 (as I wrote on > >> another thread). Closing the window the application crashes trying to > >> delete the wxVTKRenderWindowInteractor. It seems the use of wxglcanvas > >> makes the application not to free the resources correctly on my system. > >> > >> Any idea? > > > > In the destructor of our wxVTKRenderWindowInteractor derived classes we > > use the following: > > ----- > > SetRenderWindow(NULL); > > SetInteractorStyle(NULL); > > [snip] > > > ----- > > > > However, the samples already seem to use Delete() instead of 'delete', > > so perhaps setting the renderwindow and interactorstyle to NULL before > > destruction can solve the problem? > > > It doesn't:( > > Do the wxVTK samples work on your system linking against the system > libvtk5 and libwxgtk2.6 or libwxgtk2.8? > > this is my status: > > with wxGTK 2.6 the visualization is ok but the application crashes when > I close the window; > > with wxGTK 2.8 *without* your patches I have visualization problems (the > ones I described in my previous emails) but the application does not > crash; > > with wxGTK 2.8 *with* your patches the visualization is ok but the > application crashes as with wxGTK 2.6; Run your app (in debug -g) through valgrind -v and send the output. Thanks, -- Mathieu |
From: Marco <tsu...@si...> - 2008-01-02 15:59:51
Attachments:
wxSample.val.out.gz
|
Mathieu Malaterre ha scritto: > On Jan 2, 2008 4:44 PM, Marco <tsu...@si...> wrote: [snip] >> this is my status: >> >> with wxGTK 2.6 the visualization is ok but the application crashes when >> I close the window; >> >> with wxGTK 2.8 *without* your patches I have visualization problems (the >> ones I described in my previous emails) but the application does not >> crash; >> >> with wxGTK 2.8 *with* your patches the visualization is ok but the >> application crashes as with wxGTK 2.6; > > > Run your app (in debug -g) through valgrind -v and send the output. > > Thanks, The app is your wxSample sample application. The output is attached. Thank you, Marco |
From: Mathieu M. <mat...@gm...> - 2008-01-02 16:11:30
|
On Jan 2, 2008 4:59 PM, Marco <tsu...@si...> wrote: > Mathieu Malaterre ha scritto: > > On Jan 2, 2008 4:44 PM, Marco <tsu...@si...> wrote: > > [snip] > > >> this is my status: > >> > >> with wxGTK 2.6 the visualization is ok but the application crashes when > >> I close the window; > >> > >> with wxGTK 2.8 *without* your patches I have visualization problems (the > >> ones I described in my previous emails) but the application does not > >> crash; > >> > >> with wxGTK 2.8 *with* your patches the visualization is ok but the > >> application crashes as with wxGTK 2.6; > > > > > > Run your app (in debug -g) through valgrind -v and send the output. > > > > Thanks, > > The app is your wxSample sample application. The output is attached. You have pages after pages of issues with your Intel OpenGL-DRI and X11. You need to find someone that is either able to help you: 1. Reinstall your hardware accelerated graphic driver, or whatever needs to be done to fix your xorg.conf 2. find a way to use software accelerated OpenGL (if ubuntu is like debian, this is simply a matter of installing mesa and remove your intel specific package). On ATI this is simply a matter of setting the proper env variable... I don't like all those issues reported against invalid read in wxGTK either. The code is bad, but there is way too much stuff reported by valgrind, send that to the wx-users list. That's all I can do... -- Mathieu |
From: Marco <tsu...@si...> - 2008-01-02 17:00:56
|
Mathieu Malaterre ha scritto: > You have pages after pages of issues with your Intel OpenGL-DRI and > X11. You need to find someone that is either able to help you: > > 1. Reinstall your hardware accelerated graphic driver, or whatever > needs to be done to fix your xorg.conf > 2. find a way to use software accelerated OpenGL (if ubuntu is like > debian, this is simply a matter of installing mesa and remove your > intel specific package). On ATI this is simply a matter of setting the > proper env variable... > > I don't like all those issues reported against invalid read in wxGTK > either. The code is bad, but there is way too much stuff reported by > valgrind, send that to the wx-users list. > > That's all I can do... Thank you anyway:) Marco P.S. |
From: Sander N. <nie...@st...> - 2008-01-04 13:53:18
|
I had some offline discussion with Marco on the topic. This provided some insights that I would like to share with the list: The problem that Marco was seeing is something that we at our company have been able to reproduce with our own wxVTK based application. The crash after closing a window seems to happen with Ubuntu 7 (and Debian Unstable (sid)), but not with earlier Ubuntu/Debian releases. The Ubuntu 7 machine of Marco has a "Intel Corporation Mobile 945GM/ GMS, 943/940GML Express Integrated Graphics Controller" driver while our Ubuntu 7 machine uses a Matrox MGA G550 AGP card, so it is therefore most likely not a graphics driver issue. The interesting thing is that I found that installing the wxVTK application on our Ubuntu 7 machine, but running the application remote (using ssh + X11) from an Ubuntu 6 client machine did not trigger the crash. The other way around (install on Ubuntu 6 and run remote from Ubuntu 7 client) also does not result in a crash. However, trying to connect via ssh + X11 from the Ubuntu 7 machine to itself still shows the crash. Since Ubuntu 7 is using GTK 2.12, I was wondering whether it could be this specific GTK version that is causing troubles. Is there anyone on the list that has a non-debian based distribution with this specific GTK version (such as Fedora 8) that can test whether the crash appears on such a system as well? Best regards, Sander On 2 jan 2008, at 18:00, Marco wrote: > Mathieu Malaterre ha scritto: >> You have pages after pages of issues with your Intel OpenGL-DRI and >> X11. You need to find someone that is either able to help you: >> >> 1. Reinstall your hardware accelerated graphic driver, or whatever >> needs to be done to fix your xorg.conf >> 2. find a way to use software accelerated OpenGL (if ubuntu is like >> debian, this is simply a matter of installing mesa and remove your >> intel specific package). On ATI this is simply a matter of setting >> the >> proper env variable... >> >> I don't like all those issues reported against invalid read in wxGTK >> either. The code is bad, but there is way too much stuff reported by >> valgrind, send that to the wx-users list. >> >> That's all I can do... > > Thank you anyway:) > Marco > > P.S. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users |