Plugin editor size incorrect?

Has anyone else experienced the following problems with plugin windows?

[attachment=1]JucePluginWindow.png[/attachment]

It seems that the plugin editor windows size is not correct when the plugin opens. With renoise and other host one just sees an empty, but correctly sized window. With the Juce plugin host demo the editor just opens up with the tiniest of windows:

[attachment=0]JuceSmallPlgin.png[/attachment]

I’m not really sure how to resolve this. It seems completely erratic, perhaps 1 in 10 times I open the editor it will appear like this? The JUCE source I’m using is from 6 days ago.

Have you made sure your editor component’s size is set correctly in its constructor?

I’m using the JuceDemoPlugin, so em, I assume you have :slight_smile: In my own plugins I call setSize(400, 300) in the editor constructor. I’m happy to keep digging, but I need some direction…

This issue still persists with the latest version of JUCE but seems to be local to the plugin demo host now. Launching the editor of the demo plugin in the demo host causes it to appear in a minimised fashion but it's completely erratic. 1 out of 10 times it might open fine, but the rest of the time it looks like this:

 

I would like to use the demo plugin host for testing, but it's kind of unusable if one can't access the plugin's editor. Any ideas?

The bug is in the effEditOpen part of Juce_VST_Wrapper.cpp

 

change

              #elif JUCE_LINUX

                editorComp->addToDesktop (0);

                hostWindow = (Window) ptr;

                Window editorWnd = (Window) editorComp->getWindowHandle();

                XReparentWindow (display, editorWnd, hostWindow, 0, 0);

              #else

to


              #elif JUCE_LINUX

                editorComp->addToDesktop (0, ptr);

                hostWindow = (Window) ptr;

              #else

@ Jules: Please test this patch and, if incorporated into Juce, inform all Linux VST Plugin vendors using Juce to provide an Update.

Disclaimer: I don't have a system to test linux VSTs myself, so rely on the community to test this kind of thing.

But if anyone else can confirm that this works, I'd be happy to add it, as it looks sensible to me!

Note: this patch is to make plugins built with the JUCE framework open/resize correctly in VST hosts that have not been built

using the JUCE framework.

 

It does not address any of the fundamental loading/resizing faults of the audio plugin host example.

Sorry to bring up this old chestnut again, but I just checked out the very latest tip and this is still an issue. The Juce audio plugin demo does not load with the correct size in the Juce plugin host demo.  I'm happy to go digging if I can get some direction?