Dear all!
I am currently porting a Virtual Globe application (http://globe.sintef.no/) from Java3d to JOGL, and have run into some problems that shows up on only a few machines. I wonder if you could take a look and help me looking for fixes and workarounds. I do also hope that so many as possible could try the application and give me a hint of problems and sucesses. mail to: rune.aasgaard@sintef.no
Web start URL for the JOGL globe:
http://globe.sintef.no/webstart/virtualglobe.jnlp
The GL stuff in the application is pretty straightforward, using vertex, texture, normal arrays and glDrawElements. There is most probably not trivial errors, as it works on most computers, with a few exceptions. All of them also have pretty recent drivers and they all run the Java3d version of the Globe without problems.
I can’t give you the complete sourcecode, but I will show some extracts where useful. I don’t think it will be possible to create a shaved down minimum example.
The problems I have experienced are:
- The strangest of them all: The application starts, loads its data, shows the java GUI, JOGL is initialized and the render loop runs. Both the init and display calls are obviously called and even the “frame pr. second” counter shows resonable values, but nothing appears in the GL window! Not even the clearColor! Only a Java-gray background. The most embarrasing thing is that this happens for a journalist that may give the project a little PR…
Platform: XP pro, Intel 865G integrated graphics, newest drivers, runs the JGears demo without problems. Java 1.4.2
- The whole JavaVM freezes up after a few seconds! Even the Java Web Start Controle panel freezes! The computer has no problems with the java3d version, running OpenGl java3d. When the VM freezes it really stops using CPU, and the memory usage shows reasonable values.
Platform: Dual PIII 1GHz, Linux Suse 9.0, GF2 GTX, about 1/2 year old drivers, Java 5: latest official release.
- The last one really looks like a driver or graphics card problem: The application freezes when I do a “dump GL window to clipboard”, using glReadPixels. It uses very little CPU, and reasonable application memory, but the total Windows memory count increases steadily, indicating that something is rotten in the graphicas drivers.
Plattform: PIII Celeron 1.4GHz, XP pro, ATI radeon 9200 plain ol’ PCI, new drivers.
Anybody got an idea?