zynaddsubfx / zyn-fusion-issues

Issue Only Repo
31 stars 0 forks source link

backtrace of error on save midi bindings #203

Open friedolino78 opened 5 years ago

friedolino78 commented 5 years ago

trace: [0] src/mruby-zest/example/MainMenu.qml:102:in Qml::MainMenu.file_value [1] src/mruby-zest/example/MainMenu.qml:43:in Qml::MainMenu.file_select [2] src/mruby-zest/example/FileSelector.qml:296:in Qml::FileSelector.whenEnter [3] anonymous-FileSelector:74:in Qml::FileSelector.initialize [4] src/mruby-zest/qml/TriggerButton.qml:6:in Qml::TriggerButton.onMousePress [5] /home/Dateien/mk/odroid/mruby-zest-build/src/mruby-widget-lib/mrblib/script.rb:228:in ZRunner.handleMousePress [6] /home/Dateien/mk/odroid/mruby-zest-build/src/mruby-widget-lib/mrblib/script.rb:415:in ZRunner.handle_events [7] /home/Dateien/mk/odroid/mruby-zest-build/mruby/mrblib/array.rb:17:in Array.each [8] /home/Dateien/mk/odroid/mruby-zest-build/src/mruby-widget-lib/mrblib/script.rb:410:in ZRunner.handle_events [9] /home/Dateien/mk/odroid/mruby-zest-build/src/mruby-widget-lib/mrblib/script.rb:691:in ZRunner.tick_events src/mruby-zest/example/MainMenu.qml:102: can't convert nil into Integer (TypeError) [FATAL ERROR] Mruby Is Unable To Continue

fundamental commented 5 years ago

Well, this is a weird one. For FileSelector to exist MainMenu::file_select is run, which reads a value from 'file.selected'. Then it creates the file selector which sits on top of other widgets. Then the enter button is clicked on the file selector, but when it starts to return control to the main menu 'file.selected' is called again, but this time it returns 'nil'. The only way I know of getting that value to nil is to open the menu and click off of the menu region. That however should be impossible since the FileSelector is sitting on top of the menu making it unclickable. If you could figure out how the Menu is shifting to a nil selection that would likely address the bug.

I can't replicate locally, but Menu.qml::set_value_user() should be called to update the value, so that might help narrow things down if the source of the nil can be found via a backtrace.

friedolino78 commented 5 years ago

could be interconnected with resizing issues? I observed some strange gui behaviour of not responding to some clicks at some time when i resized the window. After maximizing everything worked as exprected again.

fundamental commented 5 years ago

I can't replicate after resizing. Let me know if you find steps to replicate.