<?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[Setting M5Image source from network hangs the UI layer&#x2F;thread when any kind of error occurs]]></title><description><![CDATA[<ul>
<li>Core 2</li>
<li>UIFlow 1.7.6</li>
</ul>
<p dir="auto">if <strong>M5Image.set_network_img_src()</strong> call receives any kind of error it will hang the UI completely even if try..except is used. Setting image source, label text etc. will no longer work but all other code will continue to run in the background like timers or main loop.</p>
<p dir="auto">example:</p>
<pre><code>try:
  print("before")
  image0.set_network_img_src('http://192.168.1.100/someimage.png')
  print("after")
except:
  print("except")
</code></pre>
<p dir="auto">will print 2 first but never the third "except print" when any kind of error happens (loading error comes delayed):</p>
<pre><code>before
after
lodepng_error: invalid ADLER32 encountered (checking ADLER32 can be disabled)
</code></pre>
<p dir="auto">You can test it by taking any .png and open it with a notepad and mess the contents to corrupt it. Then download it with <strong>set_network_img_src</strong></p>
]]></description><link>https://community.m5stack.com/topic/3274/setting-m5image-source-from-network-hangs-the-ui-layer-thread-when-any-kind-of-error-occurs</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 05:45:53 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3274.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 May 2021 20:52:03 GMT</pubDate><ttl>60</ttl></channel></rss>