Skip to content

A stack overflow was detected in the "Tmr Svc" task when using the esp_websocket_client sample. #1129

Description

@nopnop2002

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

A stack overflow was detected in the "Tmr Svc" task when using the esp_websocket_client sample.

On terminal 1

git clone https://github.com/espressif/esp-protocols

cd esp-protocols/components/esp_websocket_client/examples/target

python3 websocket_server.py

On terminal 2

cd esp-protocols/components/esp_websocket_client/examples/target

idf.py set-target esp32s3

idf.py menuconfig
Image
idf.py flash monitor


W (19018) websocket: Total payload length=2000, data_len=976, current payload offset=1024

I (20048) websocket: WEBSOCKET_EVENT_DATA
I (20048) websocket: Received opcode=10
W (20048) websocket: Received=


W (20048) websocket: Total payload length=0, data_len=0, current payload offset=0

I (25058) websocket: No data received for 5 seconds, signaling shutdown

***ERROR*** A stack overflow in task Tmr Svc has been detected.

It does not cause an error on the ESP32.
It results in an error on the ESP32-S3.

idf.py set-target esp32

idf.py menuconfig

idf.py flash monitor

W (18735) websocket: Total payload length=2000, data_len=976, current payload offset=1024

I (19765) websocket: WEBSOCKET_EVENT_DATA
I (19765) websocket: Received opcode=10
W (19765) websocket: Received=


W (19765) websocket: Total payload length=0, data_len=0, current payload offset=0

I (24775) websocket: No data received for 5 seconds, signaling shutdown
I (24785) websocket: WEBSOCKET_EVENT_DATA
I (24785) websocket: Received opcode=8
W (24785) websocket: Received closed message with code=1000
W (24785) websocket: Total payload length=2, data_len=2, current payload offset=0

I (24795) websocket: WEBSOCKET_EVENT_FINISH
I (24805) websocket: Websocket Stopped
I (24805) main_task: Returned from app_main()
I (29795) websocket: No data received for 5 seconds, signaling shutdown

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions