<?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 4.29 Memory Leak on StreamLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1413086#M84387</link>
    <description>&lt;P&gt;Hello, Our product is using StreamLayer with a vast amount of updates, that are sent through "sendMessageToClient" API.&lt;/P&gt;&lt;P&gt;After ±20 minutes of use, the map becomes blank, and a large amount of errors such as :&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TypeError: Cannot read properties of undefined (reading 'memoryStats')

at get memoryStats


And: Array buffer allocation failed&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;are popping up. so the map gets stuck and hundreds of errors are stacked.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;We verified that it only happens on 4.29, downgrade to 4.28 resolves this.&lt;/DIV&gt;&lt;DIV class=""&gt;Pretty tough for me to reproduce this on a sandbox because of the nature of the data and update amount.&lt;/DIV&gt;&lt;DIV class=""&gt;If this can be fixed before 4.30 it would be very helpful.&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks.&lt;/DIV&gt;</description>
    <pubDate>Sun, 21 Apr 2024 09:54:28 GMT</pubDate>
    <dc:creator>orahlagi</dc:creator>
    <dc:date>2024-04-21T09:54:28Z</dc:date>
    <item>
      <title>4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1413086#M84387</link>
      <description>&lt;P&gt;Hello, Our product is using StreamLayer with a vast amount of updates, that are sent through "sendMessageToClient" API.&lt;/P&gt;&lt;P&gt;After ±20 minutes of use, the map becomes blank, and a large amount of errors such as :&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TypeError: Cannot read properties of undefined (reading 'memoryStats')

at get memoryStats


And: Array buffer allocation failed&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;are popping up. so the map gets stuck and hundreds of errors are stacked.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;We verified that it only happens on 4.29, downgrade to 4.28 resolves this.&lt;/DIV&gt;&lt;DIV class=""&gt;Pretty tough for me to reproduce this on a sandbox because of the nature of the data and update amount.&lt;/DIV&gt;&lt;DIV class=""&gt;If this can be fixed before 4.30 it would be very helpful.&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Apr 2024 09:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1413086#M84387</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2024-04-21T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1413556#M84397</link>
      <description>&lt;P&gt;We will take a look into this behavior. Can you please give me some specifics on how many features, what kind of updates &amp;nbsp;and update frequency? thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1413556#M84397</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-04-22T15:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1416929#M84448</link>
      <description>&lt;P&gt;Approx 5000 features spread on 3 Stream layers&lt;/P&gt;&lt;P&gt;around 1000 updates a min that include movements of the features (by updating the location)&lt;/P&gt;&lt;P&gt;Running 4.29 on any other environment that includes a bit fewer features / movements works fine and doesn't crash. only on intensive env. 4.28 on the same env is perfectly fine.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 09:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1416929#M84448</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2024-04-30T09:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1450012#M84559</link>
      <description>&lt;P&gt;We are experiencing the same error with version&amp;nbsp;4.29.5, will try to downgrade to 4.28.10 to see if that fixes the problem. We have multiple layers that the user can choose to toggle on and off the ones most frequently updated have roughly 15 features that get updated a few times per second at most. Others might have a few hundred features but they doesn't get updated that often.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 16:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1450012#M84559</guid>
      <dc:creator>snlasystem</dc:creator>
      <dc:date>2024-05-12T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1473532#M84616</link>
      <description>&lt;P&gt;Downgrading to 4.28.10 fixed the problem&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 05:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1473532#M84616</guid>
      <dc:creator>snlasystem</dc:creator>
      <dc:date>2024-05-16T05:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1477931#M84705</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This issue is addressed at 4.30. You will be able to test the fix using our&lt;A href="https://github.com/Esri/feedback-js-api-next/tree/main" target="_self"&gt; next version&lt;/A&gt;. Please test it out and the fix is working for you. Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/feedback-js-api-next/blob/main/CHANGELOG.md" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next/blob/main/CHANGELOG.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 19:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1477931#M84705</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-05-23T19:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 Memory Leak on StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1478870#M84724</link>
      <description>&lt;P&gt;hy , i found many great solutions from you. Iam trying to integrate a custom map to my ionic app and i given the tilelayer url while initialising like follows and it works on web. but in mobile its showing&amp;nbsp;4965.a94c2e5e3a97c8ce.js:1 [esri.layers.TileLayer] #load() Failed to load layer .&amp;nbsp;&lt;SPAN&gt;DOMException: The source image could not be decoded.&lt;/SPAN&gt;[esri.views.2d.layers.TileLayerView2D]&amp;nbsp; like these.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;layer&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;TileLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'moi'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'خريطة وزارة الداخلية'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'here is my custom map url created with arcgis'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MOImap&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Map&lt;/SPAN&gt;&lt;SPAN&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SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;container&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'previewMap'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;// Ensure this matches the id of your map container element&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MOImap&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;zoom&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;center&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;longitude&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;latitude&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MOIview&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;when&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;async&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addMarker&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;longitude&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;latitude&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;can you please help ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 May 2024 07:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-memory-leak-on-streamlayer/m-p/1478870#M84724</guid>
      <dc:creator>irshadk</dc:creator>
      <dc:date>2024-05-26T07:14:08Z</dc:date>
    </item>
  </channel>
</rss>

