microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.76k stars 4.89k forks source link

[audio/simpleaudiosample] Blue Screen of Death after installing SimpleAudioSample #1100

Open maruf-rahad opened 5 months ago

maruf-rahad commented 5 months ago

I recently attempted to install the driver SimpleAudioSample.inf by devcon obtained from repository on windows 11.

After completion of the installation process, my system encountered a crash and leading to an automatic restart with Blue Screen of Death. I cannot figure it out the reason I am facing this as I am new to kernel mode driver development. I am attaching the picture of it for better understanding.

Please suggest me a way of avoiding this or the root cause of it for further analysis. Thanks.

bsod1

maruf-rahad commented 5 months ago

I have figured it out. It's happening only for debug build version. In debug version the driver will print all logs including error logs which will call INT3 (Interrupt 3 - trap to debugger). This will create BSOD(Blue Screen of Death) If you use the release build version then you may not face this problem. Thanks

N00ree commented 2 months ago

+1 Thanks for providing the solution to this. (Also a newbie learning this ^^)

Besides the fact that the debug version didn't work, I somehow destroyed my VM and couldn't install any drivers anymore. I also used "devcon remove" to remove all the device but this didn't help. God bless that I had a snapshot of my VM (Win 11 on Hyper-V). After reverting and starting over it all worked.