VirtualBox

Opened 5 months ago

Last modified 4 months ago

#21931 assigned defect

RDP to windows crashes VM

Reported by: peteruk Owned by: pentagonik
Component: other Version: VirtualBox-7.0.12
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Hi so I have found that running 7.0.8 runs stable when you RDP to host with a VM running but with 7.0.12 when you RDP not all the time but most of the time crashes the VM which in my case is linux mint with the host being windows 11.

Thanks

Attachments (3)

VM crash .zip (467.5 KB ) - added by peteruk 5 months ago.
VBox.zip (85.4 KB ) - added by peteruk 5 months ago.
AudioDebug
VBox.2.zip (346.4 KB ) - added by peteruk 5 months ago.

Download all attachments as: .zip

Change History (26)

by peteruk, 5 months ago

Attachment: VM crash .zip added

comment:1 by fth0, 5 months ago

FWIW, the crash happened in the Aud0Wr01 thread, which is part of VirtualBox's audio implementation. It has been reported a few times in the VirtualBox forums, always on Windows hosts with VirtualBox 7.0.12, sometimes when using RDP to connect to the Windows host. As a workaround, disabling audio in the VM configuration helped affected users.

comment:2 by pentagonik, 5 months ago

Owner: set to pentagonik
Status: newassigned

comment:3 by pentagonik, 5 months ago

I tried to reproduce the issue here, but works for me so far.

Can you please enable verbose audio logging and retry reproducing it? That would help me fixing the issue. Please attach the verbose log to this defect then.

You can enable verbose audio logging as described here: https://www.virtualbox.org/wiki/AudioDebug

Do you have a (full) memory dump from the crashed VM process?

by peteruk, 5 months ago

Attachment: VBox.zip added

comment:4 by peteruk, 5 months ago

Ok have audio logging I think attached

comment:5 by pentagonik, 5 months ago

Thanks for the logs -- I think I now know what's going on. I'll provide a test build shortly with a fix to try out.

comment:6 by pentagonik, 5 months ago

The Windows testbuild is now available here for download:

https://www.virtualbox.org/download/testcase/VirtualBox-7.0.13-160767-Win.exe

Please let me know if this fixes the issue for you. Thanks!

comment:7 by peteruk, 5 months ago

Its now stable thanks

in reply to:  1 comment:8 by mikhail rokhin, 5 months ago

Replying to fth0:

FWIW, the crash happened in the Aud0Wr01 thread, which is part of VirtualBox's audio implementation. It has been reported a few times in the VirtualBox forums, always on Windows hosts with VirtualBox 7.0.12, sometimes when using RDP to connect to the Windows host. As a workaround, disabling audio in the VM configuration helped affected users.

In my case #21925 it fails at "ICH AC97" controller only, when host audio driver is set to "Default".

When "Intel HD Audio" is chosen, it succeeds.

When "SoundBlaster 16" is chosen, it succeeds.


In my case #21925 it fails at "ICH AC97" controller only, when host audio driver is set to "Windows DirectSound".

When "Intel HD Audio" is chosen, it succeeds.

When "SoundBlaster 16" is chosen, it succeeds.


When host audio driver is set to "Windows Audio Session" / "Null", it succeeds for all three controllers ("ICH AC97", "SoundBlaster 16", "Intel HD Audio").



And also there is some suspicious too long delay when usb (USB 3.0 xHCI) is detached at guest system shutdown/reboot.

comment:9 by peteruk, 5 months ago

DAM its not stable sorry:(

Last edited 5 months ago by peteruk (previous) (diff)

comment:10 by pentagonik, 5 months ago

@peteruk Can you please supply the new audio verbose logs then?

comment:11 by peteruk, 5 months ago

Too big to Attach here this time this is where I uploaded it https://ufile.io/nukmavdq

comment:12 by pentagonik, 5 months ago

Thanks for the logs -- I'll provide a new test build shortly w/ a different approach.

comment:13 by pentagonik, 5 months ago

The new testbuild is available for download here: https://www.virtualbox.org/download/testcase/VirtualBox-7.0.13-160798-Win.exe

comment:14 by kishi, 5 months ago

Build 160798 seems to be working for the case in #21896 (160767 didn't and crashed as well). Haven't done extensive testing but no crashes so far upon connecting/disconnecting with Sunshine+Moonlight. Keeping my fingers crossed that it stays that way. Will post an update on any further crashes should they occur. Thanks for the work put into this.

comment:15 by peteruk, 5 months ago

So the new build is not crashing but like 7.0.8 where it did not crash over some RDP on and off the guest VM sound then stops working over RDP not a big problem for me I just need it to run as a server just something to note.

comment:16 by pentagonik, 5 months ago

@peteruk Just to be clear, it doesn't crash but the audio device switching does *not* work anymore? Did audio device switching work for you, at least occasionally, on 7.0.8?

Can you please supply new log files when reproducing this?

@kishi: Does audio device switching work for you with build 160798?

I need to make sure that this not just fixes the crash issue, but that audio device switching still is working as it should. Thanks!

by peteruk, 5 months ago

Attachment: VBox.2.zip added

comment:17 by peteruk, 5 months ago

Yes no more crash I can be RDP with linux mint guest VM and hear test sounds over RDP then after some RDP on and off the test sounds from linux mint do not happen log file attached

Last edited 5 months ago by peteruk (previous) (diff)

comment:18 by pentagonik, 5 months ago

Thanks for the new logs.

I've prepared the next test build, incorporates another fix: https://www.virtualbox.org/download/testcase/VirtualBox-7.0.13-160845-Win.exe

Please let me know if this test build works better for you. Thanks!

comment:19 by peteruk, 5 months ago

Yes audio is now stable when RDP thanks for the fix

in reply to:  16 ; comment:20 by kishi, 5 months ago

Replying to pentagonik:

@peteruk Just to be clear, it doesn't crash but the audio device switching does *not* work anymore? Did audio device switching work for you, at least occasionally, on 7.0.8?

Can you please supply new log files when reproducing this?

@kishi: Does audio device switching work for you with build 160798?

I need to make sure that this not just fixes the crash issue, but that audio device switching still is working as it should. Thanks!

Device switching works on both 160798 and 160845 (and did work back on 7.0.10 for my case). Also both haven't crashed yet, currently testing the latter, will post an update on any crash should it occur.

in reply to:  20 comment:21 by kishi, 5 months ago

Replying to kishi:

Replying to pentagonik:

@peteruk Just to be clear, it doesn't crash but the audio device switching does *not* work anymore? Did audio device switching work for you, at least occasionally, on 7.0.8?

Can you please supply new log files when reproducing this?

@kishi: Does audio device switching work for you with build 160798?

I need to make sure that this not just fixes the crash issue, but that audio device switching still is working as it should. Thanks!

Device switching works on both 160798 and 160845 (and did work back on 7.0.10 for my case). Also both haven't crashed yet, currently testing the latter, will post an update on any crash should it occur.

I've noted some crackling and slowdowns on audio playback using Intel HD Audio/Windows DirectSound on 160845 that were not on 160798 but those are not there when using Intel ACH97/Default. Still have to workout more details but lacking the time to test more throughly right now so this is just a heads-up.

Update: was not able to reproduce this issue again so far (might have been something within the VM itself).

Last edited 4 months ago by kishi (previous) (diff)

comment:22 by mikhail rokhin, 4 months ago

After recent Windows update to [Version 10.0.22621.3007] it started to fail at

"Windows Audio Session" / "ICH AC97"

and only when FreeBSD is boot up to login prompt (not failing at boot menu).

New logs at https://www.virtualbox.org/attachment/ticket/21925/Logs.2.zip

comment:23 by mikhail rokhin, 4 months ago

Sorry, didn't notice the update VirtualBox-7.0.14-161095-Win , which solves the failure in my case.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use