VirtualBox

Ticket #8350 (new defect)

Opened 3 years ago

Last modified 2 years ago

Installing Java6 24 causes guest to become unresponsive and CPU hits 100%

Reported by: Perryg Owned by:
Priority: major Component: other
Version: VirtualBox 4.0.2 Keywords: java, 100% CPU
Cc: Guest type: Windows
Host type: Linux

Description

I can and have installed the latest JAVA - build 24 on metal and it works as it is supposed to, but when installing on a Windows guest (32-bit) everything goes fine until you select test on the Oracle JAVA site, or try to open the JAVA applet in the control panel. Once the java processes loads everything goes to pieces. I have tested this on (VirtualBox) Version 4.0.2 and the latest from SVN r35963 with the exact same results.

There is at least one other having this issue as seen here:  http://forums.virtualbox.org/viewtopic.php?f=7&t=39042&p=175075#p175075

Can you confirm that this is an issue since it works on metal?

Attachments

Windows-XPpro-2011-02-15-16-35-37.log Download (72.3 KB) - added by Perryg 3 years ago.

Change History

Changed 3 years ago by Perryg

comment:1 Changed 3 years ago by jimoe

As noted in the forum thread, java 6 update 3 does work. Somewhere between update 3 and update 21 something changed to cause the defect.

Luckily we have only one application that we need that requires Java.

comment:2 Changed 3 years ago by jimoe

I should also mention I experience this issue on both Linux and MacOS hosts.

comment:3 Changed 3 years ago by Perryg

Update: If I remove the guest additions and install the additions for 3.2.12 I am able to use the java applet and also pass the oracle java online test. So as far as I can tell there must be some type of regression causing this and is located in the guest additions and not the main program.

Versions tested 4.0.2, 4.0.4, & r35998

comment:4 Changed 3 years ago by frank

Ok, that's a valuable hint!

comment:5 Changed 3 years ago by Perryg

Sorry i didn't think of that before. I am just not used to the GAs causing this kind of issue. I looked and looked in the source and I could not find anything that I thought would cause this but since it did work on metal and not in the VM I needed to ask the experts.

comment:6 Changed 3 years ago by Perryg

Digging a little deeper it seems that I can update to the 4.0.4 GAs and JAVA still works as long as I don't install the 3D portion of the GAs. As soon as they are installed the Windows XP guest refuses to run JAVA 6-24 and throws the guest & host to 98-100% CPU. (host = 98-100% of one core since SMP is not being used on this 32-bit guest).

I thought about just running with the 3.2.12 GAs but the performance of the guest was pitiful, and the graphics was lagging by 50%. Hope this narrows it down some more.

comment:7 Changed 3 years ago by leonid

Just tested in locally with 6.18 and upgrading to 6.24, it works without issues.

Could you post the following information from your *guest* system, go to $windir$\system32, usually c:\windows\system32 and check file size and version information of those files: d3d9.dll, msd3d9.dll.

If both files refer to some VirtualBox versions, there might have been an issue with upgrading additions on your guest. To resolve, reinstall DirectX9 and then reinstall additions.

comment:8 Changed 3 years ago by Perryg

There indeed seems to be a difference. d3d9=4.0.4.0 while msd3d9=4.0.0 Both owned by VirtualBox.

Installing DirectX9 over the top of the existing files made no difference but uninstalling the GAs did remove all files except d3d9.dll now owned by MS.

Installing the GAs in safe mode did so differently this time. This time the msd3d9.dll that was owned by VB 4.0.0 was not replaced and left to MS Ver 5.3.2600.5512

I can only guess here but the installer seems to have not noticed the change to msd3d9.dll or had no way to put it back to original. Have you changed the way you are doing 3D and files used/replaced since version 4.0.0, or version numbers that would cause this?

comment:9 Changed 3 years ago by leonid

So there seems to be an installer issue. Btw, you didn't wrote but I assume java 6.24 works fine for you now, after reintalling DirectX and GAs ?

