Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
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  
  Having two views freezes my comp :(  (Read 1370 times)
0 Members and 1 Guest are viewing this topic.
Offline cascade

Junior Devvie

Java games rock!

« Posted 2004-12-06 14:33:47 »


I just tried to get multiple views with each having a JPanel as CanvasPeer. Each view represents a local simulated vehicle based camera.

However, after a couple of frames my linux comp freezes and must be rebooted. The JavaVM (1.5beta32) is dumping their bug report stuff at the moment the freeze occurs (deterministically and reproducible).

Has someone experienced a similar problem ? Or more important, has someone used multiple views and JPanels added to a single VirtualUniverse successfully?

That info would help me determine where to locate the problem as there are multiple candidates ... xith ... jogl ... javaVM(beta) ... myCode_messing_things_up.

Offline arne

Senior Devvie

money is the worst drug- we should not let it rule

« Reply #1 - Posted 2004-12-06 15:12:07 »

Hi cascade

I did. When I try to add two canvases to the same View, the VM crashes with a HotSpot Error. I haven't solved why yet, but it works fine with different Views added to the same VirtualUniverse. see;action=display;num=1102189007;start=0

Maybe your linux would'nt freeze, if you use java1.5.0 (it's no beta anymore)


:: JOODE :: Xith3d :: OdeJava ::
Offline zparticle

Senior Devvie

Thick As A Brick

« Reply #2 - Posted 2004-12-06 17:08:16 »

I had trouble getting two views to render as well, don't knwo if this applies to your issue but I had to modify the com.xith3d.render.jogl.CanvasPeerImpl class to get it to work. This was a long time ago so the code may not even look the same any more. Think what I changed was commenting out the first if in the mehtod below.

    public void render(RenderFrame frame) {
        //if (renderFrame == null) canvas.setRenderingThread(Thread.currentThread());
        renderFrame = frame;

        if (pickMode)
          Thread renderingThread = canvas.getRenderingThread();
          if ((renderingThread != null) && (Thread.currentThread() != renderingThread))
            throw new Error("Pick initiated not from rendering thread");

This is the program that I had to do it for and the changed source is in the zip.;action=display;num=1075405999

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

Junior Devvie

Java games rock!

« Reply #3 - Posted 2004-12-07 05:58:07 »

thanks for your help but I could not yet get it to work Sad

To finally test the possibility of rendering multiple Xith-based views I started the single-view process twice and got two views.
This worked of course, but I get a lot of flickering in both windows. I wonder if this is a problem of the graphics card, the driver, jogl or xith ?

hmm, just tried the CubeTest demo and this does not flicker when active several times ... OK the flicker has been caused by the view.startView call (removing this call removed the flicker)

I just installed the latest nvidia driver (6629) and now my machine does just crash but not freeze (this speeds up debugging a lot Wink )

here is the dump:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.xith3d.render.jogl.ShapeAtomPeer.drawGeometry(Lcom/xith3d/render/CanvasPe
j  com.xith3d.render.jogl.ShapeAtomPeer.renderAtom(Lcom/xith3d/render/CanvasPeer
J  com.xith3d.render.CanvasPeerBase.render(Lcom/xith3d/render/RenderAtom;)V
j  com.xith3d.render.jogl.CanvasPeerImpl.drawBin(Lnet/java/games/jogl/GL;Lcom/xi
j  com.xith3d.render.jogl.CanvasPeerImpl.display(Lnet/java/games/jogl/GLDrawable
j  com.xith3d.render.jogl.CanvasPeerImpl.render(Lcom/xith3d/render/RenderFrame;)
j  com.xith3d.scenegraph.View.renderOnce(Lcom/xith3d/scenegraph/Canvas3D;)V+53
j  com.xith3d.scenegraph.View.renderOnce()V+55
j  ext.xith3d.base.XithWorld.updatePostwork(D)V+112

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

Ecumene (53 views)
2017-09-30 02:57:34

theagentd (76 views)
2017-09-26 18:23:31

cybrmynd (184 views)
2017-08-02 12:28:51

cybrmynd (182 views)
2017-08-02 12:19:43

cybrmynd (189 views)
2017-08-02 12:18:09

Sralse (198 views)
2017-07-25 17:13:48

Archive (747 views)
2017-04-27 17:45:51

buddyBro (881 views)
2017-04-05 03:38:00

CopyableCougar4 (1429 views)
2017-03-24 15:39:42

theagentd (1320 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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‑
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!