[BR] Crash in Max/MSP VST3 in `EditorContextMenu`

Max/MSP crashes when calling EditorContextMenu::getEquivalentPopupMenu(). This can be easily reproduced using JUCE’s stock DSPModulePluginDemo:

(1) Create a max patch with a “vst~ DSPModulePluginDemo”
(2) Double-click the node to bring up the editor
(3) Right-click on a slider
=> crash

Please could you confirm the following:

  • Which JUCE version are you testing?
  • Which Max version are you testing?
  • On which OS?

Ouups that was a bit of a botched bug report :slight_smile: sorry.

This bug is bugging me since two years. But the current configuration is:

  • JUCE 8.0.8
  • Max 8.6.5
  • on macOS 15.5

Last known good JUCE version is 7.0.3 but there might be later ones that still work.
This version supports both host provided context menu in e.g. REAPER and no crash in Max

Anyway, thanks for the quick answer

Have you tried any non-JUCE plugins that support the context menu feature? Do those also crash?

I tried this in Max 8 and 9. I see the crash in v8, but v9 seems fine, so I wonder whether this is a Max bug.

Just used the summer sale to upgrade to Max 9. I can confirm it is working there. The only thing that makes me think it is worthwhile to investigate a little bit is that with JUCE 7 this bug didn’t occur and if there might be an assumption from Max’s that other hosts share that might lead to crashes too.