Page 1 of 1
OpenGL Error
Posted: 3. Sep 2010, 10:29
by Nekromancer
Hi all,
Since the update to 3.2.8 (Windows XP 32 bits on Linux 64 bits host) some Java applications which use a GUI produce the following error:
"OpenGL Warning: State tracker is being re-initialized.."
and CPU usage by the java.exe process goes to 99% (must kill it eventually).
XP guest additions installed, even with experimental D3D support (although the error above seems to be related to OpenGL).
I running Java 1.6.0_21, but I'm quite confident Java is not the culprit.
Everything worked OK up to 3.2.6
I'm lost at what to do within the VirtualBox and resorted to run the same Java apps in the Linux host, however running these within the XP guest is much preferred, so any comments welcome.
Thank you in advance.
Kind regards,
Miguel
Re: OpenGL Error
Posted: 3. Sep 2010, 20:07
by Sasquatch
Disable 3D. The GA only provide DirectX features for 3D, by default OpenGL is presented and it seems that doesn't need the Guest Additions, or at least the specific 3D option. Disabling 3D will also disable OpenGL features. It's possible that the Java program will fail when you lack OpenGL though.
Re: OpenGL Error
Posted: 6. Sep 2010, 10:21
by Nekromancer
Hi Sasquatch,
3D (and 2D) disabled. That removes the error message, however CPU usage still goes to 100%, and the Java program never reaches the point of displaying the GUI, making it unusable.
Again, what makes me wonder what happened is the fact it used to work up to the previous VirtualBox version. Will try it again when the next version is out.
Thanks!
Miguel
Re: OpenGL Error
Posted: 9. Sep 2010, 10:24
by Nekromancer
Out of curiosity... Is there a way to get rid of the experimental D3D drivers installed by the Guest Additions?
Would like to experiment a bit having only the OpenGL portion installed.
TIA!
Miguel
Re: OpenGL Error
Posted: 9. Sep 2010, 20:03
by Sasquatch
Just remove the GA and install again them without 3D. Do make sure you remove them from safe mode. If you want to be 100% sure it's gone, execute the following
after removal but
before reinstallation:
This has to be ran with administrator privileges, so if you have Vista or newer, run the command prompt as admin in case you have UAC enabled.
Re: OpenGL Error
Posted: 10. Sep 2010, 10:53
by Nekromancer
Guess what? Now I did all that (uninstall Guest Additions in safe mode, reboot, sfc /scannow as administrator, reinstall Guest Additions in normal mode without selecting D3D, reboot) and the Java program GUI works OK within the virtual machine.
It's definitely the D3D in 3.2.8 Guest Additions which is broken (as everything worked in previous versions). The error message seemingly related to OpenGL was kind of misleading...
Thanks for the guidance!
Miguel
Re: OpenGL Error
Posted: 3. Nov 2011, 16:11
by Perseverance
The current version of Virtualbox 4.1.4 seems to have resurrected this old bug. Same problems, same symptoms. These problems are unacceptable, when you release new products you should do at least one regression test of your stuff: JAVA + Virtualbox
With 4.0.14 everything works wonderfully

Re: OpenGL Error
Posted: 4. Nov 2011, 16:31
by fatbuttlarry
I'm experiencing this issue in Windows 7 x32, but not Windows XP x32. Both have VirtualBox Guest Additions installed. (VirtualBox 4.1.4, Kubuntu 11.10 x32 Host)
I was able to use my Java program by disabling Direct3D on the command line:
Code: Select all
java -Dsun.java2d.d3d=false -jar my_program.jar
Since my application does not use any Direct3D features, the impact is minimal and I am able to continue testing.
See also attachment [Untitled.PNG]
-Tres