pattr Stack Overflow/Crash

Phil Maguire's icon

Hi pals,

I'm playing around with filtering some noise and saving the presets in a [pattrstorag] object. For some reason, when I choose preset 4 on the [preset] object, Max crashes and/or reports a stack overflow in [filtergraph~]. The Max window doesn't give me any other info.

Max Patch
Copy patch and select New From Clipboard in Max.

noise_ute.json
application/json 0.07 KB

Jean-Francois Charles's icon

Since you are using a slider to recall your pattr presets, make sure you DON'T give it a scripting name: you don't want its status to be memorized / recalled by your system. (same thing for all numbers that will recall a preset, i.e. connected to the left input of [pattrstorage]).
Sidenotes, not causing Stack overflow:
- I'm not sure why you use a [pattr] object at all
- I would suggest you add a 'clientwindow' message (or maybe you usually double-click on pattrstorage to see it) and a 'storagewindow' message to [pattrstorage].