"IDLE" overflow the heap_size 是什么问题?

zsf518
Posts: 31
Joined: Thu Jul 30, 2015 3:24 pm

"IDLE" overflow the heap_size 是什么问题?

Postby zsf518 » Tue Dec 01, 2015 10:43 am

ESP8266 RTOS SDK1.3.0在长时间运行后 打印出下面的东西, 请问 这个是什么原因?
"IDLE"(stack_size = 0,task handle = 3fff3d20) overflow the heap_size.

程序中线程使用了大量内存,并且线程之间切换速度十分频繁。

zsf518
Posts: 31
Joined: Thu Jul 30, 2015 3:24 pm

Re: "IDLE" overflow the heap_size 是什么问题?

Postby zsf518 » Tue Dec 01, 2015 10:46 am

另外,TCP socket频繁发送数据的时候,会出现间歇性的拥堵,数据发不出去。这是SDK固有的问题吗?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: "IDLE" overflow the heap_size 是什么问题?

Postby ESP_Faye » Wed Dec 02, 2015 11:21 am

您好,

"IDLE"(stack_size = 0,task handle = 3fff3d20) overflow the heap_size. 表示堆栈溢出了。

建议您不要定义很大的局部变量,可以使用 malloc,free 代替。

TCP 连接只保证可靠性,在网络状况差的情况下,会尝试重传,确实可能出现拥堵的情况,是协议本身的特性,并不是 ESP8266 SDK 的问题。

感谢您对 ESP8266 的关注!

zsf518
Posts: 31
Joined: Thu Jul 30, 2015 3:24 pm

Re: "IDLE" overflow the heap_size 是什么问题?

Postby zsf518 » Tue Dec 08, 2015 11:14 am

有用!

Who is online

Users browsing this forum: No registered users and 20 guests