Skip to content

Task in V3.x require 2 to 3 times larger stack than V2.0.17 #11519

Closed
@plrfishing

Description

@plrfishing

Board

ESP32 Dev board and ESP-S2 mini

Device Description

Dev board and S2 mini both exhibit same behavior

Hardware Configuration

same behavior if pins are used or not used

Version

v3.2.0

IDE Name

VSCode with platformio

Operating System

Windows11

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

921600 but other speeds same issue

Description

Had code for version 2.0.17 which worked with multiple tasks given stack sizes of 4000. Updated to V3.2.0 and no code changes and freeheap would drop quickly after 2-3 iterations so low as to cause system resets. Increased stack sizes to 10,000 and freeheap remains at 7000 to 8000. This is not causing a specific issue for me since the additional stack allocations are not an issue with this code size.

So does v3.x require larger stack size than V.2.0.17?

Sketch

Not provided

Debug Message

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. I did add code to delete the task if freeheap dropped below 1000 and restart the task. However the larger initial stack size of 10000 seems to work for V3.x.

Other Steps to Reproduce

No response

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

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions