win10 guest froze as soon as mic is requested

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
alienpenguin
Posts: 6
Joined: 11. Mar 2009, 11:46

win10 guest froze as soon as mic is requested

Post by alienpenguin »

Hello i am using vbox 6.1.30 on macOS 10.16.1
as soon as my windows 10 guest tries to access microphone the vm freezes and nothing short of force kill from macOS can resolve the situation.
audio output works fine.

attached are the logs taken from a cold start, i tried to power off as soon as the vm forze but i was not able to.

What i did:
1. cold start
2. open the default win10 sound recorder
3. clicked on the microphone icon and then accepted the usage (the window OS prompt)
4. i could hear that microphone was tried to be opened (i had bluetooth earphones at the moment of test, but nothing changes with BT disconnected using internal mic)
5. the vm was completely frozen
Attachments
Win10-2022-01-04-18-20-40.log
(118.22 KiB) Downloaded 9 times
granada29
Volunteer
Posts: 690
Joined: 3. Mar 2015, 07:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS, Windows

Re: win10 guest froze as soon as mic is requested

Post by granada29 »

In your log I see:

Code: Select all

00:00:59.846001 CoreAudio: macOS 10.14+ detected, checking audio input permissions
00:01:41.970394 GUI: Machine-window #0 deactivated
00:01:41.970465 GUI: Releasing mouse on focus out
00:01:41.978483 GUI: Releasing keyboard on focus out
00:01:42.000976 GUI: Machine-view #0 unfocused, reason=3
00:01:43.737413 Console: Machine state changed to 'Stopping'
I wonder if you to need enable VirtualBox in System Preferences->Security & Privacy->Privacy->Microphone

There have been many reports of VM's crashing when the VM attempts to use audio and the usual advice is to disable Audio in the VM Settings. That probably does not meet your use case. It would not hurt to submit a Bug Report via the tracker at https://www.virtualbox.org/report/11
alienpenguin
Posts: 6
Joined: 11. Mar 2009, 11:46

Re: win10 guest froze as soon as mic is requested

Post by alienpenguin »

thanks @granada29 but i think there are already tickets 20544 and 20773 that are (i think) duplicate of my own issue (not to mention at leat 8 different threads in the forums that show the same behaviour)
as you imagined right i do need to use microphone, so disabling audio input is not really an option.
i am not sure the problem resides within the permission request (as per request)...
what i tried so far:
- ticking / unticking the virtualbox app in the privacy panel of macos settings seems to modify anything (the app does no request permission at all to use mic)
- i reset the mic permission panel with : tccutil reset Microphone
this way the permission request does appear when the VM guest actually tries to use the mic, but nothing changes... the vm froze and i had to kill it.
basically there is no way to use built-in mic with macos right now (as of 6.1.34)
apo2
Posts: 70
Joined: 18. Jan 2018, 20:49

Re: win10 guest froze as soon as mic is requested

Post by apo2 »

Hi, @alienpenguin

approving VirtualBox to access built-in microphone in the System Preferences->Security & Privacy->Privacy is important but is not main cause to crash windows guest VM.
If you check off VirtualBox, the built-in microphone just won't work in windows guest VM.
In the Version 6.1.22 and before version of VirtualBox for MacOS X, Core Audio input is worked as VirtualBox's designed, also to use the dictation for Cortana and MS-Word.

I think after Version 6.1.24 (to 6.1.34) has changed significantly in the audio handling from 6.1.22 before.
In actual VBOX Logs show VirtualBox handled Core Audio Input expressly assigned to Recoding sink input as followings:

Code: Select all

00:01:27.257047 CoreAudio: macOS 10.14+ detected, checking audio input permissions
00:01:27.548088 Audio Mixer: Setting recording source of sink '[Recording] Line In' to '[Line In] Core Audio'
00:01:27.548124 HDA: Set recording source for 'Line In' to 'Core Audio'
00:01:34.938252 Audio Mixer: Setting recording source of sink '[Recording] Line In' to '<None>'
00:01:35.001855 CoreAudio: macOS 10.14+ detected, checking audio input permissions
00:01:35.213667 Audio Mixer: Setting recording source of sink '[Recording] Line In' to '[Line In] Core Audio'
00:01:35.213721 HDA: Set recording source for 'Line In' to 'Core Audio'

00:04:04.038138 Audio Mixer: Setting recording source of sink '[Recording] Line In' to '<None>'
00:04:04.094862 CoreAudio: macOS 10.14+ detected, checking audio input permissions
00:04:04.304817 Audio Mixer: Setting recording source of sink '[Recording] Line In' to '[Line In] Core Audio'
00:04:04.304885 HDA: Set recording source for 'Line In' to 'Core Audio'
father If you have used VirtualBox 6.1.3x, VM is crashed after following log message.

Code: Select all

01:05:37.329731 CoreAudio: macOS 10.14+ detected, checking audio input permissions
01:05:37.722183 CoreAudio: macOS 10.14+ detected, checking audio input permissions
these Log lines show to done checking audio input permissions, not occurred fault to be checking.
The crash may be caused next step of checking permissions.
Last edited by apo2 on 10. May 2022, 04:37, edited 1 time in total.
apo2
Posts: 70
Joined: 18. Jan 2018, 20:49

Re: win10 guest froze as soon as mic is requested

Post by apo2 »

FYI:
In some case of Windows 10 Pro 21H2 (build.19044) on VirtualBox 6.1.34 for MAcOS, it was possible to perform short speech recognition without crashing due to a fluke.

Log is followings;

Code: Select all

0:01:36.939134 Audio: Enabling input for driver 'Core Audio'
00:01:36.939665 Audio: Enabling input for driver 'Untitled'
00:01:36.939680 Audio: Enabling output for driver 'Untitled'
00:01:36.939932 Audio: Enabling input for driver 'Untitled'
00:01:36.939945 Audio: Enabling output for driver 'Untitled'
00:01:36.942994 Audio: Status has changed (input is enabled, output is enabled)
00:01:36.988875 GUI: UIMediumEnumerator: Medium-enumeration finished!
00:01:48.719840 CoreAudio: macOS 10.14+ detected, checking audio input permissions
Between 00:01:48 and 00:02:22, Cortana is perform by speech recognition.

Code: Select all

00:02:22.634088 CoreAudio: macOS 10.14+ detected, checking audio input permissions
00:02:22.777920 CoreAudio: macOS 10.14+ detected, checking audio input permissions
Post Reply