Skip to content

After some time of regular querying (~hours), libgpiod_pulsein starts using 100% CPU and subsequent readings fail #50

Closed
@michaellass

Description

@michaellass

Reported by @darton in #47 (comment) and adafruit/Adafruit_Blinka#210 (comment):

The problem with 100% usage of libgpiod_pulsein CPU on Raspberry Pi with DHT22 still exists.

However, sometimes you have to wait several hours for it to appear and permanently prevent reading data from the DHT22 sensor.

After today's update to the version below, the script runs 8 hours without any problems.

Raspbian GNU/Linux 10 (buster)
Raspberry Pi 3 Model B Plus Rev 1.3
Python 3.7.3
Adafruit-Blinka-5.3.4
Adafruit-PlatformDetect-2.16
Adafruit-PureIO-1.1.5 RPi.GPIO-0.7.0
adafruit-circuitpython-dht-3.5.1
pyftdi-0.51.2 pyserial-3.4 pyusb-1.0.2
rpi-ws281x-4.2.4 sysv-ipc-1.0.1

But after 8 hours, the problem came back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions