Skip to content

libgpiod v2 repeatedly prints "Lost access to message queue" during normal GPIO reads on Raspberry Pi OS (Bookworm/Trixie) #189

Description

@glennoky

On Raspberry Pi OS (Bookworm/Trixie), libgpiod v2 prints the message "Lost access to message queue" to stderr during normal, successful GPIO operations.
This occurs even when the GPIO line is functioning correctly and the application is reading valid data.
The message appears to be debug‑level noise rather than an actual error, but it is emitted unconditionally and bypasses Python’s stderr redirection, making it difficult to suppress.

Environment
• Hardware: Raspberry Pi 4B
• OS: Raspberry Pi OS Bookworm (Debian 12 base)
• Kernel: Linux 6.12.75 (default Pi OS kernel)
• libgpiod version: v2.2.1 (from Raspberry Pi OS repositories)
• Language: Python 3.13.5
• Library using libgpiod: Adafruit CircuitPython DHT (which uses libgpiod v2 internally)

Minimal Reproduction
Python script:
import adafruit_dht
import board
dht = adafruit_dht.DHT22(board.D17)
print("Temp:", dht.temperature)
print("Hum:", dht.humidity)
Produces:
Temp: 22.5
Hum: 50.0
Lost access to message queue

The sensor values are correct and stable.
The message appears every time the GPIO line is accessed.
A way to suppress this message or fix the condition it is complaining about would be appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions