question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DotNet error during connection after Windows 10 May 2020 Update

See original GitHub issue
  • bleak version: 0.7.1
  • Python version: 3.7.7
  • Operating System: Windows 10 Version 2004 (May 2020 Update)

Description

  • After Windows 10 May Update (version 2004), connection with ble peripheral returns a BleakDotNetTaskError during the ‘Get Services’ step. Therefore, (connecting, get services, service explorer) don’t work, but (discover) works fine.
  • The returned error is: ‘bleak.exc.BleakDotNetTaskError: System.Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))’.
  • Confirmed that the root cause occurs due to Windows 10 May update by doing a clean install of Windows 10 version 1909 (November 2019) where everything works perfectly.
  • Peripheral is Arduino nano 33 BLE device with a Nordic nRF52840 microprocessor.
  • On the peripheral side, the connection is established even though the central fails to connect.

What I Did

Run any example code that attempts to connect with the peripheral (all except discover.py).

File "myenv\lib\site-packages\bleak\backends\client.py", line 49, in __aenter__
    await self.connect()
  File "myenv\lib\site-packages\bleak\backends\dotnet\client.py", line 150, in connect
    services = await self.get_services()
  File "myenv\lib\site-packages\bleak\backends\dotnet\client.py", line 237, in get_services
    loop=self.loop,
  File "myenv\lib\site-packages\bleak\backends\dotnet\utils.py", line 73, in wrap_IAsyncOperation
    raise BleakDotNetTaskError(op.ErrorCode.ToString())
bleak.exc.BleakDotNetTaskError: System.Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
BriFuturecommented, Mar 20, 2021

From the guide, the bluetooth firmware of LMP is 6.x, so the hardware is bluetooth 4.0,

The windows bluetooth device manager failed to connect my BLE5.0 device, so the problem may be caused by the driver.

1reaction
dlechcommented, Sep 14, 2020

FWIW, I have seen the Catastrophic failure error too on Windows 10 2004. I haven’t had time to troubleshoot yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolved issues in Windows 10, version 20H2 | Microsoft Learn
In this article. Resolved issues; Issue details. See a list of known issues that have been resolved for Windows 10, version 20H2 over...
Read more >
How to fix Windows 10 May 2020 Update problems - TechRadar
To do this, you need to use the CHKDSK command in the command prompt. Type "command prompt" into the search box in the...
Read more >
Windows 10 May 2020 Update gets fresh fixes in optional ...
This issue occurs if you use a group policy or local network configuration to disable active probing for the Network Connectivity Status ......
Read more >
New bug on Windows 10 May 2020 Update (version 2004 ...
Windows 10 customers are reporting "no internet" access in the Network Connectivity Status Indicator on devices running Windows 10 version ...
Read more >
How to Fix Windows 10 Update if it Freezes or Becomes Stuck
1. The first step is the safest way to resolve Windows 10 Update issues. The process will automatically scan for and detect problems...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found