toptensoftware / VBoxHeadlessTray

Run a VirtualBox machine in a tray icon
180 stars 23 forks source link

Windows Not Shutting Down for 5.2 #29

Open apptaro opened 6 years ago

apptaro commented 6 years ago

When I use VBoxHeadlessTray 5.2, Windows 10 Home is not shutting down with the following message:

Then I check Task Manager, and VBoxSVC.exe process hanging around for 5 - 10 minutes. After the process ends, I can now shutdown Windows.

This issue does not happen when I use VirtualBox GUI and use the save state functionality.

Windows 10 Home + VirtualBox 5.2.6 + VBoxHeadlessTray 5.2.

apptaro commented 6 years ago

This is the content of VBoxSVC.log when shutting down:

00:00:53.572014          Saving settings file "C:\Users\xxx\VirtualBox VMs\CentOS7\CentOS7.vbox" with version "1.15-windows"
00:00:53.776524 Watcher  Saving settings file "C:\Users\xxx\VirtualBox VMs\CentOS7\CentOS7.vbox" with version "1.15-windows"
00:00:53.807777 Watcher  Reaper: Pid 10860 (2a6c) exited normally: 1073807364 (0x40010004)
00:08:32.857207 USBPROXY Getting USB descriptor failed with error 31
00:12:06.978803 main     VirtualBox: object deletion starts
00:12:06.978803 main     ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={4afe423b-43e0-e9d0-82e8-ceb307940dda} aComponent={MediumWrap} aText={Medium 'C:\Users\mmasuzawa\VirtualBox VMs\CentOS7\CentOS7.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=false aResultDetail=0
00:12:06.978803 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={9570b9d5-f1a1-448a-10c5-e12f5285adad} aComponent={VirtualBoxWrap} aText={The object is not ready}, preserve=false aResultDetail=0
00:12:06.978803 main     VirtualBox: object deleted

After 00:00:53.807777 it takes about 10 minutes before VBoxSVC.exe process ends.

apptaro commented 6 years ago

This may be related: https://www.virtualbox.org/ticket/15879

apptaro commented 6 years ago

So it happens this issue occurs for 5.1, too, as described in the issue #22.

thewinger commented 4 years ago

I'm in the same situation. No news in this front I guess...

toptensoftware commented 4 years ago

I've not looked into this recently so can't really comment. If someone can figure out a fix I'm happy to accept a pull request for it.