bogaudio / BogaudioModules

Modules for VCV Rack.
Other
268 stars 33 forks source link

drawing Mono module in browser crashes Rack 2 #185

Closed davephillips closed 3 years ago

davephillips commented 3 years ago

Ubuntu 18.04 VCV Rack 2.git.219bbaf1 Bogaudio 2.0.39

Hi Matt !

Displaying the latest Bogaudio plugin modules in the browser crashes VCV Rack when displaying the Mono widget. I ran Rack in debug mode and received this error:

[16.497 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/dlphilp/src/Rack2/plugins/BogaudioModules/res/Reftone.svg
[16.500 info src/window/Window.cpp:38 loadFile] Loaded font /home/dlphilp/src/Rack2/plugins/BogaudioModules/res/fonts/inconsolata-bold.ttf
[16.502 info src/window/Svg.cpp:28 loadFile] Loaded SVG /home/dlphilp/src/Rack2/plugins/BogaudioModules/res/Mono.svg

Thread 1 "Rack" received signal SIGSEGV, Segmentation fault.
0x00007fffd5f1b281 in MonoWidget::ChannelsDisplay::draw (this=0x555559522ca0, args=...) at src/Mono.cpp:74
74                  if (i >= _module->_activeChannels) {

A full backtrace is at https://pastebin.com/iLcNE8RR.

Best regards,

Dave Phillips

rsmus7 commented 3 years ago

Hi Matt;

here on Win10 the latest compile of the bogaudio modules for Rack v2 crashes rack when I try to open the module-browser. Compilation was without any errors.

my log file shows this:

[10.986 info src/window/Window.cpp:38 loadFile] Loaded font C:/Users/smues/Documents/Rack2/plugins/Bogaudio/res/fonts/inconsolata.ttf [11.004 info src/window/Window.cpp:38 loadFile] Loaded font C:/Users/smues/Documents/Rack2/plugins/Bogaudio/res/fonts/inconsolata-bold.ttf [11.139 fatal adapters/standalone.cpp:49 fatalSignalHandler] Fatal signal 11. Stack trace: 48: 0x0 47: 0x0 46: _C_specific_handler 0x7fff2d427f60 45: _chkstk 0x7fff2f331fb0 44: RtlRaiseException 0x7fff2f2e1020 43: KiUserExceptionDispatcher 0x7fff2f330bd0 42: ZN10MonoWidget15ChannelsDisplay4drawERKN4rack6widget6Widget8DrawArgsE 0x7ffee4b2f430 41: ZN4rack6widget6Widget9drawChildEPS1_RKNS1_8DrawArgsEi 0x6faa3bf8 40: ZN4rack6widget6Widget4drawERKNS1_8DrawArgsE 0x6faa3d9a 39: ZN4rack3app12ModuleWidget4drawERKNS_6widget6Widget8DrawArgsE 0x6fa67f20 38: ZN4rack6widget6Widget9drawChildEPS1_RKNS1_8DrawArgsEi 0x

mdemanett commented 3 years ago

I pushed a fix...thanks for the heads up!

rsmus7 commented 3 years ago

thanks, now it works here 👍

davephillips commented 3 years ago

All good on Linux now. Thanks for the quick fix !