Plugins that are built for Rack v2

I’m getting a crash when reopening that patch - I downloaded it and opened it, closed rack and restarted it and now Rack crashes on launch with this in the log:

[0.263 fatal adapters/standalone.cpp:60 fatalSignalHandler] Fatal signal 11 SIGSEGMENTATION FAULT. Stack trace:
13: /home/alex/.local/share/VCV/Rack2Pro/Rack() [0x403d8f]
12: /usr/lib/libc.so.6(+0x3cda0) [0x7f7a31a15da0]
11: /home/alex/.Rack2/plugins/Prism/plugin.so(_ZN7Rainbow7processERKN4rack6engine6Module11ProcessArgsE+0x12fe) [0x7f7a244c646e]
10: ./libRack.so(_ZN4rack6engine6Module9doProcessERKNS1_11ProcessArgsE+0xa15) [0x7f7a320edc15]
9: ./libRack.so(_ZN4rack6engine6Engine9stepBlockEi+0x75a) [0x7f7a320e7cca]
8: ./libRack.so(_ZN4rack5audio6Device13processBufferEPKfiPfii+0x151) [0x7f7a32032541]
7: ./libRack.so(_ZN4rack13RtAudioDevice15rtAudioCallbackEPvS1_jdjS1_+0xc7) [0x7f7a32010be7]
6: ./libRack.so(_ZN9RtApiJack13callbackEventEm+0x1e0) [0x7f7a324bd0a0]
5: ./libRack.so(+0x7a8431) [0x7f7a324bd431]
4: /usr/lib/pipewire-0.3/jack/libjack.so.0(+0x1800e) [0x7f7a316df00e]
3: /usr/lib/spa-0.2/support/libspa-support.so(+0x72cb) [0x7f7a31cff2cb]
2: /usr/lib/libpipewire-0.3.so.0(+0x43590) [0x7f7a306af590]
1: /usr/lib/libpthread.so.0(+0x9259) [0x7f7a319c1259]
0: /usr/lib/libc.so.6(clone+0x43) [0x7f7a31ad75e3]

I’m using standalone rack on linux if that is relevant.

Did you build from the latest commit on GitHub?

I didn’t build, just used what’s in the library. I can’t build it, on make I am getting:

make: jq: No such file or directory
make: jq: No such file or directory
/home/alex/.git_repos/Rack-SDK2//plugin.mk:9: *** SLUG could not be found in manifest.  Stop.

What am I doing wrong?

You’re missing jq by the looks of it.

Your build toolchain isn’t complete; follow the instructions here: VCV Manual - Building for your OS up to the “Building Rack” part, then try again.

Ah ok, I didn’t realise that is a package. Now failing with this:


