Editing .json imported into dict outside of max issue
Hi,
When i try to edit a json file in a text editor after I've imported it into a dict my patcher crashes.
I have a json file inside a folder (./folder/track.json) at the same level as the patcher. I then drag and drop the folder onto the drop file. If I try to edit the json outside of max to adjust the data, when I save, the patcher and max crashes.
Here is what my json looks like:
{
"jitter-max-dim-size" : 255,
"jitter-scale" : "0.06 0.06 0.06",
"jitter-gl_color" : "0. 0. 1. 1."
}
Thanks for take a look.
Process: Max [1579]
Path: /Applications/Max.app/Contents/MacOS/Max
Identifier: com.cycling74.Max
Version: 8.6.2 (d076223e34e) (8.6.2)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-03-20 22:47:38.8660 -0400
OS Version: macOS 14.4 (23E214)
Report Version: 12
Anonymous UUID: 7D360DDD-BC22-A7A5-EEE9-47DC49B04F3F
Time Awake Since Boot: 2800 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [1579]
json files are plain text with some formatting rules set, nothing else.
also max patches are JSON files.
that is what your crash problem maybe is.
You dump all files that max thinks are JSON files ....
you must match ending .json to prevent that
regexp .+\\.(?i:json)
Hi, thanks for grep tip but it didn't make a difference. After testing some more I localized the issue to the right most outlet in dict object (file operation). If something is connected it crashes. (at least for me)