<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fail to manage properly the Free Memory on Sipy]]></title><description><![CDATA[<p dir="auto">Good Day All,<br />
I've developed several python scripts around pytrack, one of it expecting to log the tracked GPS position. I'm using several _thread for this, however, i'm having some memory problems...<br />
In some circumstances it works, reload the Sipy.. and then suddenly a memory error occurs..  (even sometimes without modifying any scripts) - see below.<br />
I do understand the free memory information is not the only parameter to take into account, rather the max blk &amp; free sz...  however, i do not find a way to manage it properly...<br />
There must be something i'm doing wrong.. but... did not find it..<br />
Thanks for your kind help<br />
Regards<br />
Patrick</p>
<p dir="auto">Traceback (most recent call last):<br />
File &quot;<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a>&quot;, line 7, in &lt;module&gt;<br />
MemoryError: memory allocation failed, allocating 565 bytes<br />
Pycom MicroPython 1.18.3 [v1.8.6-849-d19c9e9] on 2019-09-15; SiPy with ESP32<br />
Type &quot;help()&quot; for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto"><strong>import</strong>('micropython').mem_info()<br />
stack: 768 out of 7168<br />
GC: total: 67008, used: 50656, free: 16352<br />
No. of 1-blocks: 524, 2-blocks: 73, max blk sz: 384, max free sz: 154</p>
</blockquote>
</blockquote>
</blockquote>
]]></description><link>https://forum.pycom.io/topic/5860/fail-to-manage-properly-the-free-memory-on-sipy</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 14:55:14 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5860.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Apr 2020 16:35:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fail to manage properly the Free Memory on Sipy on Sat, 04 Apr 2020 16:35:35 GMT]]></title><description><![CDATA[<p dir="auto">Good Day All,<br />
I've developed several python scripts around pytrack, one of it expecting to log the tracked GPS position. I'm using several _thread for this, however, i'm having some memory problems...<br />
In some circumstances it works, reload the Sipy.. and then suddenly a memory error occurs..  (even sometimes without modifying any scripts) - see below.<br />
I do understand the free memory information is not the only parameter to take into account, rather the max blk &amp; free sz...  however, i do not find a way to manage it properly...<br />
There must be something i'm doing wrong.. but... did not find it..<br />
Thanks for your kind help<br />
Regards<br />
Patrick</p>
<p dir="auto">Traceback (most recent call last):<br />
File &quot;<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a>&quot;, line 7, in &lt;module&gt;<br />
MemoryError: memory allocation failed, allocating 565 bytes<br />
Pycom MicroPython 1.18.3 [v1.8.6-849-d19c9e9] on 2019-09-15; SiPy with ESP32<br />
Type &quot;help()&quot; for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto"><strong>import</strong>('micropython').mem_info()<br />
stack: 768 out of 7168<br />
GC: total: 67008, used: 50656, free: 16352<br />
No. of 1-blocks: 524, 2-blocks: 73, max blk sz: 384, max free sz: 154</p>
</blockquote>
</blockquote>
</blockquote>
]]></description><link>https://forum.pycom.io/post/32340</link><guid isPermaLink="true">https://forum.pycom.io/post/32340</guid><dc:creator><![CDATA[pevrard]]></dc:creator><pubDate>Sat, 04 Apr 2020 16:35:35 GMT</pubDate></item></channel></rss>