boblemaire / asyncHTTPrequest

asynchronous HTTP for ESP using ESPasyncTCP. Works like XMLHTTPrequest in JS.
GNU General Public License v3.0
65 stars 31 forks source link

Strange issue with ESP32 #50

Open mk3d opened 8 months ago

mk3d commented 8 months ago

Hello and thank you for the lib!

I use it with ESP8266 and ESP32 with the same code.

No problem with ESP8266, but with ESP32, when I run multiple requests, I have an error like this:

assert failed: xQueueGenericSend queue.c:832 (pxQueue->pcHead != ((void *)0) || pxQueue->u.xSemaphore.xMutexHolder == ((void *)0) || pxQueue->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle())

Backtrace: 0x40083671:0x3ffd5140 0x4008bd65:0x3ffd5160 0x40091331:0x3ffd5180 0x4008c81a:0x3ffd52b0 0x4014ca9d:0x3ffd52f0 0x40149c8b:0x3ffd5310 0x400da087:0x3ffd5330 0x400d3476:0x3ffd5370 0x400d6915:0x3ffd53e0 0x40161d67:0x3ffd54c0 0x400dbc11:0x3ffd54e0 0x400dc416:0x3ffd5510 0x400dc672:0x3ffd5550 0x400dc7be:0x3ffd55b0 0x400dc825:0x3ffd55e0 0x4014a621:0x3ffd5600 0x4014a675:0x3ffd5630 0x4014ab8a:0x3ffd5650

ELF file SHA256: f3850e2f88f105c1

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4

But, very strange, if I setDebug to true on each instance of asyncHTTPrequest, the issue don't occur.

Many thanks and best regards.