Thread: [wxVTK] WindowRemap not implemented (was Re: Problems on Mac OS 10.5 and wxWidgets 2.8.7)
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2008-08-15 08:41:26
|
Hi Doug, Alright finally some progress ! Don't forget to send me the patch in the end :) On Fri, Aug 15, 2008 at 12:04 AM, Doug McCorkle <mc...@ia...> wrote: > I got everything built now. I just told cmake to use the 10.5 sdk not the > 10.4. Anyway, I now get this when running a sample: > > leonidas:build mccdo$ > ./wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget > ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/vtkVolume16Reader.cxx, > line 355 > vtkVolume16Reader (0x3571a00): Can't find file: > ../../../../VTKData/Data/headsq/quarter.1 I do not think I implemented the -D command line option, so you have to do: export VTK_DATA_ROOT=/Volumes/data/VE_Suite_Deps/VTK_new/VTKData If you do not have VTKData, download it from the vtk.org page (you can do it from CVS command line by replace VTK with VTKData) > Warning: In > /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/vtkCocoaRenderWindow.h, > line 138 > vtkCocoaRenderWindow (0x35716c0): SetNextWindowId not implemented > (WindowRemap not implemented). ouch ! > Warning: In > /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/vtkCocoaRenderWindow.mm, > line 813 > vtkCocoaRenderWindow (0x35716c0): Can't remap the window. ouch 2 ! > 2008-08-14 17:01:02.903 wxImagePlaneWidget[47823:10b] invalid drawable > 2008-08-14 17:01:02.938 wxImagePlaneWidget[47823:10b] invalid drawable > ERROR: In > /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/vtkInteractorStyle.cxx, > line 392 > vtkInteractorStyleJoystickCamera (0x3567600): Timer start failed I think David Cole fixed this 2 year old bug yesterday. One way to know would be to update your copy of VTK and rebuild. If you are using VTK 5.2 the patch will be merged in a couple of day. <...> > And I see two windows which does not seem correct. Alright so this leave us with one issue the WindowRemap not implemented for Cocoa. But technically this is not required. So I am not sure how this is happening. If you add let say an 'abort()' call on line 742: //this means the user has reparented us; let's adapt to the abort(); If you recompile+rerun, if you hit this abort, this is bad news, it means the wxVTK did not work as expected. The way it was designed is that the function GetHandleHack() cannot be called too early, but only after the first OnPaint event. Check wxVTK::OnPaint and print the value of Handle at the end of the function. As usual send me the output. -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-15 17:50:01
|
On Aug 15, 2008, at 3:41 AM, Mathieu Malaterre wrote: > Hi Doug, > > Alright finally some progress ! Don't forget to send me the patch in > the end :) > > On Fri, Aug 15, 2008 at 12:04 AM, Doug McCorkle <mc...@ia...> > wrote: >> I got everything built now. I just told cmake to use the 10.5 sdk >> not the >> 10.4. Anyway, I now get this when running a sample: >> >> leonidas:build mccdo$ >> ./wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget >> ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ >> vtkVolume16Reader.cxx, >> line 355 >> vtkVolume16Reader (0x3571a00): Can't find file: >> ../../../../VTKData/Data/headsq/quarter.1 > > I do not think I implemented the -D command line option, so you have > to do: > > export VTK_DATA_ROOT=/Volumes/data/VE_Suite_Deps/VTK_new/VTKData > > If you do not have VTKData, download it from the vtk.org page (you > can do it from CVS command line by replace VTK with VTKData) > > >> Warning: In >> /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ >> vtkCocoaRenderWindow.h, >> line 138 >> vtkCocoaRenderWindow (0x35716c0): SetNextWindowId not implemented >> (WindowRemap not implemented). > > ouch ! > >> Warning: In >> /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ >> vtkCocoaRenderWindow.mm, >> line 813 >> vtkCocoaRenderWindow (0x35716c0): Can't remap the window. > > ouch 2 ! > >> 2008-08-14 17:01:02.903 wxImagePlaneWidget[47823:10b] invalid >> drawable >> 2008-08-14 17:01:02.938 wxImagePlaneWidget[47823:10b] invalid >> drawable >> ERROR: In >> /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ >> vtkInteractorStyle.cxx, >> line 392 >> vtkInteractorStyleJoystickCamera (0x3567600): Timer start failed > > I think David Cole fixed this 2 year old bug yesterday. One way to > know would be to update your copy of VTK and rebuild. If you are using > VTK 5.2 the patch will be merged in a couple of day. > I will update my 5.2 branch next week sometime to get this fix. > <...> > >> And I see two windows which does not seem correct. > > Alright so this leave us with one issue the WindowRemap not > implemented for Cocoa. But technically this is not required. So I am > not sure how this is happening. > > If you add let say an 'abort()' call on line 742: > > //this means the user has reparented us; let's adapt to the > abort(); > > If you recompile+rerun, if you hit this abort, this is bad news, it > means the wxVTK did not work as expected. The way it was designed is > that the function GetHandleHack() cannot be called too early, but only > after the first OnPaint event. Check wxVTK::OnPaint and print the > value of Handle at the end of the function. It is aborting before OnPaint is being called: leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ wxImagePlaneWidget ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ vtkVolume16Reader.cxx, line 355 vtkVolume16Reader (0x356ffb0): Can't find file: ../../../../VTKData/ Data/headsq/quarter.1 going to abort I am not worried about the VTK data stuff for now. I can download and get that working later. What would you like to try next? Doug |
From: Mathieu M. <mat...@gm...> - 2008-08-15 17:59:05
|
On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> wrote: > It is aborting before OnPaint is being called: where exactly ? Can you run gdb and send me the backtrace (bt command). > leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ > wxImagePlaneWidget > ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ > vtkVolume16Reader.cxx, line 355 > vtkVolume16Reader (0x356ffb0): Can't find file: ../../../../VTKData/ > Data/headsq/quarter.1 > > going to abort > > I am not worried about the VTK data stuff for now. I can download and > get that working later. sure. Then do not use an example that required VTKData. Instead use wxSample. > What would you like to try next? Try wxSample and tell me if you can see the Cone. As shown in the picture (scroll down): http://wxvtk.sourceforge.net/ Thanks -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-15 18:36:29
|
On Aug 15, 2008, at 12:59 PM, Mathieu Malaterre wrote: > On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> > wrote: >> It is aborting before OnPaint is being called: > > where exactly ? Can you run gdb and send me the backtrace (bt > command). > No need to do that since the abort is in the Render function as noted below. >> leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ >> wxImagePlaneWidget >> ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ >> vtkVolume16Reader.cxx, line 355 >> vtkVolume16Reader (0x356ffb0): Can't find file: ../../../../VTKData/ >> Data/headsq/quarter.1 >> >> going to abort >> >> I am not worried about the VTK data stuff for now. I can download and >> get that working later. > > sure. Then do not use an example that required VTKData. Instead use > wxSample. > >> What would you like to try next? > > Try wxSample and tell me if you can see the Cone. As shown in the > picture (scroll down): No cone: leonidas:build mccdo$ ./wxSample.app/Contents/MacOS/wxSample 2008-08-15 13:35:20.399 wxSample[50085:10b] *** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300 2008-08-15 13:35:20.401 wxSample[50085:10b] HIToolbox: ignoring exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300' that raised inside Carbon event dispatch Doug |
From: Nigel N. <Nig...@au...> - 2008-08-15 19:23:45
|
Hi Doug, I've noticed mention of both Carbon and Cocoa. Which Mac.Mode are you aiming for? Nigel -----Original Message----- From: wxv...@li... [mailto:wxv...@li...]On Behalf Of Doug McCorkle Sent: Saturday, 16 August 2008 4:36 AM To: Mathieu Malaterre Cc: wxVTK Mail List Subject: Re: [wxVTK] WindowRemap not implemented (was Re: Problems on Mac OS 10.5 and wxWidgets 2.8.7) On Aug 15, 2008, at 12:59 PM, Mathieu Malaterre wrote: > On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> > wrote: >> It is aborting before OnPaint is being called: > > where exactly ? Can you run gdb and send me the backtrace (bt > command). > No need to do that since the abort is in the Render function as noted below. >> leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ >> wxImagePlaneWidget >> ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ >> vtkVolume16Reader.cxx, line 355 >> vtkVolume16Reader (0x356ffb0): Can't find file: ../../../../VTKData/ >> Data/headsq/quarter.1 >> >> going to abort >> >> I am not worried about the VTK data stuff for now. I can download and >> get that working later. > > sure. Then do not use an example that required VTKData. Instead use > wxSample. > >> What would you like to try next? > > Try wxSample and tell me if you can see the Cone. As shown in the > picture (scroll down): No cone: leonidas:build mccdo$ ./wxSample.app/Contents/MacOS/wxSample 2008-08-15 13:35:20.399 wxSample[50085:10b] *** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300 2008-08-15 13:35:20.401 wxSample[50085:10b] HIToolbox: ignoring exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300' that raised inside Carbon event dispatch Doug ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Wxvtk-users mailing list Wxv...@li... https://lists.sourceforge.net/lists/listinfo/wxvtk-users ------------------------------------------------------------------------------------- Follow our Beijing success - www.ausport.gov.au/media This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. ------------------------------------------------------------------------------------- |
From: Mathieu M. <mat...@gm...> - 2008-08-15 19:58:21
|
Doug is using the Cocoa port. On Fri, Aug 15, 2008 at 9:23 PM, Nigel Nunn <Nig...@au...> wrote: > Hi Doug, > > I've noticed mention of both Carbon and Cocoa. > Which Mac.Mode are you aiming for? > > Nigel > > > > -----Original Message----- > From: wxv...@li... > [mailto:wxv...@li...]On Behalf Of Doug > McCorkle > Sent: Saturday, 16 August 2008 4:36 AM > To: Mathieu Malaterre > Cc: wxVTK Mail List > Subject: Re: [wxVTK] WindowRemap not implemented (was Re: Problems on > Mac OS 10.5 and wxWidgets 2.8.7) > > > > On Aug 15, 2008, at 12:59 PM, Mathieu Malaterre wrote: > >> On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> >> wrote: >>> It is aborting before OnPaint is being called: >> >> where exactly ? Can you run gdb and send me the backtrace (bt >> command). >> > No need to do that since the abort is in the Render function as noted > below. > >>> leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ >>> wxImagePlaneWidget >>> ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ >>> vtkVolume16Reader.cxx, line 355 >>> vtkVolume16Reader (0x356ffb0): Can't find file: ../../../../VTKData/ >>> Data/headsq/quarter.1 >>> >>> going to abort >>> >>> I am not worried about the VTK data stuff for now. I can download and >>> get that working later. >> >> sure. Then do not use an example that required VTKData. Instead use >> wxSample. >> >>> What would you like to try next? >> >> Try wxSample and tell me if you can see the Cone. As shown in the >> picture (scroll down): > > No cone: > > leonidas:build mccdo$ ./wxSample.app/Contents/MacOS/wxSample > 2008-08-15 13:35:20.399 wxSample[50085:10b] *** -[NSHIObject > userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300 > 2008-08-15 13:35:20.401 wxSample[50085:10b] HIToolbox: ignoring > exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized > selector sent to instance 0x3560300' that raised inside Carbon event > dispatch > > Doug > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > ------------------------------------------------------------------------------------- > Follow our Beijing success - www.ausport.gov.au/media > > This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. > ------------------------------------------------------------------------------------- > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > -- Mathieu |
From: Nigel N. <Nig...@au...> - 2008-08-15 20:09:05
|
Mathieu wrote: > Doug is using the Cocoa port. As I had hoped. So why the "raised inside Carbon event dispatch"? Is Doug's Cocoa port tangled with Carbon? Does Cocoa call Carbon? Nigel On Fri, Aug 15, 2008 at 9:23 PM, Nigel Nunn <Nig...@au...> wrote: > Hi Doug, > > I've noticed mention of both Carbon and Cocoa. > Which Mac.Mode are you aiming for? > > Nigel > > > > -----Original Message----- > From: wxv...@li... > [mailto:wxv...@li...]On Behalf Of Doug > McCorkle > Sent: Saturday, 16 August 2008 4:36 AM > To: Mathieu Malaterre > Cc: wxVTK Mail List > Subject: Re: [wxVTK] WindowRemap not implemented (was Re: Problems on > Mac OS 10.5 and wxWidgets 2.8.7) > > > > On Aug 15, 2008, at 12:59 PM, Mathieu Malaterre wrote: > >> On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> >> wrote: >>> It is aborting before OnPaint is being called: >> >> where exactly ? Can you run gdb and send me the backtrace (bt >> command). >> > No need to do that since the abort is in the Render function as noted > below. > >>> leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ >>> wxImagePlaneWidget >>> ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ >>> vtkVolume16Reader.cxx, line 355 >>> vtkVolume16Reader (0x356ffb0): Can't find file: ../../../../VTKData/ >>> Data/headsq/quarter.1 >>> >>> going to abort >>> >>> I am not worried about the VTK data stuff for now. I can download and >>> get that working later. >> >> sure. Then do not use an example that required VTKData. Instead use >> wxSample. >> >>> What would you like to try next? >> >> Try wxSample and tell me if you can see the Cone. As shown in the >> picture (scroll down): > > No cone: > > leonidas:build mccdo$ ./wxSample.app/Contents/MacOS/wxSample > 2008-08-15 13:35:20.399 wxSample[50085:10b] *** -[NSHIObject > userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300 > 2008-08-15 13:35:20.401 wxSample[50085:10b] HIToolbox: ignoring > exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized > selector sent to instance 0x3560300' that raised inside Carbon event > dispatch > > Doug > > ------------------------------------------------------------------------- ------------------------------------------------------------------------------------- Follow our Beijing success - www.ausport.gov.au/media This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. ------------------------------------------------------------------------------------- |
From: Mathieu M. <mat...@gm...> - 2008-08-15 20:11:31
|
On Fri, Aug 15, 2008 at 10:08 PM, Nigel Nunn <Nig...@au...> wrote: > Mathieu wrote: > >> Doug is using the Cocoa port. > > As I had hoped. So why the "raised inside Carbon event dispatch"? > Is Doug's Cocoa port tangled with Carbon? Does Cocoa call Carbon? =O did not even realized that ! I do know where is thing is coming from...maybe using something like ktrace would help knowing why carbon get in the way. Nice catch, -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-16 01:47:11
|
On Aug 15, 2008, at 3:11 PM, Mathieu Malaterre wrote: > On Fri, Aug 15, 2008 at 10:08 PM, Nigel Nunn <Nig...@au... > > wrote: >> Mathieu wrote: >> >>> Doug is using the Cocoa port. >> >> As I had hoped. So why the "raised inside Carbon event dispatch"? >> Is Doug's Cocoa port tangled with Carbon? Does Cocoa call Carbon? > > =O > > did not even realized that ! I do know where is thing is coming > from...maybe using something like ktrace would help knowing why carbon > get in the way. I have built wxMac and wxVTK. Not sure what else is needed to debug this. Doug |
From: Doug M. <mc...@ia...> - 2008-08-15 20:47:01
|
On Aug 15, 2008, at 2:23 PM, Nigel Nunn wrote: > Hi Doug, > > I've noticed mention of both Carbon and Cocoa. > Which Mac.Mode are you aiming for? > I am only using Cocoa as far as I can tell. Doug |
From: Mathieu M. <mat...@gm...> - 2008-08-15 18:43:53
|
Doug, On Fri, Aug 15, 2008 at 8:36 PM, Doug McCorkle <mc...@ia...> wrote: > > On Aug 15, 2008, at 12:59 PM, Mathieu Malaterre wrote: > >> On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> wrote: >>> >>> It is aborting before OnPaint is being called: >> >> where exactly ? Can you run gdb and send me the backtrace (bt command). >> > No need to do that since the abort is in the Render function as noted below. Ok this means there is something wrong going on. You need to send me the value returned by GetHandleHack() it is not entering the first if() but entering the else if() and it does not make sense... >> Try wxSample and tell me if you can see the Cone. As shown in the >> picture (scroll down): > > No cone: > > leonidas:build mccdo$ ./wxSample.app/Contents/MacOS/wxSample > 2008-08-15 13:35:20.399 wxSample[50085:10b] *** -[NSHIObject > userSpaceScaleFactor]: unrecognized selector sent to instance 0x3560300 > 2008-08-15 13:35:20.401 wxSample[50085:10b] HIToolbox: ignoring exception > '*** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to > instance 0x3560300' that raised inside Carbon event dispatch I remember that wx comes with 3 simple toy examples: cube, penguin and isosurf. There are OpenGL based app using wx. Do they work on your OS ? Thanks, -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-15 20:46:07
|
On Aug 15, 2008, at 1:43 PM, Mathieu Malaterre wrote: > Doug, > > On Fri, Aug 15, 2008 at 8:36 PM, Doug McCorkle <mc...@ia...> > wrote: >> >> On Aug 15, 2008, at 12:59 PM, Mathieu Malaterre wrote: >> >>> On Fri, Aug 15, 2008 at 7:49 PM, Doug McCorkle <mc...@ia...> >>> wrote: >>>> >>>> It is aborting before OnPaint is being called: >>> >>> where exactly ? Can you run gdb and send me the backtrace (bt >>> command). >>> >> No need to do that since the abort is in the Render function as >> noted below. > > Ok this means there is something wrong going on. You need to send me > the value returned by GetHandleHack() it is not entering the first > if() but entering the else if() and it does not make sense... > >>> Try wxSample and tell me if you can see the Cone. As shown in the >>> picture (scroll down): >> >> No cone: >> >> leonidas:build mccdo$ ./wxSample.app/Contents/MacOS/wxSample >> 2008-08-15 13:35:20.399 wxSample[50085:10b] *** -[NSHIObject >> userSpaceScaleFactor]: unrecognized selector sent to instance >> 0x3560300 >> 2008-08-15 13:35:20.401 wxSample[50085:10b] HIToolbox: ignoring >> exception >> '*** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent >> to >> instance 0x3560300' that raised inside Carbon event dispatch > > I remember that wx comes with 3 simple toy examples: cube, penguin and > isosurf. There are OpenGL based app using wx. Do they work on your OS > ? Yes. Doug |