voxglitch icon indicating copy to clipboard operation
voxglitch copied to clipboard

Loading Sounds into WAV BANK Crashes Rack

Open jonheal opened this issue 4 years ago • 17 comments

Rack 1.1.6 Voxglitch 1.6.0 Windows 10

I grabbed a random group of sounds from my library and put them in a folder. The total size of the folder was 246MB. Varying file sizes from 731KB to 34MB.

Upon identifying the folder from WAV BANK's context menu, I get the spinny wheel for about five seconds and then Rack barfs.

Once I deleted the largest files from the folder, WAV BANK appeared to successfully load them, but then several seconds later, Rack crashed again. Total folder size this time: 58MB

jonheal avatar Mar 04 '20 15:03 jonheal

@jonheal Thank you so much for the detailed bug report. Looks like I'll need to do some serious work on that module to be able to handle lots of large audio files. At the moment, it attempts to load all of the samples into memory, which is no-doubt why it's crashing. I'll try to modify the module to stream the audio instead. It could take me a few days to start working on this. Sorry again for the issues.

clone45 avatar Mar 04 '20 16:03 clone45

I have 8GB of memory on this machine, so there should be plenty of RAM for the audio files I selected. Maybe some memory pointers are stepping on each other? Also, I notice it takes a bit of time for samples to start playing once selected, so it feels like they are not being retained in RAM, but reloaded with each selection. I don’t know if streaming from the disk would make that speedier.

From: Bret Truchan [email protected] Sent: Wednesday, March 4, 2020 11:55 AM To: clone45/voxglitch [email protected] Cc: Jon Heal [email protected]; Mention [email protected] Subject: Re: [clone45/voxglitch] Loading Sounds into WAV BANK Crashes Rack (#32)

@jonheal https://github.com/jonheal Thank you so much for the detailed bug report. Looks like I'll need to do some serious work on that module to be able to handle lots of large audio files. At the moment, it attempts to load all of the samples into memory, which is no-doubt why it's crashing. I'll try to modify the module to stream the audio instead. It could take me a few days to start working on this. Sorry again for the issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/clone45/voxglitch/issues/32?email_source=notifications&email_token=AH5EZQZ5XO4Y6M6YJCH7FB3RF2BWFA5CNFSM4LBLFVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENY4HUI#issuecomment-594658257 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5EZQZNV2UMWYYFNOYIZEDRF2BWFANCNFSM4LBLFVCQ . https://github.com/notifications/beacon/AH5EZQ7TI35CIW7BNKSJAU3RF2BWFA5CNFSM4LBLFVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENY4HUI.gif

jonheal avatar Mar 04 '20 17:03 jonheal

Loading and playing multiple, long WAV files vastly improved in v.1.10.0. THANKS!

EDIT: But it looks like the max file size of an individual WAV is around 12MB. Much bigger than that and Rack crashes.

jonheal avatar Mar 28 '20 18:03 jonheal

@jonheal I'm very sorry that I haven't had time to address this issue yet. I didn't do anything in version 1.10.0 related to this, so I'm surprised that the issues improved.

I keep waiting for an "ah ha!" moment to strike. I researching the ability to stream .wav files but didn't find any tangible leads via Google. I haven't delved deeply into memory usage in VCV Rack, which is probably what I need to do, but just haven't taken the time yet. It's still on my radar and I'll try to research it soon.

bret-2600 avatar Mar 28 '20 22:03 bret-2600

What improved is I was dumb, and suddenly realized some the folders of files I was trying to load were full of AIF files, not WAV files. A folder of WAV files loads and plays as expected — until it hits some limit in either individual file size of collective file size. But … appreciate your modules nonetheless. 😊

From: Bret Truchan [email protected] Sent: Saturday, March 28, 2020 6:58 PM To: clone45/voxglitch [email protected] Cc: Jon Heal [email protected]; Mention [email protected] Subject: Re: [clone45/voxglitch] Loading Sounds into WAV BANK Crashes Rack (#32)

@jonheal https://github.com/jonheal I'm very sorry that I haven't had time to address this issue yet. I didn't do anything in version 1.10.0 related to this, so I'm surprised that the issues improved.

I keep waiting for an "ah ha!" moment to strike. I researching the ability to stream .wav files but didn't find any tangible leads via Google. I haven't delved deeply into memory usage in VCV Rack, which is probably what I need to do, but just haven't taken the time yet. It's still on my radar and I'll try to research it soon.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/clone45/voxglitch/issues/32#issuecomment-605530770 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5EZQ2HW7D57CYXUJMXY63RJZ6I7ANCNFSM4LBLFVCQ . https://github.com/notifications/beacon/AH5EZQ4647D6NHRVPUZ3BNLRJZ6I7A5CNFSM4LBLFVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQL2VEQ.gif

jonheal avatar Mar 29 '20 00:03 jonheal

Hello so i was trying to load a wav file ( it's only 4 seconds long, 1.38 MB ) but the 'sample' graph stays empty. Can you please help. also i loved your descriptions on some of the modules, can't wait to use them. Thanks

napstablup avatar Apr 05 '20 11:04 napstablup

Sure! Can you send the .wav file to me?

clone45 avatar Apr 05 '20 16:04 clone45

Yeah, sure check your mail )

napstablup avatar Apr 05 '20 16:04 napstablup

@napstablup There seems to be a space in the filename that's causing that sample not to load. The file I received from you is called SFX_Freeze. wav Could you try removing the space between the period and the extension and see if it starts working for you?

clone45 avatar Apr 05 '20 16:04 clone45

Thanks, i will try tomorrow. Hope it helps. I will write you later about the result

napstablup avatar Apr 05 '20 16:04 napstablup

so i've changed the name to just 'freeze.wav' and tried to load the file, but it didn't work. still empty in the 'sample' graph

napstablup avatar Apr 06 '20 07:04 napstablup

Thanks for trying that! Hmm.. are there any other .wav files in that folder? Wav Bank will try and load all .wav files in a folder. If the folder has a lot of files, it might crash, which is a known issue. Let me know. I'll keep helping until we figure it out!

clone45 avatar Apr 06 '20 15:04 clone45

Thanks for your help. I've only tried to load this one in 'ghost'. Ive also tried to load different length files into 'goblins' and 'bank'. They all react the same (

napstablup avatar Apr 06 '20 16:04 napstablup

@napstablup It seems to be working for me. I've created a video showing it working in Ghosts: https://youtu.be/VaCS0OFrJE0. Take a peek and let me know what you think.

clone45 avatar Apr 06 '20 20:04 clone45

Thanks, i will let you know

napstablup avatar Apr 07 '20 08:04 napstablup

yeah, so i've just loged out and loged back in and tried this method and it worked ! thanks a lot for your help and your time

napstablup avatar Apr 07 '20 08:04 napstablup

My pleasure! Happy to help.

clone45 avatar Apr 07 '20 15:04 clone45