@vortico I was doing a bit of detective work on the Rack V2 dependencies, to see if I could find something that would inadvertently introduce a minimum MacOS version requirement different from your own.
I see that V2 uses “ghc::filesystem” at version 1.3.6 from 2020.10.10 and quite a few releases have been made since then. Looking at the changelog of the project I saw these (1) two (2) changes from later versions of the project, that seem to revolve around MacOS version detection and handling. Maybe relevant?
@dronehands Would you consider renaming this topic to: “Rack V2 cannot start on macOS 10.12 or lower” ? We need some more people with eyeballs on this, to substantiate the problem. Thanks.
It’s happening for the widgets using OFFSCREENS and disposing the framebuffers in DTOR
and happens only when one close the VCVRack closing the window
people should move the destruction of framebuffers into the “onContextDestroy”
the crash happens because somewhere, very deep in the structure there is a reference to some handle connected to the main window
but at that time the window is already gone and BOOM !
The porting guide says you are not allowed to hold onto off-screen memory at all! but it’s ok since “bitmap loads are cached”. But that does this mean for plugins that draw their own stuff in off-screen buffers???
I have added a destructor in the widget which solved the crash during exit for the Noisedrawer. There wasn’t one in the past. So that fixed it for me, but I see that is doubted by synthi.
I am not sure this is a better solution ( I would call it a workaround?)
I tried opening the template.vcv file in the Rack 2 program resources folder. In addition to the familiar “VCV Rack has crashed…” message box there is now a dialogue box that reads:
“The document “template.vcv” could not be opened. VCV Rack 2 cannot open files in the “VCV Rack Patch” format.”
Edit: the same template file opens just fine in 1.1.6. seems to be a sample patch with all fundamental modules.
Similar crashes, Rack opens but when I click to add a module to an empty patch it goes down. No issue with the previous build. Log file, in case it’s of assistance:
[0.021 info adapters/standalone.cpp:131 main] VCV Rack CE v2.git.219bbaf1
[0.021 info adapters/standalone.cpp:132 main] Mac 11.6
[0.021 info adapters/standalone.cpp:138 main] Args: /Applications/VCV Rack 2.app/Contents/MacOS/Rack
[0.021 info adapters/standalone.cpp:141 main] System directory: /Applications/VCV Rack 2.app/Contents/Resources
[0.021 info adapters/standalone.cpp:142 main] User directory: /Users/niallmulligan/Documents/Rack2
[0.021 info adapters/standalone.cpp:144 main] Bundle path: /Applications/VCV Rack 2.app
[0.021 info adapters/standalone.cpp:146 main] System time: 2021-10-18T01:06:44+0100
[0.021 info src/settings.cpp:394 load] Loading settings /Users/niallmulligan/Documents/Rack2/settings.json
[0.022 info adapters/standalone.cpp:169 main] Initializing environment
[0.025 info src/rtaudio.cpp:239 RtAudioDriver] Creating RtAudio CoreAudio driver
[0.069 info src/plugin.cpp:111 loadPlugin] Loading Core plugin
[0.070 info src/plugin.cpp:171 loadPlugin] Loaded Core v2.0.0
[0.070 info src/plugin.cpp:113 loadPlugin] Loading plugin from /Users/niallmulligan/Documents/Rack2/plugins/Fundamental
[0.078 info src/plugin.cpp:171 loadPlugin] Loaded Fundamental v2.0.0
[0.078 info src/plugin.cpp:113 loadPlugin] Loading plugin from /Users/niallmulligan/Documents/Rack2/plugins/AudibleInstruments
[0.088 info src/plugin.cpp:171 loadPlugin] Loaded AudibleInstruments v2.0.0
[0.088 info src/network.cpp:132 requestJson] Requesting JSON GET https://api.vcvrack.com/plugins
[0.110 info adapters/standalone.cpp:186 main] Initializing context
[0.112 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rail.svg
[0.691 info src/network.cpp:132 requestJson] Requesting JSON GET https://api.vcvrack.com/library/manifests?version=2
[1.434 info src/window/Window.cpp:269 Window] Window content scale: 2.000000
[1.730 info src/window/Window.cpp:319 Window] Renderer: ATI Technologies Inc. AMD Radeon Pro 555X OpenGL Engine
[1.730 info src/window/Window.cpp:320 Window] OpenGL: 2.1 ATI-4.6.20
[1.738 info src/window/Window.cpp:38 loadFile] Loaded font /Applications/VCV Rack 2.app/Contents/Resources/res/fonts/DejaVuSans.ttf
[4.947 info adapters/standalone.cpp:229 main] Running window
[10.117 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Users/niallmulligan/Documents/Rack2/plugins/AudibleInstruments/res/Braids.svg
[10.118 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/ScrewSilver.svg
[10.118 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2SGray.svg
[10.118 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2S-bg.svg
[10.119 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2SGray-fg.svg
[10.119 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PSWhite.svg
[10.120 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PS-bg.svg
[10.120 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PSWhite-fg.svg
[10.120 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PSGreen.svg
[10.121 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PSGreen-fg.svg
[10.121 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PSRed.svg
[10.121 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/Rogan2PSRed-fg.svg
[10.122 info src/window/Svg.cpp:28 loadFile] Loaded SVG /Applications/VCV Rack 2.app/Contents/Resources/res/ComponentLibrary/PJ301M.svg
[10.123 info src/window/Window.cpp:38 loadFile] Loaded font /Users/niallmulligan/Documents/Rack2/plugins/AudibleInstruments/res/hdad-segment14-1.002/Segment14.ttf
[10.150 fatal adapters/standalone.cpp:49 fatalSignalHandler] Fatal signal 11. Stack trace:
24: 1 Rack 0x00000001005b730d _ZL18fatalSignalHandleri + 45
23: 2 libsystem_platform.dylib 0x00007fff203e1d7d _sigtramp + 29
22: 3 ??? 0x0000000000000000 0x0 + 0
21: 4 libRack.dylib 0x00000000005d855a nvgEndFrame + 26
20: 5 libRack.dylib 0x00000000006efedb _ZN4rack6widget17FramebufferWidget15drawFramebufferEv + 267
19: 6 libRack.dylib 0x00000000006efbae _ZN4rack6widget17FramebufferWidget6renderENS_4math3VecES3_NS2_4RectE + 990
18: 7 libRack.dylib 0x00000000006ef680 _ZN4rack6widget17FramebufferWidget4drawERKNS0_6Widget8DrawArgsE + 528
17: 8 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
16: 9 libRack.dylib 0x00000000006f1bf9 _ZN4rack6widget10ZoomWidget4drawERKNS0_6Widget8DrawArgsE + 121
15: 10 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
14: 11 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
13: 12 libRack.dylib 0x0000000000674651 _ZN4rack3app7browser8ModelBox4drawERKNS_6widget6Widget8DrawArgsE + 321
12: 13 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
11: 14 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
10: 15 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
9: 16 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
8: 17 libRack.dylib 0x00000000006ea544 _ZN4rack2ui12ScrollWidget4drawERKNS_6widget6Widget8DrawArgsE + 52
7: 18 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
6: 19 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
5: 20 libRack.dylib 0x00000000006f162d _ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE + 365
4: 21 libRack.dylib 0x00000000006f62f5 _ZN4rack6window6Window4stepEv + 1829
3: 22 libRack.dylib 0x00000000006f5bb8 _ZN4rack6window6Window3runEv + 40
2: 23 Rack 0x00000001005b6f06 main + 2774
1: 24 libdyld.dylib 0x00007fff203b7f3d start + 1
0: 25 ??? 0x0000000000000001 0x0 + 1