Stackoverflow from pattrstorage on save? m4l bug or attribute problem?


    Oct 24 2014 | 6:27 pm
    Here is my problem. When I save my project an "open .json/.xml" prompt opens. It elicits a pattrstorage stack overflow regardless of whether I close the prompt, or "open" the preset file I had been using. Having gone through the attributes of pattr, the preset object, and pattrstorage itself, I don't see why this happening. Any ideas? I'll cut down my patch to post an example in just a moment. note* the parameter mode is checked off on pattrstorage as part of finding the problem; it persists when enabled.

    • Oct 24 2014 | 6:59 pm
      Here is the .amxd and .json of the patch I'm making. I copied then pasted the ui with all pattr objects into a new patch, I was faced with the prompt on save of this as well. I recopied into another patch and re-saved just to test, this time with no prompt after saving the .json to the desktop. Could this be a problem with how pattrstorage is recalled since I have a backup under the same file name on a external hard drive?
      { "pattrstorage" : { "name" : "Testing", "slots" : { "1" : { "id" : 1, "data" : { "patcher::patcher::-Voices" : [ ], "patcher::patcher::-FMhide" : [ ], "patcher::patcher::-EAttack" : [ 200.0 ], "patcher::patcher::-EDecay" : [ 5000.0 ], "patcher::patcher::-ERelease" : [ 250.0 ], "patcher::patcher::-ESustain" : [ 33.0 ], "patcher::patcher::-EAcurve" : [ -0.15 ], "patcher::patcher::-EDcurve" : [ 0.1 ], "patcher::patcher::-ERcurve" : [ 0.25 ], "patcher::patcher::-FMo1" : [ 3.0 ], "patcher::patcher::-FMo2" : [ 3.0 ], "patcher::patcher::-FMrate1" : [ 4.0 ], "patcher::patcher::-FMrate2" : [ 1.0 ], "patcher::patcher::-FMduty1" : [ 25.0 ], "patcher::patcher::-FMduty2" : [ 25.0 ], "patcher::patcher::-FMrf1" : [ 0.0 ], "patcher::patcher::-FMrf2" : [ 0.0 ], "patcher::patcher::-FMtog" : [ 1.0 ], "patcher::patcher::-FM-harm" : [ 5.0 ], "patcher::patcher::-FM-Bright" : [ 1.0 ], "patcher::patcher::-FM-HarmFine" : [ 0.0 ], "patcher::patcher::-FM-BrightFine" : [ 0.0 ], "patcher::patcher::-FMoscs" : [ 1.0 ], "patcher::patcher::-FMbal" : [ 45.0 ], "patcher::patcher::C-o1" : [ 1.0 ], "patcher::patcher::C-o2" : [ 1.0 ], "patcher::patcher::C-rate1" : [ 1.0 ], "patcher::patcher::C-rf1" : [ 6.0 ], "patcher::patcher::C-rate2" : [ 0.5 ], "patcher::patcher::C-rf2" : [ 4.0 ], "patcher::patcher::C-duty1" : [ 0.0 ], "patcher::patcher::C-duty2" : [ 0.0 ], "patcher::patcher::C-Oscs" : [ 1.0 ], "patcher::patcher::C-Bal" : [ 65.0 ] }
      } , "2" : { "id" : 2, "data" : { "patcher::patcher::-Voices" : [ ], "patcher::patcher::-FMhide" : [ ], "patcher::patcher::-EAttack" : [ 200.0 ], "patcher::patcher::-EDecay" : [ 3000.0 ], "patcher::patcher::-ERelease" : [ 200.0 ], "patcher::patcher::-ESustain" : [ 62.0 ], "patcher::patcher::-EAcurve" : [ 0.0 ], "patcher::patcher::-EDcurve" : [ 0.0 ], "patcher::patcher::-ERcurve" : [ 0.0 ], "patcher::patcher::-FMo1" : [ 3.0 ], "patcher::patcher::-FMo2" : [ 0.0 ], "patcher::patcher::-FMrate1" : [ 4.0 ], "patcher::patcher::-FMrate2" : [ 1.0 ], "patcher::patcher::-FMduty1" : [ 50.0 ], "patcher::patcher::-FMduty2" : [ 50.0 ], "patcher::patcher::-FMrf1" : [ 0.0 ], "patcher::patcher::-FMrf2" : [ 0.0 ], "patcher::patcher::-FMtog" : [ 1.0 ], "patcher::patcher::-FM-harm" : [ 5.0 ], "patcher::patcher::-FM-Bright" : [ 1.0 ], "patcher::patcher::-FM-HarmFine" : [ 0.0 ], "patcher::patcher::-FM-BrightFine" : [ 0.0 ], "patcher::patcher::-FMoscs" : [ 1.0 ], "patcher::patcher::-FMbal" : [ 50.0 ], "patcher::patcher::C-o1" : [ 0.0 ], "patcher::patcher::C-o2" : [ 0.0 ], "patcher::patcher::C-rate1" : [ 1.0 ], "patcher::patcher::C-rf1" : [ 0.0 ], "patcher::patcher::C-rate2" : [ 0.5 ], "patcher::patcher::C-rf2" : [ 1.0 ], "patcher::patcher::C-duty1" : [ 0.0 ], "patcher::patcher::C-duty2" : [ 0.0 ], "patcher::patcher::C-Oscs" : [ 1.0 ], "patcher::patcher::C-Bal" : [ 50.0 ] }
      } , "3" : { "id" : 3, "data" : { "patcher::patcher::-Voices" : [ ], "patcher::patcher::-FMhide" : [ ], "patcher::patcher::-EAttack" : [ 200.0 ], "patcher::patcher::-EDecay" : [ 5000.0 ], "patcher::patcher::-ERelease" : [ 250.0 ], "patcher::patcher::-ESustain" : [ 15.0 ], "patcher::patcher::-EAcurve" : [ -0.15 ], "patcher::patcher::-EDcurve" : [ 0.1 ], "patcher::patcher::-ERcurve" : [ 0.25 ], "patcher::patcher::-FMo1" : [ 2.0 ], "patcher::patcher::-FMo2" : [ 3.0 ], "patcher::patcher::-FMrate1" : [ 1.0 ], "patcher::patcher::-FMrate2" : [ 1.5 ], "patcher::patcher::-FMduty1" : [ 50.006001 ], "patcher::patcher::-FMduty2" : [ 25.0 ], "patcher::patcher::-FMrf1" : [ 0.0 ], "patcher::patcher::-FMrf2" : [ 0.0 ], "patcher::patcher::-FMtog" : [ 1.0 ], "patcher::patcher::-FM-harm" : [ 3.653543 ], "patcher::patcher::-FM-Bright" : [ -3.0 ], "patcher::patcher::-FM-HarmFine" : [ 346.0 ], "patcher::patcher::-FM-BrightFine" : [ 0.0 ], "patcher::patcher::-FMoscs" : [ 1.0 ], "patcher::patcher::-FMbal" : [ 85.0 ], "patcher::patcher::C-o1" : [ 0.0 ], "patcher::patcher::C-o2" : [ 3.0 ], "patcher::patcher::C-rate1" : [ 1.0 ], "patcher::patcher::C-rf1" : [ 0.0 ], "patcher::patcher::C-rate2" : [ 0.5 ], "patcher::patcher::C-rf2" : [ 0.0 ], "patcher::patcher::C-duty1" : [ 50.0 ], "patcher::patcher::C-duty2" : [ 20.0 ], "patcher::patcher::C-Oscs" : [ 1.0 ], "patcher::patcher::C-Bal" : [ 15.0 ] }
      } , "4" : { "id" : 4, "data" : { "patcher::patcher::-Voices" : [ ], "patcher::patcher::-FMhide" : [ ], "patcher::patcher::-EAttack" : [ 50.0 ], "patcher::patcher::-EDecay" : [ 5000.0 ], "patcher::patcher::-ERelease" : [ 250.0 ], "patcher::patcher::-ESustain" : [ 15.0 ], "patcher::patcher::-EAcurve" : [ -0.15 ], "patcher::patcher::-EDcurve" : [ 0.1 ], "patcher::patcher::-ERcurve" : [ 0.25 ], "patcher::patcher::-FMo1" : [ 2.0 ], "patcher::patcher::-FMo2" : [ 3.0 ], "patcher::patcher::-FMrate1" : [ 1.0 ], "patcher::patcher::-FMrate2" : [ 1.5 ], "patcher::patcher::-FMduty1" : [ 25.0 ], "patcher::patcher::-FMduty2" : [ 75.0 ], "patcher::patcher::-FMrf1" : [ 0.0 ], "patcher::patcher::-FMrf2" : [ 0.0 ], "patcher::patcher::-FMtog" : [ 1.0 ], "patcher::patcher::-FM-harm" : [ 3.653543 ], "patcher::patcher::-FM-Bright" : [ -3.0 ], "patcher::patcher::-FM-HarmFine" : [ 322.511811 ], "patcher::patcher::-FM-BrightFine" : [ 125.858268 ], "patcher::patcher::-FMoscs" : [ 1.0 ], "patcher::patcher::-FMbal" : [ 50.0 ], "patcher::patcher::C-o1" : [ 0.0 ], "patcher::patcher::C-o2" : [ 2.0 ], "patcher::patcher::C-rate1" : [ 1.0 ], "patcher::patcher::C-rf1" : [ 0.0 ], "patcher::patcher::C-rate2" : [ 0.5 ], "patcher::patcher::C-rf2" : [ 0.0 ], "patcher::patcher::C-duty1" : [ 50.0 ], "patcher::patcher::C-duty2" : [ 25.0 ], "patcher::patcher::C-Oscs" : [ 1.0 ], "patcher::patcher::C-Bal" : [ 15.0 ] }
      } , "5" : { "id" : 5, "data" : { "patcher::patcher::-Voices" : [ ], "patcher::patcher::-FMhide" : [ ], "patcher::patcher::-EAttack" : [ 20.0 ], "patcher::patcher::-EDecay" : [ 5000.0 ], "patcher::patcher::-ERelease" : [ 250.0 ], "patcher::patcher::-ESustain" : [ 33.0 ], "patcher::patcher::-EAcurve" : [ -0.15 ], "patcher::patcher::-EDcurve" : [ 0.1 ], "patcher::patcher::-ERcurve" : [ 0.25 ], "patcher::patcher::-FMo1" : [ 2.0 ], "patcher::patcher::-FMo2" : [ 2.0 ], "patcher::patcher::-FMrate1" : [ 4.0 ], "patcher::patcher::-FMrate2" : [ 1.0 ], "patcher::patcher::-FMduty1" : [ 70.787402 ], "patcher::patcher::-FMduty2" : [ 0.5 ], "patcher::patcher::-FMrf1" : [ 0.0 ], "patcher::patcher::-FMrf2" : [ 0.0 ], "patcher::patcher::-FMtog" : [ 1.0 ], "patcher::patcher::-FM-harm" : [ 4.0 ], "patcher::patcher::-FM-Bright" : [ -4.0 ], "patcher::patcher::-FM-HarmFine" : [ 0.0 ], "patcher::patcher::-FM-BrightFine" : [ 0.0 ], "patcher::patcher::-FMoscs" : [ 1.0 ], "patcher::patcher::-FMbal" : [ 65.0 ], "patcher::patcher::C-o1" : [ 1.0 ], "patcher::patcher::C-o2" : [ 2.0 ], "patcher::patcher::C-rate1" : [ 1.0 ], "patcher::patcher::C-rf1" : [ 1.0 ], "patcher::patcher::C-rate2" : [ 0.5 ], "patcher::patcher::C-rf2" : [ 1.0 ], "patcher::patcher::C-duty1" : [ 0.0 ], "patcher::patcher::C-duty2" : [ 10.5 ], "patcher::patcher::C-Oscs" : [ 1.0 ], "patcher::patcher::C-Bal" : [ 33.33 ] }
      }
      }
      }
      }
    • Oct 24 2014 | 11:48 pm
      Fixed the stack overflow, as the preset object was directly connected to pattrstorage's dumpout. stupid mistake, rebound the preset UI, sorry for the noise in that regard. *edit: I have changed every configurable pattrstorage and pattr attribute without being able to isolate why a prompt asks me to open a json file when I save. *new I also can not figure out for the life of me why the poly~ only works in the editor window, not in ableton without the edit. Even errant, "away from my computer" thoughts would be appreciated. - Windows 7 64bit max 6.1.7 ableton 9.1.3
      *edit - I apologize for the noise, It has all been on my end so far as I can tell. Enjoy my frustrations and the free instrument