Skip to content

Unhandled Exception: Could not wait for GPIO events., epoll_wait: Invalid argument #51

Description

@TID-Test

Hello,

I am having this bug when using Raspberry pi 5 with Yocto scarthgap with the build configuration below:

Build Configuration:
BB_VERSION = "2.8.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "raspberrypi-cm5-io-board"
DISTRO = "poky"
DISTRO_VERSION = "5.0.15"
TUNE_FEATURES = "aarch64 crypto cortexa76"
TARGET_FPU = ""
meta-clang = "scarthgap:5c602337ea1a80fb7217eeda04e396cf90587dca"
meta-euro-cm5 = "master:43f45c1c8902e0389d86797928f32bf1a14e987c"
meta-flutter = "scarthgap:b6e338a8b1fc9f8907f2c9a167c972a1907ff2ea"
meta-lts-rust-mixins = "scarthgap/rust:c19b6da5a3afd3c892b3b1b44983e993ac6d5308"
meta-lts-u-boot-mixins = "scarthgap/u-boot:a44882db02a0ed0f149371831bfbe067665eb42b"
meta-filesystems
meta-initramfs
meta-networking
meta-oe
meta-python = "scarthgap:2b26d30fc7f478f5735d514f0c1bc28f6a4148b6"
meta-raspberrypi = "scarthgap:2c646d29912dcc873469a57b1c207e1549c5094d"
meta-swupdate = "scarthgap:226701adf0f7c8ed08d4d6a7783e88d34ef2d5e9"
meta-swupdate-boards = "scarthgap:7f47e51420a8a6f8b2f6ad9cf5634c605b508e39"
meta
meta-poky = "scarthgap:72983ac391008ebceb45edc7a8f0f6d5f4fe715c"

I am adding the GPIOD library with the script below:

IMAGE_INSTALL:append = " libgpiod libgpiod-tools"

root@raspberrypi-cm5-io-board:~# ls -l /usr/lib/libgpiod.so.*
lrwxrwxrwx 1 root root 17 Mar 9 2018 /usr/lib/libgpiod.so.2 -> libgpiod.so.2.2.3
-rwxr-xr-x 1 root root 67408 Mar 9 2018 /usr/lib/libgpiod.so.2.2.3

Error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Could not wait for GPIO events., epoll_wait: Invalid argument
0 new PlatformInterface._private. (package:flutter_gpiod/src/gpiod.dart:298:7)
1 _RootZone.runUnaryGuarded (dart:async/zone.dart:1778:10)
2 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
3 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
4 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19)
5 _StreamController._add (dart:async/stream_controller.dart:663:7)
6 _StreamController.add (dart:async/stream_controller.dart:618:5)
7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193:12)

Do you know how can i fix this issue?

I tried to change between GPIOD versions 1 and 2 and i have the same error message, afeter having this message the interrupt is not working anymore.

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