CSplashScreen crashes in AU mode while opening, but not in VST mode

31 views
Skip to first unread message

Ju R.

unread,
Aug 26, 2014, 9:42:37 AM8/26/14
to symbiosi...@googlegroups.com
Hi,

I am trying to figure out why my CSplashScreen crashes while opening, if I use the wrapped AU version of my plugin. I use symbiosis 1.3. If I use the VST version, everything works all right.

This is the splash screen code:

        size (454, 156, 471, 173);

        size.offset (0, 0);

        point (0, 0);

        CRect toDisplay (0, 0, hSplashBitmap->getWidth (), hSplashBitmap->getHeight ());

        toDisplay.offset (15, 15);

        cSplashScreen = new CSplashScreen (size, this, kAbout, hSplashBitmap, toDisplay, point);

        lFrame->addView (cSplashScreen);

        hSplashBitmap->forget();


hThis is the position in symbiosis.mm where thread 1 receives a SIGABRT signal. It's in line 3149:

void SymbiosisComponent::automate(VSTPlugIn& plugIn, int parameterIndex, float /*value*/) {

       (void)plugIn;

       SY_ASSERT(&plugIn == vst);

       SY_ASSERT(parameterIndex >= 0 && parameterIndex < vst->getParameterCount());   <<------



Any idea what I am doing wrong here? 

Thanks for help.

Ju R.

unread,
Sep 19, 2014, 11:23:26 AM9/19/14
to symbiosi...@googlegroups.com
I fixed the problem by disabling setParameterAutomated for the kAbout (Splashscreen) parameter in the vstgui editor code:

[CODE]void SDEditor::valueChanged (CControl* control) {
    if (cSplashScreen->getValue() || tag == kAbout)
        return;
[/CODE]

Chris Randall

unread,
Sep 23, 2014, 12:47:41 PM9/23/14
to symbiosi...@googlegroups.com
You should put your kAbout parameter _after_ kNumParameters in the parameter enum; then it is ignored by all the parameter handling mechanisms (and the host's automation) and you don't run in to these problems. 

--
You received this message because you are subscribed to the Google Groups "Symbiosis AU VST" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symbiosis-au-v...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Admiral Quality

unread,
Sep 23, 2014, 12:52:22 PM9/23/14
to symbiosi...@googlegroups.com
Agreed. Symbiosis had some problems with non-parameter control IDs but
we got that fixed a few updates ago and they work fine now. I make a
second enum for the "non-parameters" after the actual-parameters enum
and initialize the first one to kNumParameters.

- Mike
Reply all
Reply to author
Forward
0 new messages