Page 1 of 1

COMException (0x80BB000C): Cannot close medium because it has 1 child media

Posted: 6. Apr 2020, 08:46
by Bidyut
VirtualBox: v6.1.4
Language: C#.NET
OS: Windows 10 Pro

We have a few snapshots generated in Windows Server 2016 and copied to another machine running Windows 10 Pro. While registering the snapshot using 'OpenMedium', its state is 'MediumState.MediumState_Inaccessible'. Later, while closing the snapshot, we are encountering the below error.

System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium '<SnapshotPath>' because it has 1 child media at VirtualBox.IMedium.Close() System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close mediumĀ 

Note: The above error did not occur when those snapshots were generated in Windows Server 2012 R2!

Re: COMException (0x80BB000C): Cannot close medium because it has 1 child media

Posted: 6. Apr 2020, 08:50
by Bidyut
In addition, there is an internal error captured.

The instruction at 0x00007FFE0AAAC2C3 referenced memory at 0x000000000044EFFFF. The memory could not be read.

Re: COMException (0x80BB000C): Cannot close medium because it has 1 child media

Posted: 6. Apr 2020, 08:59
by Bidyut
In the beginning, while starting the VM and restoring the snapshots (created in Windows Server 2016), we encounter the referenced memory problem first as a popup message (attached). On acknowledgment, VM goes to the aborted state. As a next step, we are restarting the VM which lead to the COMException given below.

System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium '<SnapshotPath>' because it has 1 child media at VirtualBox.IMedium.Close() System.Runtime.InteropServices.COMException (0x80BB000C): Cannot close medium

Re: COMException (0x80BB000C): Cannot close medium because it has 1 child media

Posted: 6. Apr 2020, 09:06
by Bidyut
We have also checked the below scenario which is working without any problem.

Generated the snapshots from Windows 10 Pro (1903) machine and copied to another Windows 10 Pro (1903) machine. Able to restore the snapshots successfully.