(SOLVED) Can anyone confirm this issue in Windows 10 20H2? (VSTGUI)

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

VSTGUI is a submodule, and in VS, when you're in Solution Explorer, you can expand surge-vst3-dll, then VSTGUI group, and in vstgui_win32.cpp you should see an include to win32optionmenu.cpp.

Thanks for taking a look!


(Also thanks for the flowers - the easier it is to clone the repo and build the plugin, the more interest we might gather from other devs... or so we hope :))

Post

Ha thank you. That's the bug indeed. Very useful.

And glad you had a pleasant experience building surge. We've worked hard to make it easy to build and debug.

Post

And this is a big shaming moment for me, since I wrote those specific queries... :oops:

Post

And FIXED!

@lkjb - you have been credited for debugging in the git transaction log. Much, much appreciated!

Post

Sorry. Please ignore this.
www.solostuff.net
The 3rd law of thermo-dynamics states that: the 2nd law has two meanings, one of them is strictly wrong, the other is massively misunderstood.

Post

I can't, now I wanna know what you wanted to say :D

Post

ha ha :). It was just something about getNbItemsPerColumn() returning 1. So VSTGUI thinks that we want 1 item columns which prety much explains the weird horizontal look on the image you posted.

Apparently an old source of Surge I have here has setNbItemsPerColumn(32). Didn't see any usercat_pos. So I assume this was a new thing.
www.solostuff.net
The 3rd law of thermo-dynamics states that: the 2nd law has two meanings, one of them is strictly wrong, the other is massively misunderstood.

Post

Yes that was a new addition I added for the upcoming 1.9 update... I just didn't make the queries bulletproof. Now they are :)

Post

Glad I could help. Without S0lo's post I hadn't had any idea where to start.

I'm sure I had dozens of bugs like this one which depend on some kind of installation state and therefore only manifest rarely and preferably with users rather than developers. Quite a classic kind of bug. :)

Post

I also want to say that this bug prompted a closer inspection of how that menu was built, so I also found a few inconsistencies along the way. For example: when Surge installs, it has two folders with "factory patches", called presets-factory and presets-3rdparty. Users can certainly remove one or both of those folders if they wish (but when they update the installer would reinstate those), but interesting things happened in these cases.

1. If user removed 3rdparty but left factory, there would be no separator after the last factory folder. Looked bad!
2. If user removed factory AND 3rd party, the user patches header would say THIRD PARTY PATCHES. That makes no sense, does it?

So I now covered all possible cases of intentionally or unintentionally removed factory/3rdparty patches folders - headers will always say the proper thing, and separators will show up where they need to show up.

Minutia and nitpicky, but that's how I roll... :lol:

Post Reply

Return to “DSP and Plugin Development”