Login  Register

Re: Error Making Context Current JOGL 2.0 rc9

Posted by lukej on Jul 17, 2012; 6:56pm
URL: https://forum.jogamp.org/Error-Making-Context-Current-JOGL-2-0-rc9-tp4025517p4025554.html

Sven,
I haven't had a chance to try newt yet, but here is a single class example that shows my problem.  It's not a JUnit test because frankly...I'm not sure what I'd assert on.  The exception happens, is caught, and is displayed all outside of my code.  Short of parsing the console and looking for exceptions I'm not sure how to turn it into a true unit test.

Here is the code: JoglTestApp.java

The app puts a JOGL window in the upper left corner of each monitor.  When I run this, I get the exception from my original post.  I have an ATI Radeon HD 5700 Series graphics card.  I have also tested it on machines with an NVidia graphics card and the issue does not seem to happen.

Occasionally (very infrequently) the application does run without any issues.  Running it again almost always causes it to break and throw the exception.

EDIT:
Ok I tried NEWT too and it throws a similar exception.  The only real difference in the code (aside from the obvious) is that I added 100 to the x and y positions because GLWindow.setPosition does not function like JFrame.setLocation.  GLWindow.setPosition appears to move the top left corner of the *canvas* (vs. the window) to the position given.

JoglTestApp.java - NEWT

My Setup:
2 Samsung SyncMaster 305T monitors both running at 2560x1600 resolution.
1 ATI Radeon HD 5700 Series graphics card
Windows 7

Thanks!
Luke