Page 1 of 3

VirtualBox crashes with Windows 10 guest

Posted: 2. Aug 2018, 23:19
by wqiu
Hi,
just installed Windows 10 1803 guest on a a Macbook Pro with macOS 10.13.6.
virtualbox is 5.2.16

the guest has randomly crashed several times. I managed to save the crash report on the mac (see attached).
I wonder if anyone else is experiencing this crash?
any help is appreciated.

Best

Re: VirtualBox crashes with Windows 10 guest

Posted: 2. Aug 2018, 23:55
by socratis
wqiu wrote:the guest has randomly crashed several times
You attached a host crash, a VirtualBox crash on your host. Mac=Host, Win10=Guest.

Does this happen every time that you launch this VM?
Does it happen with any other VMs?

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 00:12
by wqiu
for most of the time, the VM works perfectly. don't know what triggers it, all of sudden, the VM is gone, and macOS tries to send the error report to Apple.

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 00:15
by socratis
It's not the VM that's going, it's VirtualBox that's crashing. Now, that's quite unusual.

Right-click on the VM in the VirtualBox Manager and select "Show Log". Save only the first "VBox.log", ZIP it and attach it to your response (see the "Upload attachment" tab below the reply form).

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 00:25
by wqiu
attached is the log file.

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 01:03
by socratis
You must have missed the ZIP it part... ;)

I changed the title of the thread from "Windows 10 guest crashes" to "VirtualBox crashes with Windows 10 guest", to better reflect the situation.

Other than that, your VM looks spotless. Anything "funny" installed on your Mac? Any system-wide modifying/monitoring/altering software? From anything that uses low level drivers to antivirus to ...

Please post the output of the following command from the Terminal:
  • kextstat | grep -v com.apple

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 01:12
by wqiu
Oh I am sorry I thought the log file is small so didn't bother to zip it :oops:
Thanks for fixing the title

The machine is fairly new so there isn't much software installed yet. The only questionable software installed is the Apple 10.13.6 Supplemental Update, which was trying to fix the thermal issue on new macbook pro 2018s

the output of the command kextstat | grep -v com.apple is:
Index Refs Address            Size       Wired      Name (Version) UUID <Linked Against>
  176    3 0xffffff7f85a4b000 0x64000    0x64000    org.virtualbox.kext.VBoxDrv (5.2.16) 8F6F825C-9920-39E4-AF20-6DD4F233D4F1 <7 5 4 3 1>
  178    0 0xffffff7f843af000 0x8000     0x8000     org.virtualbox.kext.VBoxUSB (5.2.16) 1731469A-4A2D-32D4-8F03-4D138AAE1FE9 <177 176 51 7 5 4 3 1>
  179    0 0xffffff7f843b7000 0x5000     0x5000     org.virtualbox.kext.VBoxNetFlt (5.2.16) 59F71856-C064-3B98-A8AD-B2C33164FBC2 <176 7 5 4 3 1>
  180    0 0xffffff7f843bc000 0x6000     0x6000     org.virtualbox.kext.VBoxNetAdp (5.2.16) 24514714-1702-3FF6-90F8-8F3E79B4D8A4 <176 5 4 1>

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 01:33
by socratis
wqiu wrote:The machine is fairly new so there isn't much software installed yet.
I was afraid you were going to say that, because the systems just came out. Hmm...

I don't have anything more for you at the moment. VirtualBox crashing is so rare that we don't have enough datapoints yet (and hopefully not in the future). I have some questions regarding the CPU that you have (i7-8850H) which is relatively new. I'm going to try and draw a developer's attention tomorrow and see what they have to say about it.

In the meantime, if you could install a Linux distro just for comparison, that would be great. Mint, Ubuntu, they're relatively easy to install and work with...

Re: VirtualBox crashes with Windows 10 guest

Posted: 3. Aug 2018, 04:31
by wqiu
Thanks for the help. I really appreciate it.
Will try to create a Linux VM tomorrow and see if it happens again.

Re: VirtualBox crashes with Windows 10 guest

Posted: 4. Aug 2018, 03:38
by wqiu
I installed Kubuntu, and played a few times. most of the time it works perfectly. Just 10 minutes ago when I shut down the ubuntu VM, and immediately after the guest window disappears (because of the shut down I guess ), macOS reported the VirtualBox crash again.

I have attached the VirtualBox log.

again, thanks for the help.

Re: VirtualBox crashes with Windows 10 guest

Posted: 8. Aug 2018, 11:52
by socratis
Since I don't have 10.13.6, there is a slight chance that this might be the issue. Another user (sddawson) reported a crash in the VirtualBox process with a slightly different scenario. See Can't use Win10 guest after fullscreen mode.

Maybe you two can coordinate with each other and verify each other's behavior?

Re: VirtualBox crashes with Windows 10 guest

Posted: 8. Aug 2018, 13:50
by sddawson
Not sure what we can coordinate on. Our crash logs are a bit similar, but not identical. I just cloned a Win7 VM, and after I send that fullscreen, save its state and restart it, I get exactly the same problem as my Win10 VM. Sure looks like a bug in Vbox, and maybe something to do with High Sierra or 10.13.6 in particular. What should the next step be?

Re: VirtualBox crashes with Windows 10 guest

Posted: 8. Aug 2018, 13:55
by andyp73
I have 10.13.6 running on a 5K 2017 iMac (iMac18,3). I haven't noticed any problems with my Windows 10 vm. Let me try following your full screen, save state and restart sequence and see what happens.

-Andy.

Re: VirtualBox crashes with Windows 10 guest

Posted: 8. Aug 2018, 14:31
by mpack
It could be a race condition of some kind. I would try allocating fewer cores to the VM, since allocating 100% of available cores is something you should usually avoid.

Oh, and please eject the GAs ISO from the VM.

Re: VirtualBox crashes with Windows 10 guest

Posted: 8. Aug 2018, 16:41
by wqiu
In my case, I have a 6-core (12 threads) CPU, so allocating 6 "CPU" to VM is still well within the green zone. I also have 32GB of RAM, and I can comfortably allocate 16GB of RAM to the VM.
However, ever since I lowered the number of "CPU"s to 4 for the Windows 10 guest VM and the Ubuntu 18.04 VM, Virtualbox seems to be stable now. I haven't seen a crash in 2 days. :roll:

I have also re-installed VirtualBox, though not sure if it helped or not

P.S. I also tried the fullscreen->save state->restart VM sequence for both Win10 and Ubuntu VM. Both of them are restored without any crashes.