Pops/Crashes All DAWS Mac/Windows
-
@Adam_G can you upload a samplemap that shows this? I‘m guessing that the extreme pitch factor leads to a out of bounds read from the streaming buffers (however I‘ve added a few failsafe checks that apparently don‘t help in your case).
-
@Christoph-Hart here you go thanks for checking https://www.dropbox.com/scl/fi/rfmjo1c7klfro5oi3m6az/samplemap.zip?rlkey=oyief3ebssrrb5qovb02l9sl4&dl=0
-
@Adam_G correction also this particular map is mapped c1-c8
-
@Adam_G what are your buffer size & preoad size settings (also the daw buffer size)? Just making sure that I reproduce your exact setup.
-
@Christoph-Hart 512 is the buffer size, where do i see preload size ? daw buffer is set to 4096
-
@Adam_G can you make a screenshot of the sampler you load it into? Also is 512 the audio buffer size (as in what you set in the DAW preferences)?
-
is this what you mean? the DAW buffer size is 4096 but it happens in all DAWs.
-
@Adam_G Please click on the Sampler settings so I can see the buffer sizes.
-
@Christoph-Hart And your DAW buffer size is really 4096? If yes, that doesn't make sense, try a lower latency and enjoy a responsive music production system lol.
-
sorry haha. you are right that would be unusable but i dont use this machine for music production. the trial of fl is installed purely for testing purposes. the same issue i mentioned is happening across multiple daws with various settings both windows and mac.
after testing further i think what you mentioned about extreme pitch cases may be right because it happens when notes beyond g8 are pressed. does that also relate to buffer size?
-
@Adam_G Yes, there are multiple safeguards in place. If you pitch a sample up by 4 octaves it needs 4x as much samples, so with a buffer size of 4096 you request 16384 samples at once which will blow up the streaming buffers). I need to check because I think I've added a failsafe so that the "internal" buffer size in HISE never exceeds 512, but it might still cause glitches.
I'll take a look at it now, should be enough information for me.
-
@Christoph-Hart thank you for looking into it
-
I don't see a problem here in the default mode, however when I'm activating Lazy load, it will throw an assertion about some buffer overflow. Can you check if deactivating LazyLoad prevents the issue?
-
@Christoph-Hart thanks that seems to resolve the issue some but if you add a Global Time Variant Modulator and increase the intensity then try again - crash. is there a way to resolve that?
-
Where do you connect the time variant modulator? To the pitch modulation? Please make a snippet with the patch that crashes.
-
@Christoph-Hart yes, with the same patch i shared
HiseSnippet 1091.3oc2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S1Zo3ccy49FzwLwEXl1idNVRwb0BKv.duLAr97LQ7VHSqq2V5PiELrTuS.zBNqomVVnqsxpmgoYuJc2OXwJNwrPnsY3sUd1mo6IrpTm6kskfG71kpOyyyuKxLWySuFx+UPcjHUAqWLeDOB1CvG18IfTbafszaXXoapo0.xmvCMD+M7K6vVyWcPeXq4G5DL+p.aK6YataMBWmHaV+kAKkvJVFj.aXogDjQ+IAkQ3.o3MA1umRi06X3.nja9n45vWuCzdsbLeiEnGp4Sa5DAypeSPftP36AO7x04YafNOeCzYuMPmWrA5r+FnyK2.c9gUpidMoCRUhH6PBfwvd1DK2dKRrp47ODq6lxA
-
@Adam_G nope, still works OK.
What happens if you set Preload Size to -1 (this will deactivate the streaming and load the entire sample into memory)?
-
@Christoph-Hart crashed upon hitting around 6.00 st on the modulators intensity, i was playing notes in the c7 octave at the same time
-
@Adam_G Ah yes, setting that mod values will bump it over the MAX_PITCH_FACTOR constant and then it'll crash later.
I've pushed a fix, let me know if it works.
-
@Christoph-Hart legendary! thank you. Hise no longer crashes on those notes but now when compiling i get an error in factory.cpp "error C2027: use of undefined
type 'hise::FrontendHostFactory' "