Skip to content
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

Crash when having opengl2 imported but not set as renderer #605

Closed
processing-bugs opened this issue Feb 10, 2013 · 4 comments
Closed

Crash when having opengl2 imported but not set as renderer #605

processing-bugs opened this issue Feb 10, 2013 · 4 comments

Comments

@processing-bugs
Copy link

Original author: JesseCol...@gmail.com (March 11, 2011 10:55:27)

If possible, please attach the smallest possible sketch that reproduces
your problem. First make a tiny example, then use Tools -> Archive Sketch
to create a zip file, and then attach it to this bug report.

What steps will reproduce the problem?

  1. Create a sketch that imports the opengl2 library
  2. Set the renderer to something else (eg. opengl)
  3. Run the sketch

What is the expected output? What do you see instead?

Sketch crashes - obviously expecting a non-static mode means it won't run unless it is set to the renderer?

What version of the product are you using? On what operating system?

  1. OS X 10.6.6.

Please provide any additional information below.

Error Message:

java.lang.IncompatibleClassChangeError: Expecting non-static method javax.media.opengl.glu.GLU.gluNewTess()Ljavax/media/opengl/glu/GLUtessellator;
at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:126)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at processing.core.PApplet.makeGraphics(PApplet.java:1320)
at processing.core.PApplet.size(PApplet.java:1146)
at processing.core.PApplet.size(PApplet.java:1106)
at ogl2bug.setup(ogl2bug.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1587)
at processing.core.PApplet.run(PApplet.java:1506)
at java.lang.Thread.run(Thread.java:680)
java.lang.IncompatibleClassChangeError: Expecting non-static method javax.media.opengl.glu.GLU.gluNewTess()Ljavax/media/opengl/glu/GLUtessellator;
at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:126)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at processing.core.PApplet.makeGraphics(PApplet.java:1320)
at processing.core.PApplet.size(PApplet.java:1146)
at processing.core.PApplet.size(PApplet.java:1106)
at ogl2bug.setup(ogl2bug.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1587)
at processing.core.PApplet.run(PApplet.java:1506)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "Animation Thread" java.lang.RuntimeException: Expecting non-static method javax.media.opengl.glu.GLU.gluNewTess()Ljavax/media/opengl/glu/GLUtessellator;
at processing.core.PApplet.makeGraphics(PApplet.java:1345)
at processing.core.PApplet.size(PApplet.java:1146)
at processing.core.PApplet.size(PApplet.java:1106)
at ogl2bug.setup(ogl2bug.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1587)
at processing.core.PApplet.run(PApplet.java:1506)
at java.lang.Thread.run(Thread.java:680)

Note: Please do not link to locations on other sites, such as your own
image site, video site, blog, etc. Include the relevant information here
with the report.

Original issue: http://code.google.com/p/processing/issues/detail?id=566

@processing-bugs
Copy link
Author

From JesseCol...@gmail.com on March 11, 2011 10:58:32
EDIT: it is only crashing if OPENGL2 is imported and the renderer is set to OPENGL... works fine with other renderers.

@processing-bugs
Copy link
Author

From f...@processing.org on March 11, 2011 11:56:16
Don't import one and ask for the other, of course you're going to get an error that says it's incompatible.

@processing-bugs
Copy link
Author

From JesseCol...@gmail.com on March 14, 2011 10:31:32
Ok, fair enough. Sometimes I test framerate with different renderers, and I've never had to delete/comment out the import statement for opengl before... not a big deal, just thought i'd mention it.
Maybe it should be noted somewhere, in the reference for size() perhaps ??

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant