New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL related crashes when closing the display window on Ubuntu (Intel) #4041

Closed
neilcsmith-net opened this Issue Oct 21, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@neilcsmith-net

neilcsmith-net commented Oct 21, 2015

Not the same as #3977 though similar cause. After updating my Intel graphics driver on Ubuntu, I get consistent segfaults when closing the display window. Cause is the call to pgl.swapBuffers() at https://github.com/processing/processing/blob/master/core/src/processing/opengl/PGraphicsOpenGL.java#L614 Commenting it out stops the issue. Seems likewise related to accessing a GL resource that no longer exists, though I can't understand the comment for that line of code - why would you bother when the window is closing?

Salient bit of error log -

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  jogamp.opengl.x11.glx.GLX.dispatch_glXSwapBuffers0(JJJ)V+0
j  jogamp.opengl.x11.glx.GLX.glXSwapBuffers(JJ)V+41
j  jogamp.opengl.x11.glx.X11GLXDrawable.swapBuffersImpl(Z)V+17
j  jogamp.opengl.GLDrawableImpl.swapBuffers()V+67
j  jogamp.opengl.GLAutoDrawableBase.defaultSwapBuffers()V+23
j  com.jogamp.newt.opengl.GLWindow.swapBuffers()V+1
j  processing.opengl.PJOGL.swapBuffers()V+15
j  processing.opengl.PGraphicsOpenGL.dispose()V+15
j  processing.core.PApplet.dispose()V+28
j  processing.opengl.PSurfaceJOGL$NEWTWindowListener.windowDestroyNotify(Lcom/jogamp/newt/event/WindowEvent;)V+7

@codeanticode codeanticode added the opengl label Oct 21, 2015

@codeanticode codeanticode self-assigned this Oct 21, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Oct 21, 2015

Member

That swapBuffers() call might be superfluous after recent changes in the renderer. I will take a look and check if it can be indeed removed safely.

Member

codeanticode commented Oct 21, 2015

That swapBuffers() call might be superfluous after recent changes in the renderer. I will take a look and check if it can be indeed removed safely.

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Oct 23, 2015

Member

addressed with 8b75adc

Member

codeanticode commented Oct 23, 2015

addressed with 8b75adc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment