Skip to content

Stack canary watchpoint triggered (cam_task) with 3.3.0 #11672

@G-Remo

Description

@G-Remo

Board

ESP32 Cam

Device Description

ESP32-CAM-MB

Hardware Configuration

camera OV2640

Version

v3.3.0

Type

Task

IDE Name

Arduino IDE 1.8.19

Operating System

Windows 10

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

115200

Description

When switching to UXGA resolution system crash (more than 10 tests and 100% crash)

Sketch

exemple code "CameraWebServer" and #define CAMERA_MODEL_AI_THINKER

Debug Message

log:
"WiFi connecting....
WiFi connected
Camera Ready! Use 'http://192.168.1.27' to connect
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (cam_task) 
Core  0 register dump:
PC      : 0x4008e31a  PS      : 0x00060336  A0      : 0x80092658  A1      : 0x3ffb2550  
A2      : 0x3ffb0300  A3      : 0xffffffff  A4      : 0xb33fffff  A5      : 0x3f41d378  
A6      : 0x00000000  A7      : 0x00000001  A8      : 0x00060323  A9      : 0x3ffb2550  
A10     : 0x00000003  A11     : 0x00060323  A12     : 0x00060323  A13     : 0x00000020  
A14     : 0x3ffb2ab0  A15     : 0xff000000  SAR     : 0x00000004  EXCCAUSE: 0x00000001  
EXCVADDR: 0x00000000  LBEG    : 0x4008aaf1  LEND    : 0x4008ab01  LCOUNT  : 0xfffffffe  


Backtrace: 0x4008e317:0x3ffb2550 0x40092655:0x3ffb2580 0x4009268a:0x3ffb25a0 0x40092800:0x3ffb25c0 0x400830df:0x3ffb25e0 0x400830f9:0x3ffb2610 0x40082d75:0x3ffb2630 0x4008e804:0x3ffb2650 0x4008d895:0x3ffb2670 0x4008db0c:0x3ffb2690 0x4008375e:0x3ffb26b0 0x400837a6:0x3ffb26d0 0x40083909:0x3ffb2700 0x400e2889:0x3ffb2720 0x400e6e55:0x3ffb2750 0x4000bd83:0x3ffb2770 0x4000182a:0x3ffb2790 0x400e64fd:0x3ffb27b0 0x400e6e55:0x3ffb27d0 0x4008a7aa:0x3ffb27f0 0x40089c4d:0x3ffb2810 0x40089c9e:0x3ffb2830 0x4008a19d:0x3ffb2850 0x401758a3:0x3ffb2880 0x401752ba:0x3ffb28a0 0x4016bfe1:0x3ffb2bc0 0x400938d5:0x3ffb2bf0 0x40119b8d:0x3ffb2c50 0x4008e1f5:0x3ffb2ca0




ELF file SHA256: 97ddfcc70

Rebooting...
"

exeption decoder:
"
PC: 0x4008e31a
EXCVADDR: 0x00000000

Decoding stack results
0x4008e317: xPortEnterCriticalTimeout at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h line 552
0x40092655: multi_heap_internal_lock at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h line 581
0x4009268a: multi_heap_malloc_impl at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap.c line 215
0x40092800: multi_heap_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 254
0x400830df: heap_caps_aligned_alloc_base at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps_base.c line 93
0x400830f9: heap_caps_malloc_base at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps_base.c line 202
0x40082d75: heap_caps_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 84
0x4008e804: pvPortMalloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/heap_idf.c line 55
0x4008d895: xQueueGenericCreate at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c line 545
0x4008db0c: xQueueCreateMutex at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c line 669
0x4008375e: lock_init_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/src/locks.c line 75
0x400837a6: lock_acquire_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/src/locks.c line 133
0x40083909: _lock_acquire_recursive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/src/locks.c line 174
0x400e2889: uart_write at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_driver_uart/src/uart_vfs.c line 236
0x400e6e55: esp_vfs_write at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/vfs/vfs.c line 982
0x400e64fd: console_write at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_vfs_console/vfs_console.c line 83
0x400e6e55: esp_vfs_write at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/vfs/vfs.c line 982
0x4008a7aa: __swrite at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/stdio.c line 94
0x40089c4d: __sflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fflush.c line 224
0x40089c9e: _fflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fflush.c line 278
0x4008a19d: __sfvwrite_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fvwrite.c line 251
0x401758a3: __sprint_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c line 429
0x401752ba: _vfprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c line 1774
0x4016bfe1: vprintf at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vprintf.c line 34
0x400938d5: esp_log at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/log/src/log.c line 43
0x40119b8d: cam_task at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp32-camera/driver/cam_hal.c line 221
0x4008e1f5: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c line 139
"

Other Steps to Reproduce

ESP32 Dev Module
DIO
4MB
Minimal SPIFFS

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions