jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.8k stars 623 forks source link

ERROR : Unable to initialize GPIO #541

Open youlikesoilove opened 5 months ago

youlikesoilove commented 5 months ago

I ran the program separately on Raspberry Pi 4b and it works fine. I am using GPIO.12. But after merging with my other code, an error occurred that was Unable to initialize GPIO. In my system, I used the writingpi (c) library, bcm2835 (c) library, and a webrtc business code. I tested the code of the ws2811 library, wiringpi (c), and bcm2835 (c) library separately, and even opened them in parallel without any problems. However, when mixing the business code for these gpio operations with the webrtc business code, this issue occurred. It should be noted that webrtc only handles audio and video transmission and compression content, and does not operate on gpio. Please help me analyze where the problem may be. webrtc: https://github.com/kclyu/rpi-webrtc-streamer

youlikesoilove commented 5 months ago

I tried to open two control ws2811 programs without any errors, so I find it difficult to understand why an Unable to initialize GPIO error occurred, and then a Segmentation fault occurred, which made me very frustrated