Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 11:00:01 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Multiple GLCanvas on one JFrame
Pages: [1]
Print
Author Topic: Multiple GLCanvas on one JFrame  (Read 1400 times)
khangharoth
Enjoying the stay
*
Offline Offline

Posts: 67


View Profile Email
« on: 06. February 2007, 06:33:34 am »

Hi Marvin,
   Were you able to run org.xith3d.test.ui.FourViewsPanelTestwithout any problem i mean no problem with Fourth frame ?
I posted earlier  that when i render multiple viewports ,my system crashes with a HotSpot error. While debugging in bindGeometryComponent(GL gl, CanvasPeer canvas, GeomData data, int arrayType) method of ShapeAtomPeer.java i found that everyWhere  it was data.setCacheHandle(-1) but at one place it is data.setCacheHandle(cacheHandle),
when changing it also to -1 .Things are working fine for me  Huh Grin no more crashes.I even tested this change on 4-5 different m/c and its happening consistently.

So is data.setCacheHandle(cacheHandle) is doing some illegal access of memory.


Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 06. February 2007, 11:22:24 am »

Hi Marvin,
   Were you able to run org.xith3d.test.ui.FourViewsPanelTestwithout any problem i mean no problem with Fourth frame ?

No. I don't get HotSpot errors or crashes on Linux as I get on Windows. But I get strange fglrx dumps.

I posted earlier  that when i render multiple viewports ,my system crashes with a HotSpot error. While debugging in bindGeometryComponent(GL gl, CanvasPeer canvas, GeomData data, int arrayType) method of ShapeAtomPeer.java i found that everyWhere  it was data.setCacheHandle(-1) but at one place it is data.setCacheHandle(cacheHandle),
when changing it also to -1 .Things are working fine for me  Huh Grin no more crashes.I even tested this change on 4-5 different m/c and its happening consistently.

So is data.setCacheHandle(cacheHandle) is doing some illegal access of memory.

Hmmm... I don't know this. Just another good input from your side Smiley. I will check that.

But maybe it is now possible to solve that on a cleaner way. I'm talking about the new multiple GLViewport per scene feature of Xith. I will prepare a test case this evening.

Marvin
Logged
khangharoth
Enjoying the stay
*
Offline Offline

Posts: 67


View Profile Email
« Reply #2 on: 07. February 2007, 04:20:34 am »

But maybe it is now possible to solve that on a cleaner way. I'm talking about the new multiple GLViewport per scene feature of Xith. I will prepare a test case this evening.

Well lets see what exactly you have in mind , if its cleaner its better Smiley.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 07. February 2007, 08:48:30 am »

Well lets see what exactly you have in mind , if its cleaner its better Smiley.

this Wink.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 08. February 2007, 01:08:02 am »

Hi Marvin,
   Were you able to run org.xith3d.test.ui.FourViewsPanelTestwithout any problem i mean no problem with Fourth frame ?
I posted earlier  that when i render multiple viewports ,my system crashes with a HotSpot error. While debugging in bindGeometryComponent(GL gl, CanvasPeer canvas, GeomData data, int arrayType) method of ShapeAtomPeer.java i found that everyWhere  it was data.setCacheHandle(-1) but at one place it is data.setCacheHandle(cacheHandle),
when changing it also to -1 .Things are working fine for me  Huh Grin no more crashes.I even tested this change on 4-5 different m/c and its happening consistently.

So is data.setCacheHandle(cacheHandle) is doing some illegal access of memory.

OK, I set the data.setCachHandle to -1, as you said, and the problems disappeared (no crash, no fglrc dump). We will, see, if this hurts in any way.

But the FourViewsPanelTest is dead slow. You should in any case use the RenderPass way, I described in the other thread and which is demonstrated in org.xith3d.test.ui.QuadViewportTest.

Marvin
Logged
khangharoth
Enjoying the stay
*
Offline Offline

Posts: 67


View Profile Email
« Reply #5 on: 08. February 2007, 03:45:56 am »

OK, I set the data.setCachHandle to -1, as you said, and the problems disappeared (no crash, no fglrc dump). We will, see, if this hurts in any way.
I have set data.setCachHandle to -1 and its working fine for me with no effects.

But the FourViewsPanelTest is dead slow. You should in any case use the RenderPass way, I described in the other thread and which is demonstrated in org.xith3d.test.ui.QuadViewportTest.
Yaa i will have a look at it and see how it performs.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #6 on: 11. February 2007, 07:38:28 pm »

OK, I set the data.setCachHandle to -1, as you said, and the problems disappeared (no crash, no fglrc dump). We will, see, if this hurts in any way.

But the FourViewsPanelTest is dead slow. You should in any case use the RenderPass way, I described in the other thread and which is demonstrated in org.xith3d.test.ui.QuadViewportTest.

I reset it to the old cacheHandle. Using -1 cases JOGL apps to be extremely slow. I will see, if I can get it working for both situations.

Did you already try the QuadViewportTest?

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 11. February 2007, 08:30:54 pm »

I got it working for both cases Smiley.

The cacheHandle needs to be render context dependent, which is now done.

The FourViewsPanelTest new works perfectly (but still slower and more flickering than the QuadViewportTest).

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic