libossia icon indicating copy to clipboard operation
libossia copied to clipboard

[ossia-max] crash with nested parameters and remotes

Open evanmtp opened this issue 2 years ago • 2 comments

I've been getting a crash recently involving a patch with a number of models and views (wrapped together as modules, in the old Jamoma style). The models are a bit complex, so I tried to trace the problem by deleting sections, reopening the patch and seeing if it still crashed. I think I've traced it to a couple of parameters in the model that are inside of a subpatcher, as well as the corresponding remotes in the view that are also nested in a subpatcher.

Here's the crash report:

https://gist.github.com/evanmtp/6f58b243404ee3f350732a1d78ca71de

And here are the test files:

test.zip

Steps to reproduce:

  1. Open _start.maxpat .

I tried simplifying _start.maxpat to make debugging easier, e.g. by deleting duplicates of the module as well as all other objects. I noticed a couple of things in this process:

  1. With the current version of _start.maxpat, Max crashes as soon as the patch is opened. When I tried a version of _start.maxpat containing fewer instances of the model, the crash would only happen when I closed the patch.
  2. With the current version of _start.maxpat, macOS tends to produce an error report consistently, whereas with the simplified version, clicking "Report..." wouldn't bring anything up.
  3. With the simplified version, sometimes opening and closing the patcher several times would lead to the crash.

evanmtp avatar Jun 02 '22 01:06 evanmtp

Arf I don't have my mac around this week... @avilleret do you have some time for checking this one ?

jcelerier avatar Jun 07 '22 07:06 jcelerier

I can reproduce it, I'll try to fix it

avilleret avatar Jun 08 '22 10:06 avilleret

i think i got it, will push soon

jcelerier avatar Oct 19 '22 18:10 jcelerier

I think we can close this one :)

jcelerier avatar Nov 03 '22 15:11 jcelerier