comment:10 Changed 3 years ago by Perryg

Yes it works with version 6-24 now.

I agree that there seems to be an issue with the installer. But have the files been changed to not include msd3d9.dll with a VirtualBox version? From what I can see when the original files were replaced they were not saved (backed up) to be able to restore them requiring the end used to actually revert them manually either by using the Windows install CD to put them back or by installing DirectX-9.

If this is the case then it could go a long way into explaining some of the 4.0.* issues where others using autocad or other 3D enabled software and needing to revert back to 3.2.12 to get a working version.

comment:11 Changed 3 years ago by Perryg

One other thing that I have noticed now that I have the XP guest properly installed with the 4.0.4 GAs. Usually during the day while using the guest it would simply hang using SolSuite (one of my lives little pleasures) and need to be forced shutdown. This has stopped being an issue as well.

comment:12 Changed 3 years ago by Perryg

Best I can tell the easiest way to fix this should it happen is to run in a command window

sfc /scannow

in the Windows guest to get the original Windows files back and then to reboot in safe mode and install the guest additions again. I appears to happen only in a guest that had a previous install of the guest additions with 3D. I have tracked it back to at least 3.2.0 but I could not check all since I don't have them anymore. Also if you have a new install (not upgrade) it does not appear to have the issue.

comment:13 Changed 3 years ago by jimoe

sfc /scannow

Does that restore ALL of the changed DLLs? That is, everything different from the original installation DVD?

I am not very familiar with Windows. How do I remove DirectX? And then restore it?

comment:14 Changed 3 years ago by Perryg

@jimoe,

Yes AFAIK it compares the now installed checksums with the original system files and restores the ones that are not the same. I also tested installing DirectX9 (download from Microsoft) to replace only those files affected and had to actually uninstall the guest additions and install them again to get it to work. A simple re-install did not work for me in this test. Since I only use this guest for testing and my one lives little pleasure the only files that were actually replaced were the ones that VirtualBox replaced to get the 3D effects, but YMMV so make a backup first.

comment:15 Changed 3 years ago by Perryg

@leonid,

It appears to me that it must have been a previous installer issue and may not be so much an issue with the new installer. I have checked various users and installs and the one thing that is common is that it must have had the GAs installed in safe mode prior. New installs don't have this issue. Even if you had a prior install as long as it was => ver 4.0.* it seems to work properly with an upgrade.

Could this have something to do with the addition and hold of wddm in the code? Some regression quirk?

comment:16 Changed 3 years ago by jimoe

I can verify that this is still broken in VirtualBox-4.0-4.0.6_71344_openSUSE113-1.x86_64.

comment:17 Changed 3 years ago by jimoe

And it persists in v4.0.8.

comment:18 Changed 3 years ago by Perryg

@jimoe,

You need to look at and post what was asked above and I quote:

"Could you post the following information from your *guest* system, go to $windir$\system32, usually c:\windows\system32 and check file size and version information of those files: d3d9.dll, msd3d9.dll."

comment:19 Changed 3 years ago by jimoe

04/21/2011 03:48 AM 78,128 d3d9.dll 02/17/2011 09:46 AM 78,128 msd3d9.dll 04/21/2011 03:48 AM 164,144 VBoxD3D9.dll

How do I get the version info?

comment:20 Changed 3 years ago by leonid

Right click file in the windows explorer..properties etc. But looking at file sizes, it's 99% you'd fix issues by reinstalling directx and then reinstalling guest additions.

comment:21 Changed 3 years ago by jimoe

d3d9.dll - 4.0.6.0

msd3d9.dll - 4.0.4.0

VBoxD3D9.dll - ??

I did re-try re-installing DirectX. It said it was up to date and would not install it.

comment:22 Changed 2 years ago by alanbur

Still broken in VB 4.1.14, WinXP & Java 6_32 on Solaris 11. Tried all the usual workarounds - uninstall in safe mode, reinstall etc etc - the only one that works is the J2D_D3D.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use