Summary: | Segfault on GLDrawableFactory.getDesktopFactory() used in headless mode | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Calixte <calixte.denizet> |
Component: | x11 | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | --- | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | linux | ||
Type: | --- | SCM Refs: |
jogl 5c83989b8bb8e8f9cbc25f09e6a6fe5847e6b94c
|
Workaround: | --- | ||
Attachments: | test case |
Description
Calixte
2012-06-25 16:04:11 CEST
Note: Remote connection tested using ssh to localhost or an actual remote machine. Test w/ proper X11 authentication, i.e. DISPLAY and xauth: > cd projects/JOGL/jogl-bugs/597-headless/ > echo $DISPLAY localhost:10.0 > xclock 'works' T1.1 OK> java plop jogamp.opengl.x11.glx.X11GLXDrawableFactory@f581593 T1.2 OK> java -Djava.awt.headless=true plop jogamp.opengl.x11.glx.X11GLXDrawableFactory@6f34a7d8 +++ Test _without_ proper X11 authentication, i.e. DISPLAY and xauth: > xclock No protocol specified No protocol specified Error: Can't open display: :0.0 T2.1 OK> java plop No protocol specified No protocol specified Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. (Stack trace from: GLProfile.initProfilesForDefaultDevices(..) -> NativeWindowFactory.initSingleton(..) -> JAWTUtil.<clinit>-> sun.awt.X11.XToolkit.<clinit> -> sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) T2.2 ERROR> java -Djava.awt.headless=true plop No protocol specified No protocol specified SIGSEGV!! -> confirmed. Thx for reporting. fixed w/ commit 5c83989b8bb8e8f9cbc25f09e6a6fe5847e6b94c |