Trying to lock adapter 0 even though it is already locked
See original GitHub issueDescribe the bug Room Assistant seems to stop working after a while on an Intel NUC
To reproduce Steps required to reproduce the issue.
Relevant logs
Log output that correlates to the bug. You can get debug output with room-assistant -v
.
UnhandledPromiseRejectionWarning: Error: Trying to lock adapter 0 even though it is already locked
at BluetoothService.lockAdapter (/usr/lib/node_modules/room-assistant/dist/integrations/bluetooth/bluetooth.service.js:107:23)
at BluetoothService.inquireClassicRssi (/usr/lib/node_modules/room-assistant/dist/integrations/bluetooth/bluetooth.service.js:41:20)
at BluetoothClassicService.handleRssiRequest (/usr/lib/node_modules/room-assistant/dist/integrations/bluetooth-classic/bluetooth-classic.service.js:92:52)
at ClusterService.emit (events.js:315:20)
at ClusterService.processEvent (/usr/lib/node_modules/room-assistant/node_modules/democracy/lib/democracy.js:372:12)
at ClusterService.processEvent (/usr/lib/node_modules/room-assistant/dist/cluster/cluster.service.js:121:15)
at Socket.<anonymous> (/usr/lib/node_modules/room-assistant/node_modules/democracy/lib/democracy.js:73:14)
at Socket.emit (events.js:315:20)
at UDP.onMessage [as onmessage] (dgram.js:910:8)
(node:187) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 810)
Relevant configuration Paste the relevant parts of your configuration below.
Expected behavior The error should not occur
Environment
- room-assistant version: 2.11.2
- installation type: Hass.io
- hardware: NUC
- OS: HomeAssistantOS
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Trying to lock adapter 0 even though it is already locked #921
If the scheduler sees that the adapter is already in use (i.e locked) then it will skip sending a new request until the...
Read more >Fix MicroSD Adapter Constantly Locking - YouTube
I am sure you have been presented with an annoying write error while trying to load and unload content from your MicroSD Cards...
Read more >ActiveMQ KahaDB always locking and waiting - Stack Overflow
I am running ActiveMQ 5.9.0 on windows 7. Here is what prints out when I start it via cmd prompt: C:\activemq\apache-activemq- ...
Read more >Cannot login as admin after upgrade vRealize Operations to ...
This issue can occur when an adapter instance, or another application has the incorrect Operations Manager admin password saved. The adapter ...
Read more >Locking/Unlocking the Bootloader | Android Open Source ...
If set to 0 , the user needs to boot to the home screen, open the Settings > System > Developer options menu...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I get this error all the time on the current version 2.18.4!
I didn’t understand, anyway I have tried to use bluetooth into NUC but also a usb CSR8510, no success.