Title: RuntimeError: can't start new thread · Issue #17 · STMicroelectronics/BlueSTSDK_Python · GitHub
Open Graph Title: RuntimeError: can't start new thread · Issue #17 · STMicroelectronics/BlueSTSDK_Python
X Title: RuntimeError: can't start new thread · Issue #17 · STMicroelectronics/BlueSTSDK_Python
Description: Traceback (most recent call last): File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 329, in main(sys.argv[1:]) File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 273, in main device.disable_notifications(feature...
Open Graph Description: Traceback (most recent call last): File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 329, in main(sys.argv[1:]) File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 273, in m...
X Description: Traceback (most recent call last): File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 329, in main(sys.argv[1:]) File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py&q...
Opengraph URL: https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/17
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RuntimeError: can't start new thread","articleBody":"> Traceback (most recent call last):\r\n File \"/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py\", line 329, in \u003cmodule>\r\n main(sys.argv[1:])\r\n File \"/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py\", line 273, in main\r\n device.disable_notifications(feature)\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 986, in disable_notifications\r\n self.set_notification_status(characteristic, False)\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 942, in set_notification_status\r\n self._NOTIFICATION_ON if status else self._NOTIFICATION_OFF, True)\r\n File \"/usr/local/lib/python3.7/dist-packages/bluepy/btle.py\", line 543, in writeCharacteristic\r\n return self._getResp('wr')\r\n File \"/usr/local/lib/python3.7/dist-packages/bluepy/btle.py\", line 416, in _getResp\r\n self.delegate.handleNotification(hnd, data)\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 1119, in handleNotification\r\n self._node._update_features(char_handle, data, True)\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 359, in _update_features\r\n offset += feature.update(timestamp, data, offset, notify_update)\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/feature.py\", line 330, in update\r\n self._notify_update(sample)\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/feature.py\", line 274, in _notify_update\r\n self._thread_pool.submit(listener.on_update(self, sample))\r\n File \"/usr/lib/python3.7/concurrent/futures/thread.py\", line 160, in submit\r\n self._adjust_thread_count()\r\n File \"/usr/lib/python3.7/concurrent/futures/thread.py\", line 181, in _adjust_thread_count\r\n t.start()\r\n File \"/usr/lib/python3.7/threading.py\", line 847, in start\r\n _start_new_thread(self._bootstrap, ())\r\nRuntimeError: can't start new thread\r\nDevice PM1V201 disconnected unexpectedly.\r\n\r\n> Exiting...\r\n\r\n> Exception ignored in: \u003cfunction Peripheral.__del__ at 0xb6606780>\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.7/dist-packages/bluepy/btle.py\", line 630, in __del__\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 559, in disconnect\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 450, in _unexpected_disconnect\r\n File \"/usr/local/lib/python3.7/dist-packages/blue_st_sdk/node.py\", line 398, in _update_node_status\r\n File \"/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py\", line 93, in on_disconnect\r\n\r\nI was doing some testing where i keep connecting and then disconnecting the program to only one sensor, and somehow i encountered this. \r\n \r\nMy Program is mostly the same as [example_ble_1.py](https://github.com/STMicroelectronics/BlueSTSDK_Python/blob/master/blue_st_examples/example_ble_1.py) with some less modification with removing the choice part and replacing it with loop of selecting all of them. \r\n \r\nI also change the number of notifications to 1, so that the program will only connect to each feature once ( with the exception of the temperature having two temperature)\r\n\r\nIf my count is right, i have done more or less 70 automated connection and then disconnection.","author":{"url":"https://github.com/ArthurKun21","@type":"Person","name":"ArthurKun21"},"datePublished":"2019-10-16T06:14:50Z","url":"https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/17"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56af3c99-98a9-c090-a0df-f88908c2f0e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B534:288D73:1860045:20B2043:6B05414B |
| html-safe-nonce | 8384f39c335681e45e62c787a92c618c47a380cc51af37f61218c356da3126ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTM0OjI4OEQ3MzoxODYwMDQ1OjIwQjIwNDM6NkIwNTQxNEIiLCJ2aXNpdG9yX2lkIjoiMzA1NDYxMDc3MzEyMjA0MDEzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c4f3701d02f66c43b7f81d3bd15cd24334f2ebf97346e708936af620cd4c0105 |
| hovercard-subject-tag | issue:507638104 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STMicroelectronics/BlueSTSDK_Python/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9c52d9013f585b52aa160d804d1a9bd68645b321bb46de6d8b54c231d7bf966/STMicroelectronics/BlueSTSDK_Python/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9c52d9013f585b52aa160d804d1a9bd68645b321bb46de6d8b54c231d7bf966/STMicroelectronics/BlueSTSDK_Python/issues/17 |
| og:image:alt | Traceback (most recent call last): File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 329, in main(sys.argv[1:]) File "/home/pi/BlueSTSDK_Python/blue_st_examples/pm3.py", line 273, in m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ArthurKun21 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/STMicroelectronics/BlueSTSDK_Python git https://github.com/STMicroelectronics/BlueSTSDK_Python.git |
| octolytics-dimension-user_id | 10744877 |
| octolytics-dimension-user_login | STMicroelectronics |
| octolytics-dimension-repository_id | 125541395 |
| octolytics-dimension-repository_nwo | STMicroelectronics/BlueSTSDK_Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 125541395 |
| octolytics-dimension-repository_network_root_nwo | STMicroelectronics/BlueSTSDK_Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width