Skip to content

[Bug]: When using IRremote and Adafruit_NeoPixel together [ESP32 Arduino Core 3.2.0], the app crashes #1295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Nourbakhsh-Rad opened this issue Apr 27, 2025 · 2 comments

Comments

@Nourbakhsh-Rad
Copy link

Nourbakhsh-Rad commented Apr 27, 2025

The type of board you are using.

ESP32 Devkitc V4

What IDE are you using?

Arduino IDE

What IR protocol are you using?

NEC

Pin(s) used for IR-receive, if not default.

Arduino pin number: IO4

The library version you are working with.

I use the latest Arduino library version 4.4.1 and verified this!

What are the steps to reproduce this issue?

  1. ESP32 Arduino Core 3.2.0
  2. Using IRremote and Adafruit_NeoPixel to change LED color and brightness
  3. IRremote pin = IO4
  4. WS2812 LED pin = IO0

What happens?

After the board is turned on, as soon as the LED lights up (Adafruit_NeoPixel::show() ), the board will restart
Note: There is no problem if ESP32 Arduino Core 3.13 is used

Decoding stack results
0x40082b90: panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c line 54
0x4008f6e1: esp_system_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/port/esp_system_chip.c line 87
0x40095b09: assert_func at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/assert.c line 80
0x40092642: vTaskPriorityDisinheritAfterTimeout at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c line 5267
0x4008ff57: xQueueSemaphoreTake at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c line 1842
0x400eb7ba: espShow at d:\Sketchbook\Arduino\libraries\Adafruit_NeoPixel\esp.c line 52
0x400eb6ff: Adafruit_NeoPixel::show() at d:\Sketchbook\Arduino\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp line 3176
0x400e5cd3: OneLEDpx_state(LEDpx_State, unsigned char, LEDpx_color_t, unsigned char, LEDpx_color_t, unsigned char) at d:\Sketchbook\Arduino\libraries\SHNlibs\LPXutil.cpp line 509
0x400e452a: Initial() at F:\Electronic\SAAT co!_2025
\T24M22h/T24M22h.ino line 413
0x400e454b: setup() at F:\Electronic\SAAT co!_2025
\T24M22h/T24M22h.ino line 56
0x400f6ec7: loopTask(void*) at C:\Users\SAATco\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.2.0\cores\esp32\main.cpp line 59
0x40090366: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c line 139

@Nourbakhsh-Rad Nourbakhsh-Rad changed the title [Bug]: When using IRremote and Adafruit_NeoPixel together, the app crashes [Bug]: When using IRremote and Adafruit_NeoPixel together [ESP32 Arduino Core 3.2.0], the app crashes Apr 27, 2025
@ArminJo
Copy link
Collaborator

ArminJo commented Apr 27, 2025

Why do you think, this is an issue in IRremote and not in ESP32 core?

@Nourbakhsh-Rad
Copy link
Author

Nourbakhsh-Rad commented Apr 28, 2025

  1. IRremote and Adafruit_NeoPixel work fine on their own
  2. This problem occurs when the Adafruit_NeoPixel 'show()' function is called
  3. This problem occurs when using ESP32 Arduino core 3.2.0 and does not exist in lower versions
    The problem may be with the ESP32 Arduino core or Adafruit_NeoPixel library....

@ArminJo ArminJo closed this as completed Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants