<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: stuck in _lwmem_get_next_block_internal() in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514380#M16334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got the same error with _lwmem_get_next_block_internal() - it remain in loop forever, because block_ptr-&amp;gt;BLOCKSIZE is zero. &lt;/P&gt;&lt;P&gt;I've tried the solution with patching tack.c file as Martin suggested in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/463076"&gt;lwmem error problem&lt;/A&gt; however it didn't help.&lt;/P&gt;&lt;P&gt;The only working workaround is to escape the loop for BLOCKSIZE = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also looking for root cause, I suspect memory leak maybe is the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 10:41:18 GMT</pubDate>
    <dc:creator>maciejwdowiarz-</dc:creator>
    <dc:date>2018-01-05T10:41:18Z</dc:date>
    <item>
      <title>stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514374#M16328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What could get an exiting task stuck in the _lwmem_get_next_block_internal() loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59378i5EFC2D5DAE9F2FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 18:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514374#M16328</guid>
      <dc:creator>Mike_d</dc:creator>
      <dc:date>2016-06-03T18:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514375#M16329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I encountered a similar problem.&lt;/P&gt;&lt;P&gt;Check the value of block_ptr-&amp;gt;BLOCKSIZE, I believe you'll find it equals 0 which explains why the loop never ends.&lt;/P&gt;&lt;P&gt;The problem in my case was sporadic and the trace wasn't of any help so I just added a work around; in case (0 == block_ptr-&amp;gt;BLOCKSIZE) I simply break out of the loop.&lt;/P&gt;&lt;P&gt;It's far from being a perfect solution and I probably loose memory and hide a real problem but as it happened very rarely it's good enough for me at the moment.&lt;/P&gt;&lt;P&gt;Hope you find and share the root cause.&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Ariela &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 08:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514375#M16329</guid>
      <dc:creator>arielablumer</dc:creator>
      <dc:date>2016-06-06T08:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514376#M16330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not easy to find the root cause from your information, maybe it is a tcp ip task memory issue,&lt;/P&gt;&lt;P&gt;I suggest your try to modifying the initial RTCS parameters as follows to see whether it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* runtime RTCS configuration */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_RTCSPCB_init = 12; &lt;/P&gt;&lt;P&gt;_RTCSPCB_grow = 2; &lt;/P&gt;&lt;P&gt;_RTCSPCB_max = 20; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_RTCS_msgpool_init = 12; &lt;/P&gt;&lt;P&gt;_RTCS_msgpool_grow = 2; &lt;/P&gt;&lt;P&gt;_RTCS_msgpool_max = 20; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_RTCS_socket_part_init = 12; &lt;/P&gt;&lt;P&gt;_RTCS_socket_part_grow = 2; &lt;/P&gt;&lt;P&gt;_RTCS_socket_part_max = 20;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 08:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514376#M16330</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-06-06T08:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514377#M16331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the changes to the RTCS parameters but still end up with the same issue. &amp;nbsp;This time it is an HTTP server session that is suck here. &amp;nbsp;What kind of information will help find the root cause?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 14:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514377#M16331</guid>
      <dc:creator>Mike_d</dc:creator>
      <dc:date>2016-09-16T14:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514378#M16332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ariela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suspicion was correct, the block size was 0. &amp;nbsp;I added the work around and the project runs as expected. Hopefully we can get to the root cause and correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Mike&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 15:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514378#M16332</guid>
      <dc:creator>Mike_d</dc:creator>
      <dc:date>2016-09-16T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514379#M16333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;I think I have reported a very similar problem:&lt;A href="https://community.nxp.com/thread/463076"&gt;lwmem error ?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope we can find the root cause for this.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:34:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514379#M16333</guid>
      <dc:creator>m_bach</dc:creator>
      <dc:date>2017-10-31T09:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _lwmem_get_next_block_internal()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514380#M16334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got the same error with _lwmem_get_next_block_internal() - it remain in loop forever, because block_ptr-&amp;gt;BLOCKSIZE is zero. &lt;/P&gt;&lt;P&gt;I've tried the solution with patching tack.c file as Martin suggested in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/463076"&gt;lwmem error problem&lt;/A&gt; however it didn't help.&lt;/P&gt;&lt;P&gt;The only working workaround is to escape the loop for BLOCKSIZE = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also looking for root cause, I suspect memory leak maybe is the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 10:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-lwmem-get-next-block-internal/m-p/514380#M16334</guid>
      <dc:creator>maciejwdowiarz-</dc:creator>
      <dc:date>2018-01-05T10:41:18Z</dc:date>
    </item>
  </channel>
</rss>

