DISTRHO / Cardinal

Virtual modular synthesizer plugin
https://cardinal.kx.studio/
GNU General Public License v3.0
2.27k stars 155 forks source link

VST3 plug-in loading fails with glibc error in pthread_setspecific when exiting #214

Closed jcelerier closed 1 year ago

jcelerier commented 2 years ago

Here's the complete log:

[0,000 info CardinalPlugin.cpp:185 Initializer] Cardinal VST3 v2.1
[0,000 info CardinalPlugin.cpp:186 Initializer] Linux 5.17.3-arch1-1.1 #1 SMP PREEMPT Thu, 14 Apr 2022 23:01:14 +0000 x86_64
[0,000 info CardinalPlugin.cpp:187 Initializer] Binary filename: /usr/lib/vst3/CardinalSynth.vst3/Contents/x86_64-linux/CardinalSynth.so
[0,000 info CardinalPlugin.cpp:188 Initializer] Bundle path: /usr/lib/vst3/CardinalSynth.vst3
[0,000 info CardinalPlugin.cpp:189 Initializer] System directory: /usr/share/cardinal
[0,000 info CardinalPlugin.cpp:190 Initializer] User directory: /usr/share/cardinal
[0,000 info CardinalPlugin.cpp:191 Initializer] Template patch: /usr/share/cardinal/template-synth.vcv
[0,000 info CardinalPlugin.cpp:205 Initializer] Initializing plugins
[0,032 info CardinalPlugin.cpp:208 Initializer] Initializing plugin browser DB
[0,037 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/Rail.svg
[0,038 info Rack/src/patch.cpp:251 load] Loading patch /usr/share/cardinal/template-synth.vcv
[0,038 info Rack/src/patch.cpp:321 loadAutosave] Loading autosave /tmp/Cardinal.0001/patch.json
[0,056 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/ADSR-dark.svg
[0,057 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/ScrewBlack.svg
[0,057 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/knob_29px-dark.svg
[0,068 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/button_9px_0.svg
[0,068 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/button_9px_1_green.svg
[0,068 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/port-dark.svg
[0,068 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/TinyLight.svg
[0,070 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/VCAmp-dark.svg
[0,071 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/LVCO-dark.svg
[0,071 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/knob_26px-dark.svg
[0,071 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/button_9px_1.svg
[0,071 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/BogaudioModules/res/knob_16px-dark.svg
[0,071 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/SmallLight.svg
[0,072 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/Cardinal/res/HostAudio.svg
[0,072 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/PJ301M.svg
[0,072 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/Cardinal/res/HostMIDI.svg
[0,073 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/Cardinal/res/HostTime.svg
[0,073 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/Cardinal/res/HostParameters.svg
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget DISTRHO Text Editor
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget Bogaudio ADSR
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget Bogaudio VCAMP
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget Bogaudio LVCO
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget DISTRHO Audio 2
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget DISTRHO Host MIDI
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget DISTRHO Host Time
[0,073 info Rack/src/app/RackWidget.cpp:327 fromJson] Creating module widget DISTRHO Host Parameters
[0,073 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/Plug.svg
[0,074 info Rack/src/window/Svg.cpp:28 loadFile] Loaded SVG /usr/share/cardinal/ComponentLibrary/PlugPort.svg
[0,074 info override/context.cpp:49 ~Context] Deleting window
[0,074 info override/context.cpp:53 ~Context] Deleting patch manager
[0,074 info Rack/src/patch.cpp:194 saveAutosave] Saving autosave /tmp/Cardinal.0001/patch.json
[0,074 info override/context.cpp:57 ~Context] Deleting scene
[0,074 info override/context.cpp:61 ~Context] Deleting event state
[0,075 info override/context.cpp:65 ~Context] Deleting history state
[0,075 info override/context.cpp:69 ~Context] Deleting engine
[0,075 info CardinalPlugin.cpp:241 ~Initializer] Clearing asset paths
[0,075 info CardinalPlugin.cpp:246 ~Initializer] Destroying plugins
[0,075 info CardinalPlugin.cpp:249 ~Initializer] Destroying logger
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_setspecific': Argument invalide.  Aborting.

the code I use for loading it which produces a crash is entirely self-contained here: https://github.com/ossia/score/blob/master/src/vst3puppet/vst3puppet.cpp

dromer commented 2 years ago

Can you reproduce this with other DPF VST3 builds?

Then this report should go to https://github.com/DISTRHO/DPF instead.

jcelerier commented 2 years ago

hmm I think it was only with cardinal but i'll try - what would be a minimal DPF plug-in to try ?

dromer commented 2 years ago

Clone latest develop of DPF (inc submodules) and run make. You should end up with a bin/ dir full of example plugins (various formats including vst3).

falkTX commented 1 year ago

any news on this?

falkTX commented 1 year ago

closing due to lack of feedback