<?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[Anyone else hit this Engine.getUptime() crasher?]]></title><description><![CDATA[<p dir="auto">HISE was crashing for me fairly often, mostly when left open playing MIDI for a long time.</p>
<p dir="auto">Claude reckons to have found the cause (<a href="https://github.com/christophhart/HISE/pull/1045" rel="nofollow ugc">here's the PR fix</a>), and it certainly seems to have fixed it for me.</p>
<blockquote>
<p dir="auto"><code>Engine.getUptime()</code> fetched the current MIDI event pointer twice, once to null-check it and again to read its timestamp, but audio thread can clear that pointer between the two reads, so timer callbacks on scripting thread would occasionally crash.</p>
<p dir="auto">The fix reads the pointer once into a local and uses that, matching every other call site in the file.</p>
</blockquote>
<p dir="auto">Just wondering why this hasn't come up before. Anyone else experienced random crashes while playing MIDI?</p>
]]></description><link>https://forum.hise.audio/topic/15051/anyone-else-hit-this-engine-getuptime-crasher</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 16:49:40 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/15051.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Sep 2026 14:16:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:28:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> Aha, I use the built in peak meter floating tile for level display, I think it has some options for controlling the decay time, using laf you can probably style the overs to have the appearance you want. If it doesn't do what you need already I would look at extending it.</p>
]]></description><link>https://forum.hise.audio/post/122951</link><guid isPermaLink="true">https://forum.hise.audio/post/122951</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:24:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> Sorry, I mean output level greater than 1.0, so I can show a red ring around the level knob to indicate 'over'.</p>
]]></description><link>https://forum.hise.audio/post/122950</link><guid isPermaLink="true">https://forum.hise.audio/post/122950</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:20:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> said in <a href="/post/122947">Anyone else hit this Engine.getUptime() crasher?</a>:</p>
<blockquote>
<p dir="auto">Is there a more HISE-y way to keep an overs indicator showing for 1.5s after an over hits?</p>
</blockquote>
<p dir="auto">I'm not sure what an over is :)</p>
]]></description><link>https://forum.hise.audio/post/122949</link><guid isPermaLink="true">https://forum.hise.audio/post/122949</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:20:34 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:18:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> Switched the overs timer to a tick counter and removed the fancy easing in the wave display - it won't be missed.</p>
<p dir="auto">So no more <code>getUptime()</code> calls in my plugin now. But I'll leave the PR so Christoph can judge if it's worth merging.</p>
]]></description><link>https://forum.hise.audio/post/122948</link><guid isPermaLink="true">https://forum.hise.audio/post/122948</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:18:09 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:13:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> Maybe. I'm looking at whether I can ditch timers completely. Never liked using them in web app front ends, and don't like using them in HISE either.</p>
<p dir="auto">Is there a more HISE-y way to keep an overs indicator showing for 1.5s after an over hits?</p>
]]></description><link>https://forum.hise.audio/post/122947</link><guid isPermaLink="true">https://forum.hise.audio/post/122947</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:13:09 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:09:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> I think I have used getUptime in a few of my interface scripts, mostly I use it in non-deferred scripts though, could that make a difference? But it looks like a good bug fix either way.</p>
]]></description><link>https://forum.hise.audio/post/122946</link><guid isPermaLink="true">https://forum.hise.audio/post/122946</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:09:41 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 16:06:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> These are both quite short animations - the Overs one is 1.5s and the wave display is 150ms.</p>
<p dir="auto">The Overs one only runs when the level goes over, but the wave display one runs on every note.</p>
<p dir="auto">The timer runs throughout the life of the plugin instance, but the calls to <code>getUptime()</code> are limited to the short ranges above, and it's the <code>getUptime()</code> calls that were triggering the crash bug.</p>
]]></description><link>https://forum.hise.audio/post/122944</link><guid isPermaLink="true">https://forum.hise.audio/post/122944</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Thu, 17 Sep 2026 16:06:09 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 14:41:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> I don't do any long running animations with timers so that's probably why I haven't hit such issues.</p>
]]></description><link>https://forum.hise.audio/post/122941</link><guid isPermaLink="true">https://forum.hise.audio/post/122941</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 17 Sep 2026 14:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 14:28:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> For updating UI stuff.</p>
<ol>
<li>The latch clock on an Overs indicator around the level knob, so it stays visible for 1.5 seconds</li>
<li>A fancy 'ease back' in a custom wave display - easy to get rid of that one and no great loss</li>
</ol>
]]></description><link>https://forum.hise.audio/post/122940</link><guid isPermaLink="true">https://forum.hise.audio/post/122940</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Thu, 17 Sep 2026 14:28:47 GMT</pubDate></item><item><title><![CDATA[Reply to Anyone else hit this Engine.getUptime() crasher? on Thu, 17 Sep 2026 14:18:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> What are you using the timer for?</p>
]]></description><link>https://forum.hise.audio/post/122939</link><guid isPermaLink="true">https://forum.hise.audio/post/122939</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 17 Sep 2026 14:18:51 GMT</pubDate></item></channel></rss>