Skip to content
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

Error while running #3

Open
davidkleng opened this issue Nov 19, 2021 · 2 comments
Open

Error while running #3

davidkleng opened this issue Nov 19, 2021 · 2 comments

Comments

@davidkleng
Copy link

davidkleng commented Nov 19, 2021

Hi, this fork works better than the original library but im getting this error while runing, somethings when a device connects or reloads a page.

[E][AsyncTCP.cpp:797] _flushWriteQueue(): socket 63 lwip_write() failed errno=104
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c:1442 (xQueueGenericReceive)- assert failed!
abort() was called at PC 0x4008a605 on core 0

ELF file SHA256: 0000000000000000

Backtrace: 0x4008964c:0x3ffdf610 0x400898c9:0x3ffdf630 0x4008a605:0x3ffdf650 0x4017b638:0x3ffdf690 0x4017b782:0x3ffdf6b0 0x4017b81d:0x3ffdf6e0 0x4017c1f1:0x3ffdf710 0x4017b331:0x3ffdf770 0x4008a8da:0x3ffdf7c0
  #0  0x4008964c:0x3ffdf610 in invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
  #1  0x400898c9:0x3ffdf630 in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
  #2  0x4008a605:0x3ffdf650 in xQueueGenericReceive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c:2038
  #3  0x4017b638:0x3ffdf690 in AsyncClient::_clearWriteQueue() at .pio\libdeps\esp32dev\AsyncTCPSock\src/AsyncTCP.cpp:360
  #4  0x4017b782:0x3ffdf6b0 in AsyncClient::_error(signed char) at .pio\libdeps\esp32dev\AsyncTCPSock\src/AsyncTCP.cpp:360
  #5  0x4017b81d:0x3ffdf6e0 in AsyncClient::_notifyWrittenBuffers(std::deque<AsyncClient::notify_writebuf, std::allocator<AsyncClient::notify_writebuf> >&, int) at .pio\libdeps\esp32dev\AsyncTCPSock\src/AsyncTCP.cpp:360
  #6  0x4017c1f1:0x3ffdf710 in AsyncClient::_sockIsWriteable() at .pio\libdeps\esp32dev\AsyncTCPSock\src/AsyncTCP.cpp:360
  #7  0x4017b331:0x3ffdf770 in _asynctcpsock_task(void*) at .pio\libdeps\esp32dev\AsyncTCPSock\src/AsyncTCP.cpp:360
  #8  0x4008a8da:0x3ffdf7c0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
@davidkleng davidkleng changed the title Error while runing Error while running Nov 19, 2021
@zekageri
Copy link

Me too.

@zekageri
Copy link

I have the exact same problem

Decoding stack results
0x40083e19: psram_enable at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_hw_support/port/esp32/spiram_psram.c line 864

Decoded:

Decoding stack results
0x40083e19: panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c line 402
0x4008edc1: esp_system_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_system.c line 128
0x400943d1: __assert_func at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/assert.c line 85
0x4008fd75: xQueueSemaphoreTake at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c line 1545
0x4018ed47: AsyncClient::_clearWriteQueue() at lib/AsyncTCPSock/src/AsyncTCP.cpp line 1076
0x4018eea8: AsyncClient::_error(signed char) at lib/AsyncTCPSock/src/AsyncTCP.cpp line 997
0x4018efef: AsyncClient::_notifyWrittenBuffers(std::deque   >&, int) at lib/AsyncTCPSock/src/AsyncTCP.cpp line 845
0x4018f301: AsyncClient::_sockIsWriteable() at lib/AsyncTCPSock/src/AsyncTCP.cpp line 732
0x4018e8bb: _asynctcpsock_task(void*) at lib/AsyncTCPSock/src/AsyncTCP.cpp line 142

Relevant part:

// In normal operation this should be a no-op. Will only free something in case
// of errors before all data was written.
void AsyncClient::_clearWriteQueue(void)
{
    xSemaphoreTake(_write_mutex, (TickType_t)portMAX_DELAY);
    while (_writeQueue.size() > 0) {
        if (_writeQueue.front().owned) {
            if (_writeQueue.front().data != NULL) ::free(_writeQueue.front().data);
        }
        _writeQueue.pop_front();
    }
    xSemaphoreGive(_write_mutex);
}

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