报这个错误"event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size. 是不是内存不够用?

Sam Shen
Posts: 15
Joined: Tue Jun 21, 2016 4:16 pm

报这个错误"event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size. 是不是内存不够用?

Postby Sam Shen » Mon Jul 22, 2019 6:16 pm

各位大家好:

背景:
硬件 esp8266EX
软件: SDK ESP8266_RTOS_SDK-2.0.0

欲实现功能:
开机连接无线网, 然后与服务通信; 实现3DES加密解密 和websocket通信。

现象
刚刚跑完3DES加密就挂掉了,重启。

日志
SDK ver: 2.0.0(e271380) compiled @ Mar 30 2018 18:54:06
phy ver: 1055_1, p
[2019-07-22 17:35:03.319]# RECV ASCII>
p ver: 10.7

rf cal sector: 251
idle_task_hdl : 40107ab0,prio:0, stack:384
tim_task_hdl : 40107bf8, prio:2,stack:512
SDK version:2.0.0(e271380)
mode : sta(60:01:94:03:04:da)
add if0

[2019-07-22 17:35:03.476]# RECV ASCII>
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 13
pm open phy_2,type:2 0 0
cnt

connected with themitec, channel 11
dhcp client start...
event 1
connect to ssid themitec, channel 11

[2019-07-22 17:35:04.388]# RECV ASCII>
ip:192.168.0.130,mask:255.255.255.0,gw:192.168.0.1
event 4
ip:192.168.0.130,mask:255.255.255.0,gw:192.168.0.1
401083c0 already freed
encrypt:m8uP8jiFQMk="event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size.
"event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size.
please start sntp first !
Fatal exception (2):
epc1=0x3
[2019-07-22 17:35:04.418]# RECV ASCII>
fff3750
epc2=0x00000000
epc3=0x401005fc
epcvaddr=0x3fff3750
depc=0x00000000
rtn_add=0x3fff3750

Free Heap Size: 42296
Stack Point: 3fff35a0
3fff35a0: 3fff35f0 00000000 40107c50 00000080
3fff35b0: 00000000 3fff3990 3ffee544 4026871c
3fff35c0: 00000000 00000000 00000000 00000000
3fff35d0: 00000000 00000000 00000000 00000000
3fff35e0: 00000000 00000000 00000000 00000000
3fff35f0: 00000000 00000000 00000000 00000000
3fff3600: 00000000 00000000 00000000 00000000
3fff3610: 40102078 00000000 3fff3d
[2019-07-22 17:35:04.598]# RECV ASCII>
98 00000000

?@*rjrA(SKu嬓汌沊J鷡暄薗I厑I*E,?11┠袐W薎yh=鋻n?ehI預,VZ
錼,R?1┰vAm1薗A,-醤?E"辱I預,R%‥,R?1)膙A?啤A,-醤?E"Hh蒼A,?彷預,V'酧S SDK ver: 2.0.0(e271380) compiled @ Mar 30 2018 18:54:06
phy ver: 1055_1, pp ver: 10.7

rf cal sector: 251
idle_task_hdl : 40107ab0,prio:0, stack:384
tim_task_hdl : 40107bf8, prio:2,stack:512
SDK version:2.0.0(e271380)
mode : sta(60:01:94:03:04:da)
add if0

[2019-07-22 17:35:04.690]# RECV ASCII>
scandone
state
[2019-07-22 17:35:04.735]# RECV ASCII>
: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 13
pm open phy_2,type:2 0 0
cnt

connected with themitec, channel 11
dhcp client start...
event 1
connect to ssid themitec, channel 11

[2019-07-22 17:35:05.136]# RECV ASCII>
ip:192.168.0.130,mask:255.255.255.0,gw:192.168.0.1
event 4
ip:192.168.0.130,mask:255.255.255.0,gw:192.168.0.1
"event_task"(stack_size = 6,task handle = 40108368) overflow the heap_size.
401083c0 already freed
encrypt:m8uP8jiFQMk="event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size.
"event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size.
please start sntp first !

[2019-07-22 17:35:05.211]# RECV ASCII>
Fatal exception (2):
epc1=0x3fff3580
epc2=0x00000000
epc3=0x40100774
epcvaddr=0x3fff3580
depc=0x00000000
rtn_add=0x3fff3580

Free Heap Size: 42296
Stack Point: 3fff3540
3fff3540: 3fff3580 3fff3

问题
"event_task"(stack_size = 0,task handle = 40108368) overflow the heap_size. 是不是内存不够用? 大神请指点

手册里
根据⽬目前我司提供的 SDK,当 ESP8266EX 运⾏行行在 Station 模式下,连上路路由后,在 Heap
+ Data 区⽤用户可⽤用 SRAM 空间为 50 kB。

Who is online

Users browsing this forum: No registered users and 5 guests