VirtualBox

Opened 3 years ago

Last modified 3 years ago

#20516 new defect

E_FAIL (0x80004005) after host PC hibernation

Reported by: Asper Owned by:
Component: other Version: VirtualBox 6.1.26
Keywords: Cc:
Guest type: all Host type: Windows

Description

After I woke up the host PC from hibernation, when I try to start a virtual machine I get the following error:

Failed to open a session for the virtual machine Windows_10_Pro_LV_2018_SP1.
The VM session was aborted.
Result Code: E_FAIL (0x80004005)
Component: SessionMachine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}

The error occurs before the VirtualBox logo appears in the launch screen of the virtual machine.
The error does not happen if the host PC is shutdown and restarted.
The error has occurred after updating virtualbox to 6.1.26.

VirtualBox Graphical User Interface
Version 6.1.26 r145957 (Qt5.6.2)
Host OS: Windows 7 Pro 64bit
Guest OS: Windows 10 Pro 64bit or Windows 7 Pro 64bit

As highlighted in the forum post https://forums.virtualbox.org/viewtopic.php?f=6&t=103708, the problem is solved by completely disabling the audio of the virtual machine.

The issue is repeatable, by re-enabling the audio the error appears the same.

The VBox.log file is attached for checking.

Attachments (2)

VBox.log (72.0 KB ) - added by Asper 3 years ago.
VBox.log file is attached for checking
VBoxHardening.log (375.2 KB ) - added by Asper 3 years ago.

Download all attachments as: .zip

Change History (5)

by Asper, 3 years ago

Attachment: VBox.log added

VBox.log file is attached for checking

by Asper, 3 years ago

Attachment: VBoxHardening.log added

comment:1 by fth0, 3 years ago

Short evaluation of the crash info inside the VBox.log file:

The Windows 7 host was woken up after hibernation. The Windows 10 VM was started from power down state. In DrvHostAudioWasApi.cpp:1542+1544, in drvHostWasEnumAddDev, dereferencing pFormat->nChannels while pFormat == 0 leads to an exception caught by rtR3WinUnhandledXcptFilter.

comment:2 by bird, 3 years ago

Right, pFormat is NULL, which it shouldn't be. Added a workaround for it in r146412 (trunk) / r146143 (6.1).

comment:3 by fth0, 3 years ago

FWIW, an additional test by Asper showed that running a VirtualBox VM before hibernating the host OS is probably a necessary pre-condition for the issue to happen.

@bird probably meant r146413 (6.1), since the test build 6.1.27.r146314 already existed before.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette