Recording video caused VM to hang and abort

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Petr Vones
Posts: 89
Joined: 27. Dec 2012, 01:20
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10 64-bit
Location: Czech Republic

Recording video caused VM to hang and abort

Post by Petr Vones »

Windows 10 host and guest. When I tried to stop the video recording of the session, the VM window became unresponsive and later aborted. Important part of the log is

Code: Select all

12:31:17.648212 Recording: Enabling
12:31:17.659831 Recording: Recording video of screen #0 with 1600x1105 @ 1151 kbps, 25 FPS (track #1)
12:31:17.659839 Recording: Recording video of screen #0 to 'C:\Users\xxx\VirtualBox VMs\xxx\xxx.webm'
12:31:17.659850 Recording: Starting ...
12:31:17.660150 Recording: Started
12:31:17.692687 GUI: UIMediumEnumerator: Medium-enumeration finished!
12:31:17.693671 GUI: UIMediumEnumerator: Medium-enumeration finished!
12:31:40.433849 Recording: Disabling
12:31:40.433871 Recording: Stopping ...
12:31:40.433883 Recording: Stopped
12:31:40.434297 Recording: Recording screen #0 stopped
12:31:40.434302 Recording: Error stopping recording screen #0, rc=VERR_SHARING_VIOLATION
Attachments
VBox.zip
Video recording crash
(19.8 KiB) Downloaded 14 times
bss
Posts: 1
Joined: 5. Jun 2021, 23:35

Re: Recording video caused VM to hang and abort

Post by bss »

VirtualBox 6.1.22

Same error here.

Recording: Error stopping recording screen #0, rc=VERR_SHARING_VIOLATION

Recording works fine when VM is configured with 1 monitor.

When VM is configured with 2 monitors the recording starts ok but when you stop the recording the entire VM locks up and stops responding and requires the VM to be forcibly shutdown by ending the Process via Task Manager.

This behavior is happening on several different PC's with different hardware configurations.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Recording video caused VM to hang and abort

Post by scottgus1 »

A 'sharing violation' means one program tries to write to a file that another program is using. Having this error crash a VM isn't supposed to happen, there should be ways to trap the error and recover.

If either of you have a definite procedure to cause this error to happen (as in, for bss, if you can always make it happen with two monitors but never with one, for example), please post a log where this happens to the Bugtracker. Please post a log with the VM starting from full shutdown (Petr, your log starts from a saved state.) Give a full explanation of how to recreate the error.
Post Reply