Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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  
  PROBLEM OF REMOTE DISPLAY OVER SSH  (Read 7178 times)
0 Members and 1 Guest are viewing this topic.
Offline nakamura

Junior Newbie





« Posted 2010-01-28 09:13:07 »

I made java application using JOGL.
My application works well on OSX(Tiger, Leopard, Snow Leopard), linux(Fedora3, Fedora12, Ubuntu9) in local.


Problem is using in remote.

host: linux
client: OSX
When I execute my application on host which is connected 'ssh -Y host' in above environment,
my application cannot work with below errors.

---------------------------------------------------
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Error making temp context (old) current: display 0x2aabb00b5520, context 0x0, drawable com.sun.opengl.impl.x11.glx.X11OnscreenGLXDrawable[realized true,
   factory   com.sun.opengl.impl.x11.glx.X11GLXDrawableFactory@8a85268,
   window    JAWT-Window[windowHandle 0x80005a, surfaceHandle 0x80005a, pos 0/0, size 700x555, visible true, locked true,
   config class javax.media.nativewindow.awt.AWTGraphicsConfiguration[class javax.media.nativewindow.awt.AWTGraphicsScreen[class javax.media.nativewindow.awt.AWTGraphicsDevice[type AWT, awtDevice X11GraphicsDevice[screen=0], handle 0x2aabb00b5520], idx 0],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 8, Green Accum: 8, Blue Accum: 8, Alpha Accum: 8, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x66],
   encapsulated X11GLXGraphicsConfiguration[class javax.media.nativewindow.x11.X11GraphicsScreen[class javax.media.nativewindow.x11.X11GraphicsDevice[type X11, handle 0x2aabb00b5520], idx 0], visualID 0x66, fbConfigID 0x66,
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 8, Green Accum: 8, Blue Accum: 8, Alpha Accum: 8, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false]]],
   wrappedWindow AWT-GLCanvas[ class javax.media.nativewindow.awt.AWTGraphicsConfiguration[class javax.media.nativewindow.awt.AWTGraphicsScreen[class javax.media.nativewindow.awt.AWTGraphicsDevice[type AWT, awtDevice X11GraphicsDevice[screen=0], handle 0x2aabb00b5520], idx 0],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 8, Green Accum: 8, Blue Accum: 8, Alpha Accum: 8, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x66],
   encapsulated X11GLXGraphicsConfiguration[class javax.media.nativewindow.x11.X11GraphicsScreen[class javax.media.nativewindow.x11.X11GraphicsDevice[type X11, handle 0x2aabb00b5520], idx 0], visualID 0x66, fbConfigID 0x66,
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 8, Green Accum: 8, Blue Accum: 8, Alpha Accum: 8, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false]]], com.sun.opengl.impl.x11.glx.X11OnscreenGLXDrawable, GLEventListeners num 1 [viewer.rendering.RenderingWindow[frame0,170,20,700x600,layout=java.awt.BorderLayout,title=/home/nakamura/kvs22/sample.kvs,resizable,normal,defaultCloseOperation=DISPOSE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,22,700x578,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true], ]]],
   requested GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false],
   chosen    GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 8, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 8, Green Accum: 8, Blue Accum: 8, Alpha Accum: 8, Multisample: false, Num samples: 0, PBuffer-FloatingPointBuffers: false, PBuffer-RenderToTexture: false, PBuffer-RenderToTextureRectangle: false]]
   at com.sun.opengl.impl.x11.glx.X11GLXContext.createContext(X11GLXContext.java:173)
   at com.sun.opengl.impl.x11.glx.X11OnscreenGLXContext.create(X11OnscreenGLXContext.java:65)
   at com.sun.opengl.impl.x11.glx.X11GLXContext.makeCurrentImplAfterLock(X11GLXContext.java:353)
   at com.sun.opengl.impl.x11.glx.X11GLXContext.makeCurrentImpl(X11GLXContext.java:319)
   at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:151)
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:141)
   at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:553)
   at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:290)
   at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:368)
   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
   at sun.awt.RepaintArea.paint(RepaintArea.java:224)
   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:688)
   at java.awt.Component.dispatchEventImpl(Component.java:4577)
   at java.awt.Component.dispatchEvent(Component.java:4331)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
---------------------------------------------------

But JFrames without jogl are displayed normally.
xeyes(or X-application) also works normally.


By comparison, my application works well in below environment
client: linux
host: linux


Does anyone meet same situation?

Anyone help me!!



Offline Z-Knight

Junior Member





« Reply #1 - Posted 2010-02-05 00:28:46 »

have you tried using the '-X' option, as opposed to the '-Y' option that is for trusted hosts?  Is the result different?  Just curious.
Offline nakamura

Junior Newbie





« Reply #2 - Posted 2010-04-10 05:12:32 »

Thank you reply.

>have you tried using the '-X' option, as opposed to the '-Y' option that is for trusted hosts?
Yes.
But results are same.......


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

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (67 views)
2013-05-17 21:29:12

alaslipknot (76 views)
2013-05-16 21:24:48

gouessej (109 views)
2013-05-16 00:53:38

gouessej (104 views)
2013-05-16 00:17:58

theagentd (115 views)
2013-05-15 15:01:13

theagentd (104 views)
2013-05-15 15:00:54

StreetDoggy (149 views)
2013-05-14 15:56:26

kutucuk (172 views)
2013-05-12 17:10:36

kutucuk (170 views)
2013-05-12 15:36:09

UnluckyDevil (179 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.146 seconds with 21 queries.