Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner periodically crashes on Windows #1330

Closed
vmacari opened this issue Jun 9, 2023 · 1 comment · Fixed by #1331
Closed

Scanner periodically crashes on Windows #1330

vmacari opened this issue Jun 9, 2023 · 1 comment · Fixed by #1331

Comments

@vmacari
Copy link
Contributor

vmacari commented Jun 9, 2023

  • bleak version:
    • bleak==0.20.2
    • bleak-winrt==1.2.0
  • Python version: Python 3.11.3
  • Operating System: Windows 10
  • BlueZ version (bluetoothctl -v) in case of Linux: ?

Description

Scanning for devices

What I Did

self.devices = await BleakScanner.discover()

Logs


handle: <Handle BleakScannerWinRT._stopped_handler(<_bleak_winrt...002092A07A7F0>, <_bleak_winrt...002092A0EA710>)>
Traceback (most recent call last):
  File "...asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "...\site-packages\bleak\backends\winrt\scanner.py", line 213, in _stopped_handler
    len(self.seen_devices), self.watcher.status
                            ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'status'
vmacari added a commit to vmacari/bleak that referenced this issue Jun 9, 2023
@vmacari
Copy link
Contributor Author

vmacari commented Jun 9, 2023

Added a pull request #1331

@dlech dlech closed this as completed in 8edde25 Jul 18, 2023
@dlech dlech linked a pull request Jul 18, 2023 that will close this issue
@dlech dlech mentioned this issue Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant