Bug 1257

Summary: VM crash with FATAL ERROR in native method: Nativewindow X11 IOError: Display ...
Product: [JogAmp] Nativewindow Reporter: Pramod Patil <pramodd.patil>
Component: x11Assignee: Sven Gothel <sgothel>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P3    
Version: 2.4.0   
Hardware: All   
OS: linux   
Type: DEFECT SCM Refs:
Workaround: ---

Description Pramod Patil 2015-10-23 11:54:48 CEST
A random crash, observed only once. Need to find out the root cause.

Nativewindow X11 IOError: Display 0x9b6fc40 (:0.0): Broken pipe
Nativewindow X11 IOError: Display 0x9b6fc40 (:0.0): Broken pipe
FATAL ERROR in native method: Nativewindow X11 IOError: Display 0x9b6fc40 (:0.0): Broken pipe
at jogamp.nativewindow.jawt.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
136 d0
at jogamp.nativewindow.jawt.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:58)
at jogamp.nativewindow.jawt.x11.X11JAWTWindow.lockSurfaceImpl(X11JAWTWindow.java:91)
at com.jogamp.nativewindow.awt.JAWTWindow.lockSurface(JAWTWindow.java:500)
at jogamp.opengl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:309)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:528)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:519)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1089)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1291)
at javax.media.opengl.Threading.invoke(Threading.java:193)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:75)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:416)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:170)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
136 d1
Comment 1 Sven Gothel 2015-10-23 19:25:00 CEST
Please provide detailed information of your machine:
  <http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing>
i.e. the test_dbg.log, best to be compressed and attached here.

Then we need a test case which is able to reproduce this issue,
best if it is an already existing unit test of JOGL.
Otherwise, pls write a unit test,
a small piece of code, you may start using one of our unit tests.
Comment 2 Pramod Patil 2015-10-26 05:28:31 CET
The issue is random and i am not able to reproduce it for second time.
Its more about native method. For me it looks like display device was broken at that moment. I can provede the version of jogl which is : 2.1.3. It would be good if some one from NativeWindow can investigate on what might be the reason.
Comment 3 Sven Gothel 2019-03-30 03:19:20 CET
(In reply to Pramod Patil from comment #2)
> The issue is random and i am not able to reproduce it for second time.
> Its more about native method. For me it looks like display device was broken
> at that moment. I can provede the version of jogl which is : 2.1.3. It would
> be good if some one from NativeWindow can investigate on what might be the
> reason.

Note: "Nativewindow X11 IOError: Display 0x9b6fc40 (:0.0): Broken pipe"
indicated that the X11 display connection has been closed or is invalid.
I cannot think of any case where this issue lies in our implementation.

We need a simple standalone test case.
Please reopen if bug still persist and reproducable w/ that test case.
I walk the bug list currently and I cannot work with the given information.
Thank you.