Max crash when saving embedded gen patcher.

Boris Uytterhaegen's icon

Hi,

I have a project, with a main max patcher. This patcher contains a gen patcher [gen~ @gen maingen.gendsp] that's saved in the project directory, this maingen.dsp patcher contains yet another gen patcher [gen @gen subgen.gendsp], also saved in the project directory.

Now when I open the subgen patcher and save it after an edit, Max crashes.

I can't reproduce the issue in a project where i start form scratch, so it's probably related to the specific project, but i've got no idea what is wrong.

Is this a bug or is this pilot error?
Any way to get this to work, what to check?

Cheers,

Boris

Joshua Emmons's icon

Same problem here 😢

Here’s my version information.

{
    "version": "Version 9.2.1 (b6a40ee953d) (arm64 mac)",
    "platform": "mac",
    "arch": "arm64",
    "osversion": "Mac OS Version 27.0.1 (Build 26A434) arm64",
    "displays": [
        {
            "rect": "0 0 1512 982",
            "primary": 1,
            "scale": 2.0
        }
    ],
    "samplerate": 48000,
    "iovs": 512,
    "sigvs": 64,
    "scheduler_in_audio_interrupt": "off",
    "audio_drivername": "Core Audio",
    "audio_driver_subname": "",
    "preferences": {
        "snippetbrowser_factorycontent": 1,
        "useexternaleditor": 0,
        "audiobrowser_useduration": 0,
        "globalzoomfactor": 100,
        "inspectorwindow_rect": [ 1098.0, 100.0, 400.0, 755.0 ],
        "gfxengine": "glcore",
        "prioritizeexterns": 1,
        "videobrowser_factorycontent": 1,
        "disableschedstop": 0,
        "wheelzoomfactor": 75.0,
        "imagebrowser_factorycontent": 1,
        "helpinlockedpatchers": 0,
        "defaultcachesize": 1.0,
        "segpatchcords": 0,
        "oscvaluemode": 0,
        "constrainduplicates": 0,
        "followlivetheme": 1,
        "prioritizepatchlines": 0,
        "oscprefixmode": 1,
        "colortheme": "default",
        "default_template": "",
        "patchingmechanics": 1,
        "dsp_iovectorsize": 4,
        "refreshrate": 30.0,
        "oscqueryenable": 0,
        "vstscanmode": 0,
        "audiobrowser_factorycontent": 1,
        "enableglobalcontext": 1,
        "autoconnectusesmouseposition": 0,
        "dsp_option2": 0,
        "oscreceivequantize": [ 0.0, "ticks" ],
        "genpatcher_autocompileinterval": 1000,
        "setqueuethrottle": 100,
        "wheelzoomdirection": 0,
        "patchline_curved": 1,
        "syntaxcoloring": 1,
        "assistance": 1,
        "oscparamenableddefault": 1,
        "dsp_outputdevice": 1,
        "oscreceiveudpport": 30338,
        "systimerearlywake": 1,
        "jit_glreadback": "fbo",
        "setslop": 25.0,
        "maxwindow_fontsize": 12.0,
        "autoboxedit_patching": 0,
        "restorewindows": 1,
        "dsp_driver": 1,
        "oscsendthreshold": [ 0.0, "ms" ],
        "defaultpatchersize": 1,
        "rnbo_log_level": 1,
        "jed_fontsize": 12.0,
        "tapwindow_rect": [ 300.0, 100.0, 380.0, 400.0 ],
        "filebrowseratstartup": 0,
        "maxurlproxyname": "",
        "logtosystemconsole": 0,
        "inspector_tab": 3,
        "setmixerramptime": 10.0,
        "oscsendudpaddr": "127.0.0.1",
        "patchingmarginpercent": 50.0,
        "rnbo_log_file": "",
        "maxwindow_showonlyerrors": 0,
        "patcherinspector": 0,
        "setnativefontpanel": 0,
        "oscsendmode": 0,
        "toolbarquickrecord_redbutton": 0,
        "inspectorwindow_sidebarrect": [ 1092.0, 189.0, 340.0, 759.0 ],
        "usewebeditor": 0,
        "forcejwebrendermode": 0,
        "showcluebar": 0,
        "illustrationspeed": 5,
        "n4m_debug_log_name": "",
        "patcher_boxsnapmargin": 2,
        "maxwindow_showrepl": 1,
        "externaleditor": "",
        "n4m_debug_log_enabled": 0,
        "patchingmargin": 2,
        "cluewindow_startup": 0,
        "startuptour": 0,
        "drawerwidth": 400,
        "selecttextonclick_patching": 0,
        "glengine": "gl3",
        "savedependencies": 1,
        "inspector_showattrs": 0,
        "eventprobing": 0,
        "savesingletons": 0,
        "cluewindow_rect": [ 200.0, 200.0, 140.0, 300.0 ],
        "oscprefix": "",
        "autocompletionspace": 1,
        "helppatchershowsdrawer": 1,
        "showpatcherstyle": 0,
        "translation": "English (en)",
        "maxatstartup": 1,
        "dsp_signalvectorsize": 6,
        "oscqueryport": 30339,
        "rnbo_server_autostart": 1,
        "jed_fontname": "<Monospaced>",
        "autofixwidth": 1,
        "wiggletime": 350,
        "popupbrowserbar": 1,
        "dsp_samplerate": 1,
        "export_dpi": 72,
        "oscdefer": 0,
        "maxwindow_fontname": "Arial",
        "setsysqelemthrottle": 1000,
        "maxwindow_queuesize": 10000,
        "overdrive": 0,
        "defaultglcontext": "",
        "layoutbubbles": 0,
        "jwebremotedebuggingport": 0,
        "dsp_option1": 0,
        "setscrollbarmode": 2,
        "oscreceivethreshold": [ 0.0, "ms" ],
        "toolbarcluemode": 1,
        "debugqueuesize": 0,
        "toolbarquickrecord_format": 0,
        "syntaxcolorset": "Theme Default",
        "setpollthrottle": 40,
        "inspector_showcolumnheader": 0,
        "loadbangonpaste": 0,
        "snaptopixelbydefault": 0,
        "crashrecovery": "Ask",
        "oscuseparamprefix": 1,
        "dsp_inputdevice": 1,
        "oscreceivemode": 0,
        "maxwindow_showtime": 0,
        "seteventinterval": 2,
        "newpatchershowsdrawer": 1,
        "dsp_cpulimit": 0.0,
        "checkforupdates": 1,
        "setmixerparallel": 0,
        "oscsendudpport": 30337,
        "autolockunselected": 2,
        "rnbo_log_folder": "",
        "maxwindow_rect": [ 0.0, 95.0, 379.0, 819.0 ],
        "probeenable": 0,
        "videoengine": "avf",
        "imprint_setdefaults": 0,
        "setmixerlatency": 30.0,
        "inspectreadonly": 1,
        "maxwindow_dequeuesize": 128,
        "colortitlebar": 1,
        "usespacesforjed": 1,
        "setarrowkeysscrollpatcher": 0,
        "loglevel": 3,
        "setmixergbitmode": 0,
        "n4m_debug_log_folder": "",
        "debugwindow_rect": [ 200.0, 200.0, 500.0, 580.0 ]
    },
    "license": "permanent full",
    "packages": {
        "Ableton DSP": "2.0.0",
        "BEAP": "1.0.4",
        "gl3": "0.3.3",
        "hap": "1.0.6",
        "jit.mo": "1.1.8",
        "Jitter Geometry": "1.0.0",
        "Jitter Tools": "1.3.0",
        "Max for Live": "1.0.9",
        "max-mxj": "8.2.0",
        "maxforlive-elements": "1.0.13",
        "Mira": "1.2.2",
        "Node for Max": "3.0.5",
        "RNBO": "1.4.6",
        "VIDDLL": "1.3.1",
        "Vizzie": "2.3.0"
    }
}
Rob Ramirez's icon

if you have something reproducible, please report this to support and get them the files so we can isolate and potentially find a fix: https://cycling74.com/support/contact?scope=tech

Joshua Emmons's icon

For me, this seems to have been resolved by just by changing the way I was referencing my gendsp from within other gen patchers. I used to use:

[gen @gen mypatcher.gendsp]

to define these objects. If, instead, name them like abstractions, using simply:

[mypatcher]

the crashes stop.

I’ve created the minimum possible test projects for both examples and uploaded to support with step-by-step instructions for reproducing the crash.