What do I make wrong?
-
Hi folks,
I am working on a new project, but Hise can't stop to crash every 10 to 30 sec...
I am sure I made something wrong somewhere in the timer and/or paint routine, my code is dirty...
But I don't know what I absolutely need to avoid
I tried different timer setting but it doesn't change the deal.
What is strange, is that the exported standalone is very stable...the process is:
- I set a timer
- call the paint routine (all the computation is inside because I have too many parameters to call an external inline function)
Watch your levels! (it is automatically playing at the moment...)
HiseSnippet 3994.3oc6arDibbTsGuaG6ciWbBXfHg.UrRDMqc6Ymu6mr1Ym823rI6O1YiSLFqPucWyLcbOcOo6dr2wIqvBIj3FbfK4FRQhi4Nmv2PB4CHEIxAPnfDRHAWxA3L7pecWcO8r6rFaS93IQ1c+p2+58d0qpt7NdtFXeeWOkLisWuNXkLmUsdOmfVqzR2xQY8UUxbF.fe.tsxx85n66iMUxjYjqRFMyXipnnfV7ae+EWV2V2w.yAQ+cMWKC7FVssBhftS0Wyx1tltIdOq1RXWt55FtNq3Z61EzjQTyqzQ23V5MwaoSP6TpJYdl0LsBb8pGnGf8UxL5xtl8p2x8NNL7ulku091XxKETpCLhAtlqsIQiIPUVokks4NBK1WAX5NQ1+HL6+7paZYZEBOxO7bzAPQTH6OxbpiR8JHqd4Gd0Kij5MJS8dd05FdVcBhFgnaOq55NAXuF5vTfrZwvU4T+6uk5JtN9t13bF1XcurSsvDiOw3SO82Ecknen02Zu01s1RqrlLzqbkIFGlb7CP2V2CY4D7FVlAsPWAMW97KjXnWAa0rU.LVE5XfLCvNA4ZqeKbMO3kPsLqfOZQj0uNgps8V6gjzi0bZZ4fyY6paVCX2R9Ym7c2Y2se00VYu2p11ar5Z6dHAt+z05Fz0SOWPfwjZnIaCygD3SRDAmG93fqZ6tutMYfrwQg7eQ1UWGqai87wB6tbB6VLdnwGZQoh1Nt9uICIJCmtH5RwEwzEGDcWWl4wHT.ZgzU8katiiMPrXBoINXE21cbcvDaOFVTGf.OvIAAZcvdAVXeXFr8qVe6sRRfF5cmXbD7ax6PT+Ieo3liFevVTUDFMzBDibf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9o6g4o6g4o6g4w9dXdRHi15FdtukAa0SRp2YnP.61gdUUFScSx6nBhlsH9Fx+l6eKCCRrwk.uS5TT7DSQoSLEkOwTT4DSwLmXJl8DSwbGAEjclrT2.21r3c.vNqwVfJCaiXzPek+Kwrn9wC
-
It works fine for me. I'm using HISE built on 2nd March.
I'm noticing the CPU usage is a little high, could that be the problem on your system?
-
@d-healey Thanks,
My build dates from January (I currently have a big project for school so I don't want to risk an update at the moment)
It could be my system, but what should I look for?Do you see any "bad practice" in my code?
-
My CPU is in the range 6-10% depending on the speed setting
-
@ustk I didn't notice anything wrong with your code, although you could probably just use
repaint
instead ofrepaintImmediately
You can have more than one version of HISE on your system at a time.
-
I remember reading somewhere
repaint
andrepaintImmediately
were the sameThanks, I'll try to compile a new version then
-
I remember reading somewhere repaint and repaintImmediately were the same
Thanks, I'll try to compile a new version then
Yes, they are doing exactly the same thing and just left in for backwards compatibility reasons - the threading model in HISE figures out automatically if the repaint should occur synchronously or be deferred.
-
@ustk I missed the memo :p
-
Cool ;)
I just built the last branch, it is still crashing Hise...