Error when compiling modules for VCV2

Hey :slight_smile:

I’ve made a couple of basic modules in VCV 1 and I am trying to compile them for VCV 2.

But I am getting this error for the first module:

c++  -std=c++11 -stdlib=libc++   -fPIC -I/Volumes/Jaffa/VCV/VCV2/Rack-SDK/include -I/Volumes/Jaffa/VCV/VCV2/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nehalem -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.9  -c -o build/src/ADSR.cpp.o src/ADSR.cpp
In file included from src/ADSR.cpp:1:
In file included from src/plugin.hpp:3:
src/components.hpp:46:25: error: no member named 'mm2px' in namespace
      'rack::app'
                this->box.size = app::mm2px(math::Vec(3.176, 3.176));
                                 ~~~~~^
1 error generated.
make: *** [build/src/ADSR.cpp.o] Error 1

Did mm2px change name or something? Is there an easy way to fix this error?

Thanks!

Sure is - remove app::

Thanks @pgatt now it actually builds :slight_smile:

After I build my modules I put them in plugin folder in Rack2, but when I open Rack2 and right click to get the module browser, Rack2 crashes right away.

After trying to build it again I realise it builds, but there might still be a few error I need to fix.

I did a new make install and this is what I get in terminal:

rm -rf dist
mkdir -p dist/Jaffasplaffa
cp plugin.dylib dist/Jaffasplaffa/
strip -S dist/Jaffasplaffa/plugin.dylib
install_name_tool -change libRack.dylib /tmp/Rack2/libRack.dylib dist/Jaffasplaffa/plugin.dylib
otool -L dist/Jaffasplaffa/plugin.dylib
dist/Jaffasplaffa/plugin.dylib:
	plugin.dylib (compatibility version 0.0.0, current version 0.0.0)
	/tmp/Rack2/libRack.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
rsync -rR res  plugin.json dist/Jaffasplaffa/
cd dist && tar -c Jaffasplaffa | zstd -19 -o "Jaffasplaffa"-"2.0.0"-mac.vcvplugin
/bin/sh: zstd: command not found
make: *** [dist] Error 127

Any suggestions?

Thanks!

As this says, you don’t have zstd installed. It is a new dependency since V2.

That being said, the browser crashing is another issue, probably related to accesing a null module pointer in a widget.

@ unlessgames

Ah yes. I followed the instructions, first I got Rack2 SDK, AFAIK that’s all I need, that zstd should be a part of the Rack2 SDK, right?.

Then I do: export RACK_DIR=/path/to/Rack-SDK make clean make install

You need to setup your development environment. You might have done this for V1 and forgot to update it for V2 (which added zstd to compress patches/plugins I suppose, which is why the install failed).

No, the SDK contains Rack code, it doesn’t contain the compiler and all other third party tools needed.

Yeah I think you are right, I didn’t setup the dev environment correctly.

Sorry.

It has been a long while since I made the first modules, I am a bit rusty, hehe :wink:

I’ll try this and see if it help, should do it I hope:

