Hise crashing
-
Not stable here too…
-
I just compiled this version and so far I haven't had any crashes (knock on wood).
-
I'm fairly certain it's related to the changes made to ScriptPanels:
GitHub Commit - made scriptpanel hold ref counted pointers to child panelsIt consistently crashes on panel repaints, specifically when repainting a child panel while also repainting a parent panel.
-
Ah I haven't even began to use paint routines yet, still using stock elements.
-
@Lunacy-Audio Can you make a snippet that crashes reliably, that will save me some time...
-
For sure! Will post something later today.
-
@Christoph-Hart This one crashes a lot:
I replaced the getSystemTime() API call with a permanent string so you don't have to merge. It still crashes anyway...HiseSnippet 2579.3oc6Z07aaibEmx1LarSb1roAEs.8vTchdihLo7mIoKrTrrhUp+PwxaxFXDrcL4HoAgjiJ4HaqFja8Pu0dq2JJv9WPuUTfBrn+ETfhh85dZOVrG5419lgeHpOirqiqcwJaSy48l2i+l27l27dCUEOlIw2m4ojZ58a2jnj5lpUa6xardCL0UobQkTef551LyWq731Mw99DKkTol7IBloldJE4mucsGiswtljNjTTdNiZR1h5P4cnVI+OkZaWBaQ1m5jn2KlurIycclMqE.jIU0UZhMeMtNYGrnaSnpj5ZaXQ4LupbLm3qjZpGyrZWsA6X2f9+bpO8PahnggRUPQAjKwrsDHVPUY8FTaqJQCXeEPoU5L7mLX3eW0soVzX5cLC2Vx.0Qhj1iTSLJ3YjDd5iO7Rk.dSE.uORspoGsIuCGA1tgZYWNwqFFlBRBqf9pLwedV00YPOb4YcvulTxCZDKg1R55YPvk4dzry.cymYSxZZSvdZBJyNCL03yQGg8P07f4CzmfhTF1xpB1kXqkVxIcF8LQZQx2mH.ZShGmR7gmpySqt6NwcFgdS5ioV7Foen.BoaPn0avkMdavS1iTGwoxGY5zOJn8KS1X6jMJlrgELQjrcCngd38NIt2Ow8vrQUhYBBjifQQYqGkzF3.isFBoNH8SwtoyjtD4P351XO3Zgldx6aCWeZKW4UaA8V0gqUIMgq6Zxgq6vNBtVjXl9Uxg5ryHsJBSlXsg25Xa6CgEAZ0Z4ZxoLWs4lcl2L6LSGYOxomS+9FF2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IRGeLBPq7K+W+ly+.z6ZxgG+9dXW+lrtV28kUINz8YtBqdmm1m5SD6otmvSpqJKXhW.3.X8sqUBFjCTlpXdKOoKYAGVK2H7+0+h69OV66133x+FGeXT9FE1rX08BC1Hu+851Eq2x6ntVATjXha2G092aIfxVD.ZIIuILojncdo55PHe9pPUyc88G5keYeaSsX9MLYu+1iRcLcMlM4dTW5qpIDqAyHWtA6MUktEWErqenZnC6UBC6sTCWKcUvzNxbol7pVtTm8cAl376r.ROzyBXkKryBX3m65U8yB3lg0u8jNK2BKnSPwXDeGYEaqZi6xU9EgurqXBCHazxvF+d7JhCYq2EBSdQ+tFtpc7j2IXYyUI.KcIt5.3aqVAeYvg3hHXv+u7LbvldrO2L3abfX4+0kT.aqq7Ka+zpaKZiLTjeKDDuMO8r5JNPwaetooXav6CyACVlbmAYV3LHyhmAYV5LHyxmAYV4LHypiTFQcyEZwYNAqw.BU1H3ULlJ9UUlZRk+C7eYFkI
-
Yup, that's a good example. The problem is if you recompile a script while a timer is running, then it will try to execute a timer callback for a nonexisting engine. I'll look into it...
-
@Christoph-Hart Yeah I noticed that timers are often a cause for crash for a long time.
In this snippet, I even get crashes with the timer not running at compile -
@ustk Oh yeah and it also crashes while running without any action ;)
-
Alright, please try it now, I've just commited a fix for it.
It should also prevent dangling repaint calls, control callbacks whatever from being executed. Actually there is already a protection in place, but for some reason it failed, so now we have double protection against dangling callbacks :)
-
@Christoph-Hart Cool! Testing...
-
@Christoph-Hart It is so bulletproof now that the Timer doesn't start anymore
-
Yes, TOTAL PROTECTION!!!
-
@Christoph-Hart Been crazy on F5, Walked on it... Slept on it... Even my cat tried... It's stable!
-
@Christoph-Hart Hmmm... It still crashes every now and then while running, not at compile...
I just open the above snippet and let it run. When I come back after a moment it always crashed... -
Which configuration are you using? Release build on Windows?
-
@Christoph-Hart Release on mac
-
Ah, it's crashing on Release on Windows too, Debug is fine. The problem is some weird memory corruption that occurs over time and I think has something to do with storing Strings in
reg
variables. If I change thereg
tovar
in your snippet, it doesn't crash, also if I comment out the lines that store strings into thereg
slots... -
@ustk Can you confirm that the crashes also disappear on your system if you change the
reg
s tovar
? Because if yes, I can try the address sanitizer on macOS, which is helpful for finding these memory corruption bugs.