Menu

#1300 Pd crashes when sending 'menuclose' to a patch opened multiple times

v0.47
open
nobody
5
2017-07-04
2017-07-04
Zack Lee
No

Hi, I found out when I open a pd patch multiple times and then if I try to close them using 'menuclose', it seems like it is causing pd to crash.

It didn't always crash, but in my experience it crashed about 9 out of 10 times.
I attached 2 files that are 'test.pd' and 'child.pd'.

Please follow the steps below to test yourself

  1. Download 'test.pd' and 'child.pd' and open 'test.pd'.
  2. Make sure you edit the path in the message box so pd can find and open 'child.pd'.
  3. Try opening and closing 'child.pd' as instructions written in the patch.
  4. Repeat 10 times and see if pd crashes on your computer.

I used Pd-0.47-1-64bit on Mac OS X 10.11.6.
I really hope this can be fixed.

Thanks,
Zack

PS: I personally think it would be better if there's a way to close the specific patch among a patch that is opened multiple times.

2 Attachments

Discussion

  • IOhannes m zmölnig

    confirmed.

    it seems that the deletion of the patches invalidates the elements of a currently-traversed linked list and Pd doesn't check for that...

     
  • IOhannes m zmölnig

    btw, you can close a specific patch by using [namecanvas] to attach a unique name to the patch, and send a menuclose 1 message to that name.

    just make sure to not do this from within the patch you are about to close...

     
    • Zack Lee

      Zack Lee - 2017-07-05

      Thank you so much!
      I tried your suggestion and it no longer crashed when I close patches using [namecanvas] instead of patch filename :)

       

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB