From 96a843d762bbf7c3c7bc955ac3f73c71d618322b Mon Sep 17 00:00:00 2001 From: Gonzalo Date: Fri, 13 Feb 2026 01:28:23 -0500 Subject: [PATCH] fix: bump engine_task default stack to 8192 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 4096 isn't enough for the DTLS-SRTP handshake — mbedTLS blows through the stack during cert generation and triggers a FreeRTOS stack overflow. Backtrace: dtls_srtp_selfsign_cert → dtls_srtp_init → peer_open → engine_task 8192 fixes it. Tested on ESP32-S3 with PSRAM. --- components/livekit/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/livekit/Kconfig b/components/livekit/Kconfig index 7fa1492..c00027e 100644 --- a/components/livekit/Kconfig +++ b/components/livekit/Kconfig @@ -14,7 +14,7 @@ menu "LiveKit" default 32 config LK_ENGINE_TASK_STACK_SIZE int "Stack size for LiveKit engine task" - default 4096 + default 8192 config LK_PUB_INTERVAL_MS int "How often to capture and send AV frames" default 20