brew install git wget cmake autoconf automake libtool jq python zstd```

make clean often gets missed, and especially when converting code from v1 to v2 can cause issues too

Yes, seems to build with no errors now :slight_smile:

I can now open the browser and select other brands, but when I select my own brand it crashes Rack2. I guess I am getting closer, but still needs a bit more tweaking, just not sure what to do here.

Is there anyway to find out what actually causes the crash?

Yes. log.txt should give you a fair idea. If you want to send a link to the repo I’m happy to try and build and test here too.

Thanks!

ATM I don’t have it on Github, just on a local disc. Not really sure how to use Github for projects like this, I mostly just use it for some Pure Data ptches and stuff like that.

Here is the log.txt:

[0.009 info adapters/standalone.cpp:137 main] VCV Rack Free v2.0.2
[0.009 info adapters/standalone.cpp:138 main] Mac 10.13.7
[0.009 info adapters/standalone.cpp:144 main] Args: /Applications/VCV Rack 2 Free.app/Contents/MacOS/Rack 
[0.009 info adapters/standalone.cpp:147 main] System directory: /Applications/VCV Rack 2 Free.app/Contents/Resources
[0.009 info adapters/standalone.cpp:148 main] User directory: /Users/jakobskouborg/Documents/Rack2
[0.009 info adapters/standalone.cpp:150 main] Bundle path: /Applications/VCV Rack 2 Free.app
[0.010 info adapters/standalone.cpp:152 main] System time: 2021-12-08 00:09:28 +0100
[0.010 info src/settings.cpp:455 load] Loading settings /Users/jakobskouborg/Documents/Rack2/settings.json
[0.010 info adapters/standalone.cpp:175 main] Initializing environment
[0.011 info src/rtaudio.cpp:239 RtAudioDriver] Creating RtAudio CoreAudio driver
[1.114 info src/plugin.cpp:118 loadPlugin] Loading Core plugin
[1.114 info src/plugin.cpp:178 loadPlugin] Loaded Core v2.0.2
[1.115 info src/plugin.cpp:205 extractPackages] Extracting package /Users/jakobskouborg/Documents/Rack2/plugins/Jaffasplaffa-2.0.0-mac.vcvplugin
[1.175 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/AaronStatic
[1.214 info src/plugin.cpp:178 loadPlugin] Loaded AaronStatic v2.0.0
[1.215 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/AS
[1.224 info src/plugin.cpp:178 loadPlugin] Loaded AS v2.0.1
[1.224 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/AudibleInstruments
[1.243 info src/plugin.cpp:178 loadPlugin] Loaded AudibleInstruments v2.0.0
[1.243 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Befaco
[1.266 info src/plugin.cpp:178 loadPlugin] Loaded Befaco v2.0.0
[1.266 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Bidoo
[1.280 info src/plugin.cpp:178 loadPlugin] Loaded Bidoo v2.0.1
[1.280 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Bogaudio
[1.324 info src/plugin.cpp:178 loadPlugin] Loaded Bogaudio v2.0.39
[1.324 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/cf
[1.334 info src/plugin.cpp:178 loadPlugin] Loaded cf v2.0.2
[1.334 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/ChowDSP
[1.348 info src/plugin.cpp:178 loadPlugin] Loaded ChowDSP v2.0.1
[1.348 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Comfortzone
[1.359 info src/plugin.cpp:178 loadPlugin] Loaded Comfortzone v2.0.0
[1.359 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/CountModula
[1.395 info src/plugin.cpp:178 loadPlugin] Loaded CountModula v2.0.1
[1.395 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/dBiz
[1.398 info src/plugin.cpp:178 loadPlugin] Loaded dBiz v2.0.1
[1.398 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/DHE-Modules
[1.401 info src/plugin.cpp:178 loadPlugin] Loaded DHE-Modules v2.0.0
[1.401 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/EricaCopies
[1.404 info src/plugin.cpp:178 loadPlugin] Loaded EricaCopies v2.0.0
[1.404 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/ESeries
[1.406 info src/plugin.cpp:178 loadPlugin] Loaded ESeries v2.0.2
[1.406 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Extratone
[1.408 info src/plugin.cpp:178 loadPlugin] Loaded Extratone v2.0.0
[1.408 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/FrozenWasteland
[1.412 info src/plugin.cpp:178 loadPlugin] Loaded FrozenWasteland v2.0.2
[1.412 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Fundamental
[1.414 info src/plugin.cpp:178 loadPlugin] Loaded Fundamental v2.0.0
[1.414 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/GrandeModular
[1.417 info src/plugin.cpp:178 loadPlugin] Loaded GrandeModular v2.0.0
[1.417 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Grayscale
[1.420 info src/plugin.cpp:178 loadPlugin] Loaded Grayscale v2.0.2
[1.420 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/HetrickCV
[1.423 info src/plugin.cpp:178 loadPlugin] Loaded HetrickCV v2.0.0
[1.423 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Hora-treasureFree
[1.425 info src/plugin.cpp:178 loadPlugin] Loaded Hora-treasureFree v2.0.0
[1.425 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/IggyLabsModules
[1.427 info src/plugin.cpp:178 loadPlugin] Loaded IggyLabsModules v2.0.0
[1.427 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/ImpromptuModular
[1.429 info src/plugin.cpp:178 loadPlugin] Loaded ImpromptuModular v2.0.6
[1.429 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Jaffasplaffa
[1.431 info src/plugin.cpp:178 loadPlugin] Loaded Jaffasplaffa v2.0.0
[1.431 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/JW-Modules
[1.434 info src/plugin.cpp:178 loadPlugin] Loaded JW-Modules v2.0.1
[1.435 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/LOGinstruments
[1.436 info src/plugin.cpp:178 loadPlugin] Loaded LOGinstruments v2.0.3
[1.436 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/MindMeldModular
[1.439 info src/plugin.cpp:178 loadPlugin] Loaded MindMeldModular v2.0.8
[1.439 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/ML_modules
[1.442 info src/plugin.cpp:178 loadPlugin] Loaded ML_modules v2.0.0
[1.442 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/MM_Tools
[1.444 info src/plugin.cpp:178 loadPlugin] Loaded MM_Tools v2.0.0
[1.444 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/modular80
[1.445 info src/plugin.cpp:178 loadPlugin] Loaded modular80 v2.0.0
[1.445 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/MSM
[1.447 info src/plugin.cpp:178 loadPlugin] Loaded MSM v2.0.3
[1.448 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/NYSTHI
[1.456 info src/plugin.cpp:178 loadPlugin] Loaded NYSTHI v2.0.10
[1.456 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/OSCelot
[1.459 info src/plugin.cpp:178 loadPlugin] Loaded OSCelot v2.0.0
[1.459 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Prism
[1.461 info src/plugin.cpp:178 loadPlugin] Loaded Prism v2.3.2
[1.461 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/PS-PurrSoftware
[1.463 info src/plugin.cpp:178 loadPlugin] Loaded PS-PurrSoftware v2.0.12
[1.463 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Sha-Bang-Modules
[1.465 info src/plugin.cpp:178 loadPlugin] Loaded Sha-Bang-Modules v2.0.0
[1.465 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/squinkylabs-plug1
[1.470 info src/plugin.cpp:178 loadPlugin] Loaded squinkylabs-plug1 v2.1.2
[1.470 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/StellareModular
[1.471 info src/plugin.cpp:178 loadPlugin] Loaded StellareModular v2.0.0
[1.471 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Tonecarver
[1.473 info src/plugin.cpp:178 loadPlugin] Loaded Tonecarver v2.0.0
[1.473 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/UnfilteredVolume1
[1.476 info src/plugin.cpp:178 loadPlugin] Loaded UnfilteredVolume1 v2.0.3
[1.476 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/Valley
[1.476 info src/network.cpp:201 requestDownload] Requesting download https://api.vcvrack.com/licenses/UnfilteredVolume1.vcvkey?version=2&machineId=881C16DAE3
[1.478 info src/plugin.cpp:178 loadPlugin] Loaded Valley v2.0.0
[1.478 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/VCV-Recorder
[1.481 info src/plugin.cpp:178 loadPlugin] Loaded VCV-Recorder v2.0.0
[1.481 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/voxglitch
[1.484 info src/plugin.cpp:178 loadPlugin] Loaded voxglitch v2.0.2
[1.484 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/VultModulesFree
[1.487 info src/plugin.cpp:178 loadPlugin] Loaded VultModulesFree v2.0.0
[1.487 info src/plugin.cpp:120 loadPlugin] Loading plugin from /Users/jakobskouborg/Documents/Rack2/plugins/ZZC
[1.489 info src/plugin.cpp:178 loadPlugin] Loaded ZZC v2.0.2
[1.496 info src/network.cpp:147 requestJson] Requesting JSON GET https://api.vcvrack.com/version?edition=Free
[1.519 info adapters/standalone.cpp:193 main] Initializing context
[1.520 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/Rail.svg
[2.171 info src/network.cpp:147 requestJson] Requesting JSON GET https://api.vcvrack.com/user
[2.621 info src/network.cpp:147 requestJson] Requesting JSON GET https://api.vcvrack.com/library/manifests?version=2
[3.389 info src/network.cpp:147 requestJson] Requesting JSON GET https://api.vcvrack.com/modules
[3.393 info src/window/Window.cpp:278 Window] Window content scale: 1.000000
[3.758 info src/window/Window.cpp:328 Window] Renderer: Intel Inc. Intel HD Graphics 4000 OpenGL Engine
[3.758 info src/window/Window.cpp:329 Window] OpenGL: 2.1 INTEL-10.36.19
[3.770 info src/window/Window.cpp:50 loadFile] Loaded font /Applications/VCV Rack 2 Free.app/Contents/Resources/res/fonts/DejaVuSans.ttf
[4.918 info src/patch.cpp:305 hasAutosave] Loading autosave /Users/jakobskouborg/Documents/Rack2/autosave/patch.json
[4.918 info src/patch.cpp:316 loadAutosave] Loading autosave /Users/jakobskouborg/Documents/Rack2/autosave/patch.json
[4.918 info adapters/standalone.cpp:236 main] Running window
[5.830 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Users/jakobskouborg/Documents/Rack2/plugins/Jaffasplaffa/res/Panels/TestOsc.svg
[5.830 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/ScrewSilver.svg
[5.830 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/RoundBlackKnob.svg
[5.830 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/RoundBlackKnob_bg.svg
[5.831 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/PJ301M.svg
[5.831 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/MediumLight.svg
[5.836 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Users/jakobskouborg/Documents/Rack2/plugins/Jaffasplaffa/res/Panels/OtherTest.svg
[5.841 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Users/jakobskouborg/Documents/Rack2/plugins/Jaffasplaffa/res/Panels/Sequencer.svg
[5.841 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2 Free.app/Contents/Resources/res/ComponentLibrary/VCVBezel.svg
[5.842 warn src/window/Window.cpp:723 loadFont] Cannot read file /Users/jakobskouborg/Documents/Rack2/plugins/Jaffasplaffa/res/Segment7Standard.ttf
[5.847 fatal adapters/standalone.cpp:60 fatalSignalHandler] Fatal signal 11 SIGSEGMENTATION FAULT. Stack trace:
28: 1   Rack                                0x000000010a4a14b3 _ZL18fatalSignalHandleri + 275
27: 2   libsystem_platform.dylib            0x00007fff56984f5a _sigtramp + 26
26: 3   libRack.dylib                       0x000000010a4e68f5 nvg__tesselateBezier + 437
25: 4   libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
24: 5   libRack.dylib                       0x000000010a57a0a1 _ZN4rack3app12ModuleWidget4drawERKNS_6widget6Widget8DrawArgsE + 97
23: 6   libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
22: 7   libRack.dylib                       0x000000010a565e92 _ZN4rack3app7browser21ModuleWidgetContainer4drawERKNS_6widget6Widget8DrawArgsE + 18
21: 8   libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
20: 9   libRack.dylib                       0x000000010a5e1730 _ZN4rack6widget17FramebufferWidget15drawFramebufferEv + 192
19: 10  libRack.dylib                       0x000000010a5e14ae _ZN4rack6widget17FramebufferWidget6renderENS_4math3VecES3_NS2_4RectE + 1118
18: 11  libRack.dylib                       0x000000010a5e0ee7 _ZN4rack6widget17FramebufferWidget4drawERKNS0_6Widget8DrawArgsE + 503
17: 12  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
16: 13  libRack.dylib                       0x000000010a5e34d9 _ZN4rack6widget10ZoomWidget4drawERKNS0_6Widget8DrawArgsE + 105
15: 14  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
14: 15  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
13: 16  libRack.dylib                       0x000000010a5658e7 _ZN4rack3app7browser8ModelBox4drawERKNS_6widget6Widget8DrawArgsE + 327
12: 17  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
11: 18  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
10: 19  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
9: 20  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
8: 21  libRack.dylib                       0x000000010a5dc064 _ZN4rack2ui12ScrollWidget4drawERKNS_6widget6Widget8DrawArgsE + 52
7: 22  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
6: 23  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
5: 24  libRack.dylib                       0x000000010a5e2e6d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 461
4: 25  libRack.dylib                       0x000000010a5e7b81 _ZN4rack6window6Window4stepEv + 1745
3: 26  libRack.dylib                       0x000000010a5e7498 _ZN4rack6window6Window3runEv + 40
2: 27  Rack                                0x000000010a4a0fc9 main + 2649
1: 28  libdyld.dylib                       0x00007fff56676015 start + 1
0: 29  ???                                 0x0000000000000001 0x0 + 1

There seem to be a fatal error with the Segment7Standard.tff. This is just something I used from AS modules, I think it was, it used to work fine.

EDIT:

Ahhh Sorted it out now, the Segment7Standard.tff was in a wrong folder.

Okay well then feel free to send me a zip if you like.

In this case I think this is a load font error:

https://vcvrack.com/manual/Migrate2

From there:

2) Potential runtime bugs

You might encounter these issues while testing.

2.1) Don’t store Font and Image references across multiple frames

The DAW plugin version of Rack uses a different OpenGL context each time the plugin editor window is closed and reopened. This means that if you load and store a Font or Image in a widget’s constructor with font = APP->window->loadFont(...) or image = APP->window->loadImage(...), its OpenGL reference will be invalid if the window is reopened later.

Instead, save only its path, and fetch the font/image each frame in draw(). Example:

void draw(const DrawArgs& args) override {
	std::shared_ptr<Font> font = APP->window->loadFont(fontPath);
	if (font) {
		nvgFontFaceId(args.vg, font->handle);
		...
	}
}

loadFont() and loadImage() caches the font/image by its path, so this operation can be efficiently called in draw() every frame.

Oh, okay, didn’t know that. I do have plans to use it in a DAW, so need to update that in some way.

I just copied the modules to my new Macbook M1. I had to manually allow the plugins to work, but that’s okay for now, I’ll sort that out later.

Most plugins if not all had to make this change. It’s a fairly easy one. In most cases you’re just editing a few characters nad moving a couple of lines of code to a different method. If you look at most people’s early V2 builds there will be those kinds of changes. If you get stuck let me know.

just pointing the fact that just the LOAD of the FONT in a module CONSTRUCTOR, CRASHes RACK (and the HOST)

no need for the STORE operation…

1 Like

Thanks to everyone for the inputs. At least it’s working now.

Haven’t done coding in a while so have to get into it a bit again. Some of the above suggestions is a bit over my head, I think. But yeah I’ll do some work and get back into it again and see where it goes.

@ pgatt

I don’t understand what you are saying fully, but I guess it’s something I have to deal with at some point, when I get the vst.

I might take you up on your offer. What I have is a bit of a mess currently, so I am a bit embarrassed to share it yet, hehe :slight_smile:

There are so many things I need to update and fix, for example I am not really doing anything in voltages just clean floats, I guess I have to look into that if I want to use my modules with other peoples vcv modules.

But year, winter is here and Covid is back, so not much else to do atm, so I’ll put a bit of time in learning some more coding.

1 Like