Help Needed in Debugging OpenGL part of Processing sketch : java + jogl + gDebugger
in
Integration and Hardware
•
1 year ago
Hi,
I'm porting a Processing based project to version 2.0 and I have problems with OpenGL.
Namely I'm getting the infamous "
OpenGL error 1282 at top endDraw(): invalid operation" and nothing is drawn on the window.
I'm working under mac os 10.6.8, Processing V 2.0b3.
I'm looking for a way to debug my OpenGL code using
gDebugger - a free debugging and profiling tool for openGL - but I have not been successful yet.
What I did so far is export the Sketch as a Mac OS application and run it within gDebugger, but the tool does not log any call to OpenGL or any error for that matter.
Moreover if I launch the exported app from the Finder, no window appears (I suspect the OpenGL error 1282 to be the culprit).
In the gDebugger documentation it is advised to run the runtime when debugging a Java or Python program. Thus I tried to run my project with the command line but I can't get it to work.
My sketch is called Runner, after exporting as Application all the dependencies are in
/Runner/application.macosx/Runner.app/Contents/Resources/Java/
Command I tried:
- java -cp /Runner/application.macosx/Runner.app/Contents/Resources/Java/* Runner
- java -cp /Runner/application.macosx/Runner.app/Contents/Resources/Java/* -jar Runner.jar
- java -cp /Runner/application.macosx/Runner.app/Contents/Resources/Java/* -jar /Runner/application.macosx/Runner.app/Contents/Resources/Java/Runner.jar
Which always results in a
Exception in thread "main" java.lang.NoClassDefFoundError
What are the correct arguments to execute from the command line? (I suspect some arguments must also be set for OpenGL)
Has anybody tried gDebugger with JOGL (I read on this forum that it does partially work, that would be enough for me ) ?
Do you know of any other tools that I could use to debug? I'm using Eclipse to code my project as a Processing library and the Processing editor/run environment only to run the application.
I hope this is the right forum to ask this question, please feel free to move it somewhere else.
Regards.
-
Jonsku
1