View Issue Details

IDProjectCategoryView StatusLast Update
0006730ardourbugspublic2016-01-11 16:41
ReporterSadKo Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSopenSUSEOS Version13.2
Product Version4.4 
Summary0006730: Plugin analysis for VST doesn't report sample rate
DescriptionArdour doesn't send effSetSampleRate event to the dispatcher function of the plugin when pressing 'Plugin analysis' button in the generic editor of the plugin.
Steps To Reproduce1. Add VST plugin to mixer stripe, Ardour reports sample rate by passing effSetSampleRate event to the dispatcher function.

2. Open the generic editor, all works fine.

3. Press 'Plugin analysis'. Ardour instantiates new plugin but does not report sample rate to the plugin.

For my plugin, that requires sample rate, it's the crash because no buffers are allocated.
Additional InformationHere is the backlog.

*** The plugin was added to the mixer stripe: ***
T[/home/sadko/eclipse/lsp-plugins/include/container/vst/main.h: 146] VSTPluginMain: Getting factory
lookup_factory: Trying shared library /usr/local/lib/vst/lsp-plugins-vst-core.so
T[vst.cpp: 639] vst_instantiate: Instantiated plugin Verzögerungsausgleicher Stereo - Delay Compensator Stereo
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=0 (effOpen), index=0, value=0, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=58 (effGetVstVersion), index=0, value=0, ptr=(nil), opt = 0,000
T[vst.cpp: 322] vst_dispatcher: vst_version = 2400
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=10 (effSetSampleRate), index=0, value=0, ptr=(nil), opt = 48000,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=11 (effSetBlockSize), index=0, value=200, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=56 (effGetParameterProperties), index=0, value=0, ptr=0x7fff91b93220, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=8 (effGetParamName), index=0, value=0, ptr=0x7fff91b931e0, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=56 (effGetParameterProperties), index=1, value=0, ptr=0x7fff91b93220, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=8 (effGetParamName), index=1, value=0, ptr=0x7fff91b931e0, opt = 0,000
...

*** The generic UI has been opened: ***
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=58 (effGetVstVersion), index=0, value=0, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=8 (effGetParamName), index=0, value=0, ptr=0x7fff91b92cc0, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=8 (effGetParamName), index=0, value=0, ptr=0x7fff91b92cc0, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=56 (effGetParameterProperties), index=0, value=0, ptr=0x7fff91b92c20, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=8 (effGetParamName), index=1, value=0, ptr=0x7fff91b92cc0, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=8 (effGetParamName), index=1, value=0, ptr=0x7fff91b92cc0, opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x2883d20, opcode=56 (effGetParameterProperties), index=1, value=0, ptr=0x7fff91b92c20, opt = 0,000
...

*** The 'Plugin analysis' was pressed ***
T[/home/sadko/eclipse/lsp-plugins/include/container/vst/main.h: 146] VSTPluginMain: Getting factory
T[vst.cpp: 639] vst_instantiate: Instantiated plugin Verzögerungsausgleicher Stereo - Delay Compensator Stereo
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x5a74230, opcode=0 (effOpen), index=0, value=0, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x5a74230, opcode=58 (effGetVstVersion), index=0, value=0, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x5a74230, opcode=12 (effMainsChanged), index=0, value=1, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x5a74230, opcode=12 (effMainsChanged), index=0, value=0, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x5a74230, opcode=11 (effSetBlockSize), index=0, value=1000, ptr=(nil), opt = 0,000
T[vst.cpp: 309] vst_dispatcher: vst_dispatcher effect=0x5a74230, opcode=12 (effMainsChanged), index=0, value=1, ptr=(nil), opt = 0,000
< SEGMENTATION FAULT >

Because there was no effSetSampleRate reported, the plugin didn't allocate buffers for delay line, so it died while trying to dereference null pointer.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-01-11 16:41 SadKo New Issue