You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if it's DHT or pulseio fault but sometimes when using CTRL-C(with custom signal handler) program gets stuck on self._mq.receive(block=True, type=type) line in bcm283x/pulseio/PulseIn.py file, ps prints: libgpiod_pulsei <defunct> and sometimes before getting stuck it prints line of numbers e.g. 73, 51, 75, 50, 75, 53, 26, 53, 26, 51, 73, 52, 73, 53, 26, 53, 26, 53, 26, 51, 27, 52, 26, 53, 26, 53, 26, 53, 26, 51, 28, 51, 73, 52, 73, 53, 73, 52, 73, 51, 74, 52, 73, 53, 73, 54, 26, 51, 74, 52, 73, 51, 75, 53, 26, 52, 27, 51, 73, 53, 26, 51, 75, 53.
Python version: Python 3.9.2
OS: Raspbian GNU/Linux 11 (bullseye)
Kernel: Linux 5.15.61-v7+
Architecture: armv7l
Hardware: Raspberry Pi 3 Model B V1.2
DHT22: ASAIR AM2302 SNE1222402511-J
Thread stacktrace:
<RepeatTimer(Thread-1, started 1985381440)>
File "/usr/lib/python3.9/threading.py", line 912, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/home/iwans/repozytorium_github/sensors-and-screen-controller/dht_bug.py", line 16, in run
self.function(*self.args, **self.kwargs)
File "/home/iwans/repozytorium_github/sensors-and-screen-controller/dht_bug.py", line 27, in print_data
humidity = dht.humidity
File "/home/iwans/repozytorium_github/.venv/lib/python3.9/site-packages/adafruit_dht.py", line 284, in humidity
self.measure()
File "/home/iwans/repozytorium_github/.venv/lib/python3.9/site-packages/adafruit_dht.py", line 219, in measure
pulses = self._get_pulses_pulseio()
File "/home/iwans/repozytorium_github/.venv/lib/python3.9/site-packages/adafruit_dht.py", line 148, in _get_pulses_pulseio
while self.pulse_in:
File "/home/iwans/repozytorium_github/.venv/lib/python3.9/site-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py", line 168, in __len__
message = self._wait_receive_msg()
File "/home/iwans/repozytorium_github/.venv/lib/python3.9/site-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py", line 104, in _wait_receive_msg
message = self._mq.receive(block=True, type=type)
Minimal code to replicate problem(stacktrace is from different code run on another thread so I can detect when it hangs and print stacktrace).
Run code, press CTRL-C and after a while(couple seconds) program should hang.
I'm not sure if it's DHT or pulseio fault but sometimes when using CTRL-C(with custom signal handler) program gets stuck on
self._mq.receive(block=True, type=type)
line inbcm283x/pulseio/PulseIn.py
file, ps prints:libgpiod_pulsei <defunct>
and sometimes before getting stuck it prints line of numbers e.g.73, 51, 75, 50, 75, 53, 26, 53, 26, 51, 73, 52, 73, 53, 26, 53, 26, 53, 26, 51, 27, 52, 26, 53, 26, 53, 26, 53, 26, 51, 28, 51, 73, 52, 73, 53, 73, 52, 73, 51, 74, 52, 73, 53, 73, 54, 26, 51, 74, 52, 73, 51, 75, 53, 26, 52, 27, 51, 73, 53, 26, 51, 75, 53
.Python version:
Python 3.9.2
OS:
Raspbian GNU/Linux 11 (bullseye)
Kernel:
Linux 5.15.61-v7+
Architecture:
armv7l
Hardware:
Raspberry Pi 3 Model B V1.2
DHT22:
ASAIR AM2302 SNE1222402511-J
Thread stacktrace:
Installed adafruit packages:
Minimal code to replicate problem(stacktrace is from different code run on another thread so I can detect when it hangs and print stacktrace).
Run code, press CTRL-C and after a while(couple seconds) program should hang.
The text was updated successfully, but these errors were encountered: