Bug 883

Summary: NEWT: Crash on 'manual' triggered Window closing due to 'gone JVM'
Product: [JogAmp] Newt Reporter: Sven Gothel <sgothel>
Component: macosxAssignee: Sven Gothel <sgothel>
Status: RESOLVED DUPLICATE    
Severity: major CC: johan
Priority: ---    
Version: 1   
Hardware: All   
OS: macosx   
Type: --- SCM Refs:
Workaround: ---
Attachments: JVM crash log

Description Sven Gothel 2013-10-31 23:01:34 CET
Created attachment 533 [details]
JVM crash log

http://forum.jogamp.org/2-1-2-rc-20131031-tp4030438p4030446.html

Reporter: jmaasing

OSX 10.9 

public static void main(String[] args) {
                final GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL4));
                caps.setBackgroundOpaque(true);
                caps.setDoubleBuffered(true);
                caps.setDepthBits(16);
                GLWindow glWindow = GLWindow.create(caps);
                glWindow.addGLEventListener(new GLEventListener() {
                        @Override
                        public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
                        }

                        @Override
                        public void init(GLAutoDrawable drawable) {
                                System.out.println("init: " + drawable);
                        }

                        @Override
                        public void dispose(GLAutoDrawable drawable) {
                                System.out.println("dispose: " + drawable);
                        }

                        @Override
                        public void display(GLAutoDrawable drawable) {
                        }
                });
                glWindow.setTitle("Test");
                glWindow.setSize(1024, 768);
                glWindow.setUndecorated(false);
                glWindow.setPointerVisible(true);
                glWindow.setVisible(true);
                glWindow.setFullscreen(false);
                glWindow.setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE);

                Animator animator = new Animator(glWindow);
                animator.start();
        }

It works, the NEWT window is opened and the animator runs (same result when using GLProfile.GL3). There is a crash when closing the window. Attached log.
Let me know if you want a bug report in bugzilla.
Comment 1 Sven Gothel 2013-10-31 23:03:37 CET
*** Bug 882 has been marked as a duplicate of this bug. ***
Comment 2 Sven Gothel 2013-10-31 23:05:04 CET
closing _my_ duplicate - duh!

*** This bug has been marked as a duplicate of bug 882 ***