VirtualBox

Ticket #11402 (new defect)

Opened 15 months ago

Last modified 15 months ago

VirtualBox's guest additions are using WineD3D instead of DirectX

Reported by: cirrus Owned by:
Priority: major Component: 3D support
Version: VirtualBox 4.2.6 Keywords: DirectX, WineD3D
Cc: Guest type: Windows
Host type: Linux

Description

Hello,

during the using the VirtualBox I have got fatal error in one game (KalOnline, producer: InixSoft). The application log has showed up that the game is using Wine's Direct3D libraries instead of Microsoft Direct3D. Because the Wine Direct3D isn't full, it leads to the crash.

I have tried running other game (SimCity 4 Deluxe), it shows up "Could not initialize DirectDraw" error, but runs anyway and is fully functional.

My guest is Windows XP, but the situation is the same under Windows 7. I have installed guest additions and the latest DirectX and 3D acceleration in the settings is enabled.

I include screenshot of the import section from VBoxD3D9.dll (deasemblation made by IDA Pro 5.0), which shows that VBoxD3D9.dll imports WineD3D.dll, VBox.log both from Windows XP and Windows 7 machines, crash log of the game which includes backtrace of the stack and the config log of SimCity 4 Deluxe - both generated on Windows XP installation. I also include hardware configuration from my host, generated by Syslinux.

PS: I know that it's not good idea to use virtual machines for gaming, but there are applications that are using DirectX, for example media players, and they can be affected aswell

Attachments

VBox.log Download (57.2 KB) - added by cirrus 15 months ago.
Log from the machine with Windows XP
VBox.2.log Download (102.7 KB) - added by cirrus 15 months ago.
Log from the machine running Windows 7
38.png Download (78.4 KB) - added by cirrus 15 months ago.
Proof that VBoxD3D9.dll imports wined3d.dll
Exception.txt Download (8.5 KB) - added by cirrus 15 months ago.
Log from KalOnline, includes backtrace
MX8PC-config-log.txt Download (4.1 KB) - added by cirrus 15 months ago.
Configuration log from SimCity
system.txt Download (2.4 KB) - added by cirrus 15 months ago.
Hardware configuration of host

Change History

Changed 15 months ago by cirrus

Log from the machine with Windows XP

Changed 15 months ago by cirrus

Log from the machine running Windows 7

Changed 15 months ago by cirrus

Proof that VBoxD3D9.dll imports wined3d.dll

Changed 15 months ago by cirrus

Log from KalOnline, includes backtrace

Changed 15 months ago by cirrus

Configuration log from SimCity

Changed 15 months ago by cirrus

Hardware configuration of host

comment:1 Changed 15 months ago by misha

Using wineded by VBox D3D components is expected behavior, since VBox D3D is using wined3d for D3D->opengl conversion for executing them by the host opengl backend.
It should not crash though ofcourse. Let me try to reproduce it here and see what we can do to fix this.

comment:2 Changed 15 months ago by misha

  • Component changed from guest additions to 3D support

comment:3 Changed 15 months ago by wnssh

try the old guest additions maybe help.
i have a game has the same problem in and ollydbg point the memory error in d3d9.dll
4.2.0 is fine but 4.2.2 will crach
just like https://www.virtualbox.org/ticket/11112
now that game works fine with vbox 4.2.6 and guest additions 4.2.0

if anybody care i can upload the ollydbg screenshots, but if not i just keep using old one.

Last edited 15 months ago by wnssh (previous) (diff)

comment:4 Changed 15 months ago by cirrus

Confirmed, 4.2.0 works, but 4.2.2 doesn't. At least game runs now, but HackShield shows up "undefined hacks" error and points at d3d9.dll. And the game runs at 10 FPS.

comment:5 Changed 15 months ago by misha

Please give a try to the test build of VBox Guest Additions posted here: https://www.virtualbox.org/ticket/11369#comment:3 and let me know if it solves your crash problem.
Please use it with VBox 4.2.6 host installation.

comment:6 Changed 15 months ago by cirrus

Now amount of FPS is decent, but HackShield still gives "undefined hacks" error while pointing at d3d9.dll. Maybe HackShield calculates d3d9.dll's MD5 and compares it with normal Windows one?

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use