OpenGL Error

Discussions about using Windows guests in VirtualBox.
Post Reply
Nekromancer
Posts: 17
Joined: 8. Aug 2009, 20:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows (W2K-WXP-W7), Linux, OpenSolaris, Android, Others

OpenGL Error

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: OpenGL Error

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Nekromancer
Posts: 17
Joined: 8. Aug 2009, 20:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows (W2K-WXP-W7), Linux, OpenSolaris, Android, Others

Re: OpenGL Error

Post 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
Nekromancer
Posts: 17
Joined: 8. Aug 2009, 20:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows (W2K-WXP-W7), Linux, OpenSolaris, Android, Others

Re: OpenGL Error

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: OpenGL Error

Post 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:

Code: Select all

sfc /scannow
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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Nekromancer
Posts: 17
Joined: 8. Aug 2009, 20:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows (W2K-WXP-W7), Linux, OpenSolaris, Android, Others

Re: OpenGL Error

Post 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
Perseverance
Posts: 5
Joined: 13. Mar 2011, 16:14
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WinXP

Re: OpenGL Error

Post by Perseverance »

:mrgreen:
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 8)
fatbuttlarry
Posts: 2
Joined: 4. Nov 2011, 16:18
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, WinXP, Win7, Win8

Re: OpenGL Error

Post 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
Attachments
Untitled.png
Untitled.png (17.07 KiB) Viewed 10313 times
Post Reply