We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm currently trying to narrow it down but I believe the error happens when sendInfo of websocket.cpp is invoked.
assert failed: insert_free_block heap_tlsf.c:233 (current && "free list cannot have a null entry")
The S3 N8R8 has 8MB PSRAM.
The text was updated successfully, but these errors were encountered:
Update: I was able to fix/workaround the issue by adding a custom allocator which uses SPI and the PSRAM for the JSON document:
#include <Arduino.h> #include <ArduinoJson.h> struct SpiRamAllocator { void* allocate(size_t size) { return heap_caps_malloc(size, MALLOC_CAP_SPIRAM); } void deallocate(void* pointer) { heap_caps_free(pointer); } void* reallocate(void* ptr, size_t new_size) { return heap_caps_realloc(ptr, new_size, MALLOC_CAP_SPIRAM); } };
Details: https://arduinojson.org/v6/how-to/use-external-ram-on-esp32/
Unfortunately now the ESP32 crashes when I try to invoke the first request.
assert failed: spinlock_acquire spinlock.h:122 (result == core_id || result == SPINLOCK_FREE)
Returning a basic hello world works.
Sorry, something went wrong.
No branches or pull requests
I'm currently trying to narrow it down but I believe the error happens when sendInfo of websocket.cpp is invoked.
The S3 N8R8 has 8MB PSRAM.
The text was updated successfully, but these errors were encountered: