Skip to content

assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1854 (Required to lock TCPIP core functionality!) #431

@Ray-25

Description

@Ray-25

Platform

ESP32

IDE / Tooling

Arduino (IDE/CLI)

What happened?

Hi, I am green in programming, however, I ensembled different libraries to make the ESP32CAM to video stream asynchronously using up to ver. 3.0.3 of ESP32 firmware by Espressif and version 3.3.12 of EspAsynWebServer (ESP32Async) using the Arduino IDE. Everything was fine until I used the latest version of 3.3.8 of ESP32 by Espressif and 3.10.3 of EspAsynWebServer (and also Async TCP). It raised a lots of problems.

Some solved issue is adding "const" in unit8_t AsyncServer::status() const in AsyncTCP.cpp and uint_t status() const: in AsyncTCP.h (suggested by Gemini AI - const mismatch between the newer AsyncTCP and ESPAsyncWebServer libraries)

Other problem found including "assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1854 (Required to lock TCPIP core functionality!)" (LwIP requirement issue?) It was suggested to find out all the tcp_new() or tcp_alloc so as to be wrapped by LOCK_TCPIP_CORE() and UNLOCK_TCPIP_CORE(), but it seem many places inside the library involved and making me a mess ..., anyway it may out of my present skill ...

I wish to know wether the above issue was solved or has been solved in the latest version?

Stack Trace

21:47:00.942 -> System startup !
21:47:00.942 -> Client Mode is set
21:47:01.525 -> ........
21:47:05.007 -> WiFi connected in client mode
21:47:05.007 -> Camera Stream Ready! Go to: http://192.168.8.5
21:47:05.007 -> mDNS responder started
21:47:05.195 ->
21:47:05.195 -> assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1854 (Required to lock TCPIP core functionality!)
21:47:05.238 ->

Minimal Reproductible Example (MRE)

test.txt

I confirm that:

  • I have read the documentation.
  • I have searched for similar discussions.
  • I have searched for similar issues.
  • I have looked at the examples.
  • I have upgraded to the lasted version of ESPAsyncWebServer (and AsyncTCP for ESP32).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions