azrrik / az-vcv

vcv rack plugins by az
Other
3 stars 1 forks source link

modulo crashes VCV Rack2 #5

Closed gitterdude closed 2 years ago

gitterdude commented 2 years ago

Adding and using modulo works but Rack2 crashes when the program is restarted I've tried in both Rack2-219bbaf1 and the latest beta 05fa24a7.

Rack2 and the plugins are self-compiled in Linux and I've run it using ALSA and JACK; both in their native forms and in the pipewire equivalences.

azrrik commented 2 years ago

I can't reproduce this with the release version.

gitterdude commented 2 years ago

Steps to reproduce :

Boot a live USB Xubuntu-20.04 Download Rack2Free 2.0.3 Start Rack, login and download the plugins. Remove all but az and Fundamental Restart Rack, select ALSA output and device and verify that it plays Add az Modulo Restart Rack and watch it crash

I noticed that I sometimes had to restart a couple of times for the crash to occur.

log.txt :

[0.000 info adapters/standalone.cpp:137 main] VCV Rack Free v2.0.3
[0.000 info adapters/standalone.cpp:138 main] Linux 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64
[0.000 info adapters/standalone.cpp:144 main] Args: ./Rack 
[0.000 info adapters/standalone.cpp:147 main] System directory: /home/xubuntu/Rack2Free
[0.000 info adapters/standalone.cpp:148 main] User directory: /home/xubuntu/.Rack2
[0.000 info adapters/standalone.cpp:152 main] System time: 2021-12-14 13:54:23 +0000
[0.000 info src/settings.cpp:455 load] Loading settings /home/xubuntu/.Rack2/settings.json
[0.000 info adapters/standalone.cpp:175 main] Initializing environment
[0.002 info src/rtaudio.cpp:239 RtAudioDriver] Creating RtAudio ALSA driver
[0.002 info src/rtaudio.cpp:239 RtAudioDriver] Creating RtAudio PulseAudio driver
[0.002 info src/rtaudio.cpp:239 RtAudioDriver] Creating RtAudio JACK driver
[0.011 info src/plugin.cpp:118 loadPlugin] Loading Core plugin
[0.011 info src/plugin.cpp:178 loadPlugin] Loaded Core v2.0.2
[0.011 info src/plugin.cpp:120 loadPlugin] Loading plugin from /home/xubuntu/.Rack2/plugins/az
[0.012 info src/plugin.cpp:178 loadPlugin] Loaded az v2.0.0
[0.012 info src/plugin.cpp:120 loadPlugin] Loading plugin from /home/xubuntu/.Rack2/plugins/Fundamental
[0.015 info src/plugin.cpp:178 loadPlugin] Loaded Fundamental v2.0.0
[0.024 info adapters/standalone.cpp:193 main] Initializing context
[0.025 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/Rail.svg
[0.153 info src/window/Window.cpp:278 Window] Window content scale: 1.000000
[0.175 info src/window/Window.cpp:328 Window] Renderer: Intel Mesa Intel(R) UHD Graphics 620 (KBL GT2)
[0.175 info src/window/Window.cpp:329 Window] OpenGL: 4.6 (Compatibility Profile) Mesa 21.0.3
[0.179 info src/window/Window.cpp:50 loadFile] Loaded font /home/xubuntu/Rack2Free/res/fonts/DejaVuSans.ttf
[0.179 info src/patch.cpp:308 hasAutosave] Loading autosave /home/xubuntu/.Rack2/autosave/patch.json
[0.179 info src/patch.cpp:319 loadAutosave] Loading autosave /home/xubuntu/.Rack2/autosave/patch.json
[0.188 info src/rtaudio.cpp:51 RtAudioDevice] Creating RtAudio ALSA context
[0.191 info src/rtaudio.cpp:119 openStream] Opening RtAudio ALSA device 0: default (32 in, 32 out, 48000 sample rate, 512 block size)
[0.216 info src/rtaudio.cpp:131 openStream] Starting RtAudio ALSA device 0
[0.220 info src/rtaudio.cpp:141 openStream] Opened RtAudio ALSA device 0
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/VCMixer.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/ScrewSilver.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/VCVSlider.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/VCVSliderHandle.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/VCVSliderLight.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/RoundBlackKnob.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/RoundBlackKnob_bg.svg
[0.223 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/PJ301M.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/VCF.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/RoundHugeBlackKnob.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/RoundHugeBlackKnob_bg.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/RoundLargeBlackKnob.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/RoundLargeBlackKnob_bg.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/Trimpot.svg
[0.224 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/Trimpot_bg.svg
[0.225 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/Core/MIDI_CV.svg
[0.225 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/ADSR.svg
[0.226 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/VCVBezel.svg
[0.226 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/Scope.svg
[0.226 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/VCVButton_0.svg
[0.226 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/VCVButton_1.svg
[0.227 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/Core/Notes.svg
[0.227 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/VCO.svg
[0.227 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/SmallLight.svg
[0.228 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/Octave.svg
[0.228 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/Noise.svg
[0.229 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/LFO.svg
[0.229 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/VCA-1.svg
[0.229 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/Core/Audio2.svg
[0.230 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/Fundamental/res/WTVCO.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/Modulo.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/BlackKey.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/BlackKeySelected.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/WhiteKey.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/WhiteKeySelected.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/SmallBlackKnob.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/.Rack2/plugins/az/res/LargeBlackKnob.svg
[0.232 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/CKSS_1.svg
[0.233 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/CKSS_0.svg
[0.233 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/Plug.svg
[0.233 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/xubuntu/Rack2Free/res/ComponentLibrary/PlugPort.svg
[0.233 fatal adapters/standalone.cpp:60 fatalSignalHandler] Fatal signal 11 SIGSEGMENTATION FAULT. Stack trace:
10: ./Rack() [0x403ccf]
9: /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f8c2cf2b210]
8: /home/xubuntu/.Rack2/plugins/az/plugin.so(_ZN6Modulo7processERKN4rack6engine6Module11ProcessArgsE+0x12e) [0x7f8c2a81d12e]
7: ./libRack.so(_ZN4rack6engine6Module9doProcessERKNS1_11ProcessArgsE+0xa15) [0x7f8c2d6034a5]
6: ./libRack.so(_ZN4rack6engine6Engine9stepBlockEi+0x71a) [0x7f8c2d5fdf2a]
5: ./libRack.so(_ZN4rack5audio6Device13processBufferEPKfiPfii+0x146) [0x7f8c2d54add6]
4: ./libRack.so(_ZN4rack13RtAudioDevice15rtAudioCallbackEPvS1_jdjS1_+0xa4) [0x7f8c2d52fe14]
3: ./libRack.so(_ZN9RtApiAlsa13callbackEventEv+0xce) [0x7f8c2d9d0e1e]
2: ./libRack.so(+0x7997b5) [0x7f8c2d9d17b5]
1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7f8c2cecb609]
0: /lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f8c2d007293]

It also crashes in Ubuntu-18.04 and openSuse-15.2

Other plugins work fine; even after 10 restarts

azrrik commented 2 years ago

I finally found some time over the holidays to debug this. Looks like it was updates to the label text that was causing the SIGSEGMENTATION FAULT. There's a an update that's pending release to the VCV library. Feel free to test it on your end before then.

gitterdude commented 2 years ago

Yes, it seems to be working much better now. Thanks.