Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Re: Multiple GLCanvas on one JFrame  (Read 6635 times)
0 Members and 1 Guest are viewing this topic.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Posted 2007-01-06 19:10:58 »

Yaa Marvin , Russell is right  as today only i tried  my example but without sharing the Branch-Group and it
was running fine on newer Intel Graphic Card .

So the problem is when we share a Branch-Group and render it with two views on different canvases.
It has nothing to do with JOGL part .

I haven't looked into Xith rendering but i feel that its because sharing of memory in
texture rendering .

First of all, thanks for investigating the problem Smiley.

So it should be the whole VirtualUniverse, that must not be shared with two views Huh What could a BranchGroup have to do with sharing texture memory. What do you think?

btw. Which version of xith do you use?

Marvin
Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #1 - Posted 2007-01-07 08:05:02 »

I am using Xith 8.0 version and now i am trying to shift to new 9.0 beta ..but lot of code is tied up with older
version and so it will take some time to shift to latest version.

I was having this problem in older version of Xith  but surprisingly it works with Intel graphics card of 3 series but not the latest.



Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #2 - Posted 2007-01-08 13:15:57 »

Hi this problem is coming in Xith latest release  9.0. also

i tried to run   org.xith3d.test.ui.FourViewsPanelTest
On a  Windows XP with Intel Graphics Card  : verson - 6.14.10.4267.

Now just try to resize the panels.

The application crashes with this exception.

1  
2  
3  
4  
5  
6  
7  
8  
# An unexpected error has been detected by Java Runtime Environment:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036e4938, pid=3768, tid=3252
# Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b104 mixed mode, sharing)
# Problematic frame:
# C  [ialmgicd.dll+0x84938]
# An error report file with more information is saved as hs_err_pid3768.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp


i tried this other graphics card in    6.14.10 4series and same exception is coming but surprisingly  , this works fine on
6.14.10 3series  graphic card .

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #3 - Posted 2007-01-08 14:55:30 »

i tried to run   org.xith3d.test.ui.FourViewsPanelTest
On a  Windows XP with Intel Graphics Card  : verson - 6.14.10.4267.

Now just try to resize the panels.

The application crashes with this exception.

Oh, these HotSpot error lag Angry. They don't say nothing for me. But you can maybe use the for googling for the problem.

Anyway the application doesn't crash on my system.when I resize the panels. Please make sure, that it really does it for you. As I said, it crashes (or does other strange things) when the fourth frame (not panel) is to be rendered. You can see
Quote
1
2
3
in the console and the when the "4" is up to be dumped, the strange things start to happen (or a crash).

Is it like this?

Marvin
Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #4 - Posted 2007-01-09 06:53:42 »

Well on my working m/c this test example is working fine ,
i mean no problem with fourth frame .

The problem comes when i use on newer m/c with updated graphics card.
That also not with fourth frame getting rendered but only if you resize the panel etc.

As it is not happening on your m/c , please send me your system details with what graphic card you are using.

This problem does not come when different  scenes are rendered on separate canvases , so that means it is because
of some illegal sharing of memory .

Oh, these HotSpot error lag Angry. They don't say nothing for me. But you can maybe use the for googling for the problem.

 Cheesy yaa these error doesn't say much , i googled for this problem and initially my reaction was that this problem is with
Swing integration with Opengl , and so i tried this on Java 6.0 also .

 i am able to render multiple canvases in JOGl but when i use Xith for rendering than this problem comes .That too
when we share the scene-Graph .
So now i think i need to see how the same scene is rendered to multiple canvases and lets see what we can find ?

Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #5 - Posted 2007-01-09 22:00:01 »

Well on my working m/c this test example is working fine ,
i mean no problem with fourth frame .

The problem comes when i use on newer m/c with updated graphics card.
That also not with fourth frame getting rendered but only if you resize the panel etc.

As it is not happening on your m/c , please send me your system details with what graphic card you are using.

This problem does not come when different  scenes are rendered on separate canvases , so that means it is because
of some illegal sharing of memory .

Linux Machine:
Athlon64 3000+
Asus A8V Deluxe, VIA K8T800Pro
1GB Kingston Dual Channel
Saphire Radeon 9800 Pro
Kubuntu Linux 6 Dapper, Kernel 2.6.15-27-386
Java 6 (same problems with Java 5)

Windows Machine (don't know exactly):
Athlon 1800+
512MB
NVIDIA geforce 6xxx (or so)
Windows XP SP1
Java 5

btw. What is an m/c?

i am able to render multiple canvases in JOGl but when i use Xith for rendering than this problem comes .That too
when we share the scene-Graph .
So now i think i need to see how the same scene is rendered to multiple canvases and lets see what we can find ?

Cool, then you may know, what we are doing wrong in Xith...

Marvin
Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #6 - Posted 2007-01-10 05:02:49 »

btw. What is an m/c?

 Grin sorry for being lazy , i intended Machine .

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (33 views)
2014-07-18 06:55:21

Zero Volt (29 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (26 views)
2014-07-16 23:30:00

Cero (41 views)
2014-07-16 00:42:17

Riven (43 views)
2014-07-14 18:02:53

OpenGLShaders (31 views)
2014-07-14 16:23:47

Riven (30 views)
2014-07-14 11:51:35

quew8 (29 views)
2014-07-13 13:57:52

SHC (64 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!