g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/Rotation.cpp.o src/Rotation.cpp
src/Rainbow.cpp:42:14: error: ‘void LED::drawLayer(const rack::widget::Widget::DrawArgs&, int)’ marked ‘override’, but does not override
   42 |         void drawLayer(const DrawArgs& args, int layer) override {
      |              ^~~~~~~~~
src/Rainbow.cpp: In member function ‘void LED::drawLayer(const rack::widget::Widget::DrawArgs&, int)’:
src/Rainbow.cpp:52:30: error: ‘drawLayer’ is not a member of ‘rack::app::LightWidget’
   52 |                 LightWidget::drawLayer(args, layer);
      |                              ^~~~~~~~~
src/Rainbow.cpp: At global scope:
src/Rainbow.cpp:1083:14: error: ‘void BankWidget::drawLayer(const rack::widget::Widget::DrawArgs&, int)’ marked ‘override’, but does not override
 1083 |         void drawLayer(const DrawArgs& ctx, int layer) override {
      |              ^~~~~~~~~
src/Rainbow.cpp: In member function ‘void BankWidget::drawLayer(const rack::widget::Widget::DrawArgs&, int)’:
src/Rainbow.cpp:1104:25: error: ‘drawLayer’ is not a member of ‘rack::widget::Widget’
 1104 |                 Widget::drawLayer(ctx, layer);
      |                         ^~~~~~~~~
src/RainbowExpander.cpp:1128:14: error: ‘void FrequencyDisplay::drawLayer(const rack::widget::Widget::DrawArgs&, int)’ marked ‘override’, but does not override
 1128 |         void drawLayer(const DrawArgs& ctx, int layer) override {
      |              ^~~~~~~~~
src/RainbowExpander.cpp: In member function ‘void FrequencyDisplay::drawLayer(const rack::widget::Widget::DrawArgs&, int)’:
src/RainbowExpander.cpp:1199:25: error: ‘drawLayer’ is not a member of ‘rack::widget::Widget’
 1199 |                 Widget::drawLayer(ctx, layer);
      |                         ^~~~~~~~~
src/RainbowExpander.cpp: At global scope:
src/RainbowExpander.cpp:1251:14: error: ‘void ExpanderBankWidget::drawLayer(const rack::widget::Widget::DrawArgs&, int)’ marked ‘override’, but does not override
 1251 |         void drawLayer(const DrawArgs& ctx, int layer) override {
      |              ^~~~~~~~~
src/RainbowExpander.cpp: In member function ‘void ExpanderBankWidget::drawLayer(const rack::widget::Widget::DrawArgs&, int)’:
src/RainbowExpander.cpp:1270:25: error: ‘drawLayer’ is not a member of ‘rack::widget::Widget’
 1270 |                 Widget::drawLayer(ctx, layer);
      |                         ^~~~~~~~~
g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/Tuning.cpp.o src/Tuning.cpp
g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/scales/BP.cpp.o src/scales/BP.cpp
g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/scales/Buchla296.cpp.o src/scales/Buchla296.cpp
g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/scales/ET_Chromatic.cpp.o src/scales/ET_Chromatic.cpp
g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/scales/ET_Intervals.cpp.o src/scales/ET_Intervals.cpp
g++ -std=c++11 -Wsuggest-override  -fPIC -I/home/alex/.git_repos/Rack-SDK2//include -I/home/alex/.git_repos/Rack-SDK2//dep/include -fno-gnu-unique -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_LIN  -c -o build/src/scales/ET_Major.cpp.o src/scales/ET_Major.cpp
make: *** [/home/alex/.git_repos/Rack-SDK2//compile.mk:68: build/src/RainbowExpander.cpp.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/alex/.git_repos/Rack-SDK2//compile.mk:67: build/src/Rainbow.cpp.o] Error 1

Are you using the latest SDK?

Yeah just downloaded it

Maybe I’m not, shows last modified in September

Something is messed up in your build enviroment.

drawLayer is most certainly a member of LightWidget VCV Rack API: rack::app::LightWidget Struct Reference

Sorry Steve, I downloaded the wrong SDK. Just downloaded the 2.0.0 (newest one I can see as the sort function doesn’t work for me on that page) and just rebuilt. No problems with the patch now.

Glad to hear it.

There should be a mantra, like in the real estate business: location, location, location.

For building plugins it ought to be: latest, latest, latest. :wink:

2 Likes

Hey Steve, the last file rainbow v2.vcv still crashes ( on rack 2.01 and 2.02 ) if I try to open it from open recent, If I try to open the file from finder when rack is not running , right clicking on the file and picking Rack 2 , I get this message: The document “rainbow v2.vcv” could not be opened. VCV Rack 2 Free cannot open files in the “VCV Rack Patch” format. I have tried it with an other patch just with rainbow and audio module to make sure , I got the same result
just rainbow .vcv (1.4 KB) Runing on Macbook Air M1 macosx 11.2.3 (20D91) VCV Rack v2.02 I also realise that my old V1 patches that contain rainbow module , crashes if I try to open them with Rack V2

You need to build Rainbow from GitHub, I’ve only just pushed the update fix to the library.

Steve, I am not a developer, just an end user. My knowhow is very limited about how to build plugins from Github, thats why I think I’ll stick with whatever the library provides. I really like the Rainbow module and I really do appreciate the effort you put in to make it possible, I just wanted to point out this bug running on my configuration therefore helping debugging. I hope this issue will be fixed in the next update… cheers

Tried to open the patch in VCV2 Vst plugin (v 2.02) in Ableton 11.0.12 as well which crashes Ableton immediately… But strangely now I can open the patch in Rack Standalone with no problems… I am really confused, I hope this helps

There are certain issues that only cause a crash in the VST while working fine in standalone - it’s ‘normal’ :slight_smile:

Normal in quotes meaning it’s very bad, but at this early stage of vcv 2 and the third party plugins for v2 it’s happening a lot. Most of these will be fixed quickly.

indeed, the elves are very busy

Yes it does. I put it in my folder together with all the other stuff floating around.

Hey Steve , I am testing Rainbow v 2.3.3 , I kindly would like to report an issue. I am getting some audio clipping when pressing the note or scale buttons… this problem was not there with v2.3.2 … I can send you a patch if you would like to take a look … Thanks