Finally, turn off content sharing on the HiSense TV. This worked for me:
System > Application Settings > Content Sharing (Disable this)
Turn this off and buy a Fire TV Stick 4K and/or Chromecast TV :-)
Mike
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Windows 11 Home 22H2 22621.1992
Hang due to a deadlock between dashost.exe (Device association) and svchost [WLAN AutoConfig i.e. WlanSvc] for unknown reason, but caused by something waiting on the WiFi card. Drivers are up-to-date [RTL8822CE].
I need help figuring out what it is waiting for, specifically, is it caused by some enumeration issue or BT pairing locked somehow (my guesses). Not able to use bluetooth device at all for scanning, pairing, removing existing paired devices, etc. I can't even switch it on from the Taskbar.
WaitingOn output [on Task Manager after clicking "close"]: https://pastebin.com/b6RjkPxt
(I've gone and traced on all waiting processes. dashost seems to depend on WLanSvc, which in turn depends on dashost which is causing the cycle. dashost also created a massive amount of threads for unknown reasons.)
Relevant questions I asked on "answers" site, with some footage:
Task Manager hang - how to reproduce:
Bluetooth settings:
Finally, turn off content sharing on the HiSense TV. This worked for me:
System > Application Settings > Content Sharing (Disable this)
Turn this off and buy a Fire TV Stick 4K and/or Chromecast TV :-)
Mike
So I finally solved it!
Source of the problem: an Android TV (HiSense model) connected to my network. Yes. A TV caused this issue.
Details:
The root cause is the TV generates random UUIDs for UPNP network discovery every few minutes. That means it poses as a new device. This caused windows to add it to the device list (Device Association Framework, aka DAF) as a new device. This means now 1000s of devices (which is the same device) filled the device tree causing it to enumerate forever. Thus the "deadlock".
TaskManager uses DasHost to enumerate devices for some reason, so that hangs.
Bluetooth relies on device discovery, so that also hangs, and Settings app along with it.
Network discovery in file explorer obviously also needs Device discovery, so that also hangs.
How to solve:
.\psexec.exe -i -d -s c:\windows\regedit.exe
This will open regedit as SYSTEM user.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DeviceAssociationService\State\Store
You will find hundreds of keys with a DAFUPnPProvider#uuid.... name. You need to delete ALL of these ones (only inside the Store key, nothing else) and not any other prefix. ONLY THE DAFUPnPProvider ones, like so:
Just select the first key, hit delete key, then enter key. Keep doing it till I think WiFiDirect key and Bluetooth device keys remains.
BT fixed, TaskManager Fixed, and Network Discovery Fixed.
How I discovered it:
I was just checking the handles of the service and discovered the "Store" key by accident. I checked it and found maybe 300 or so keys. I knew this was an issue with UPnP because of the name of the service. Also I posted an issue before of the TV causing UPnP flood, but didn't think Windows would go for a toss due to this.
Update:
You might also need to check out this key as well:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\SWD\DAFUPnPProvider
It also contains some UPnP discovery keys. There might be more places that I'm not aware of.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
2 deleted commentsComments have been turned off. Learn more