Hise crashing
-
@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. -
@Christoph-Hart Ok I'm testing ;)
-
@Christoph-Hart Well for some reason it is stable now. Nothing changed since yesterday, I didn't even restart the machine...
I had a doubt about the computer sleeping or when exiting the screen saver but it refuses to crash now... Can you do something? -
Apologies fellas! Meant to post a snippet last week and got caught up in US holiday craziness. Let me try out the new commit and see if it's working with my current project.
-
I think those recent commits fixed it for me Haven't had any crashes yet.
-
@Christoph-Hart Ok so I went a little further by replacing the REGs
Here's the thing:The snippet below still crashes even when replacing the reg for var (strings only):
(so same snippet as above except the string reg to var)HiseSnippet 2577.3oc6Z07aaibEmx1LarST1roAEs.8vTchdihLo7mIoKrTrriUp+PwxaxFXDrcL4HoAgjiJ4HaqFja8Pu0dq25k8ehhdoK5eAEnnXutm5wh8vdtceyvOD0mQ1qiqcwJaSy48l2i+l27l27dCUEOlIw2m4ojZ58a2jnj5lpUa6xarVCL0UobIkTef5Z1LyWq731Mw99DKkTol7IBloldJE4muY0GiswtljNjTTdNiZR1h5P4cnVovujZauA1hrO0IQuWnPYSl6ZLaVK.HSppqzDa9ZbcxNXQ2lPUI00V2hxYdU4XNwWI0TOlY0tZC1wtA8+4Te5g1DQCCkpfhBHuAy1RfXAUk0ZPsspDMf8U.kVoyvexfg+cU2lZQio2wLbaICTGIRZORMwnfmQR3oO9vKUB3MU.79H0pldzl7NbDX6Fpkc4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JlyFDhk3bj6VBEkH58HfhxVriq.OPwLZL4e2+nvlz9npTpv1zSh1972+29mCNVapIOmhUoDbne0gb88DOW0cZ4TEJ5vj.SstPxkhTiSMgHtbPa8nzJqRbsjM9uvmPlFh1oBYZDwL4rx0ilU1gQ8IxYk6DbO5IDWhW+6nkHgCz+5u7GG2WLVyw9Ei0qsbpwyV9NxyZpK0uHrKtD9OeRBZ5HLVk5zzlrt6QDanvoP+m.hnHpc6+rMykEjaaRWl8Hf+d85DujXefCnhbNrjtaYsIPpKcs.GJbG60cltmJagw3aKF070OQM.tHgSO5GJT6pagZWzAlCKy3FvhIWh7UREVKjnMRjN9XDfV429e9Cm+An20jCO988vt9MYcst6KqRbn6ybEV8NOsO0mH1ScOgmTWUVvDu.vAv5aVcCXPNPYph4s7jtjEcXsbiv+W+at6+d0eXiiK+ab7gQ4aTbyRU2KLXi792qaWrVKui5ZEPIhItceT6euk.JaQ.nkj7lvjRh1EjpqCgBEpBUM202fnW9k8sM0BEV2j89aOJ0wz0Hcx8ntzWUSHVClQtbC1apJcKtJXW+P0PG1qDF1aoFtV5pfocj4RM4UsboN66BLw42YAjYnmEvxWXmEvvO20q5mEvMCqe6IcVtEVPmfhwH9VxJ1V0F2kq7KBeYWcd0B8mMZYXieOdEwgr06BgIuneWCW0Ndx6Drr4pDfktDWc.7sUqfuL3PbQDL3+WdFNXSO1maF7MNPr7+5RJfs0U90seZ0sEsQFJxuEBh2lmdNcEGn3sO2zTrM38g4fAKS9yfLyeFjYgyfLKdFjYoyfLKeFjYkQJint4hs3Lmf0X.gJqG7JFSE+pJSMox2gUbSTr
But this one is stable keeping all REGs:
please note that the only thing I did here was :- Modify the paint routine order mostly (it's stable since, very weird...)
- and the timer computation order too but it was stable before that
HiseSnippet 2628.3oc6a07aabbEeoj1DKYKGGWihVfdXJODPESKuq9x1IMPjVeXIWQIZQY6XHXjNZ4PxAd2cXmcnjXM7sdn2Zu0a8R9mnnmBZ+Gn.EE4ZNUzSE4PO212L6GbV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IFc.7MLKiuL3PbQjL3+WdFdXGN6KbB+FGHC+uhhBna8U++RXRyRx1HaC02BA4ayyZVKCO3vaegiibYv6.1fdKybmAYl+LHyBmAYV7LHyRmAYt2YPl6OPYjmatXKAyKLFCHTdsvWwXljWUYlwM9O.QkF4q
-
I noticed the second example is using the Engine.getTime() API call (it doesn't compile here). Has this some effect?
The address sanitizer doesn't report anything unfortunately...
-
@Christoph-Hart Sorry I just forgot to replace it with a string... but I'm sure after testing different config with unmerged and merged time API that it doesn't come from that. Just try this string instead
"2020-12-01T14:02:45"
(it crashes with the string in unmerged time API Hise)