noedigcode / konfyt

Digital keyboard workstation for Linux.
http://www.noedig.co.za/konfyt
GNU General Public License v3.0
41 stars 1 forks source link

With fast browsing of soundfonts getting to busyloop #1

Closed tavasti closed 5 years ago

tavasti commented 5 years ago

When browsing soundfonts, and one hand playing midi keys, another clicking with mouse selecting soundfonts, pretty soon UI will freeze, no audio output and konfyt will eat one cpu core 100%

Running Ubuntu 18.04. libfluidsynth is 1.1.9-1 (ubuntu or kxstudio package) carla is git version, last commit 981d11f7398155ab33e939823792433447eb673c

When browsing it does not matter are you selecting soundfonts or patches in same soundfont. And happens also when browsing with cursor keys.

noedigcode commented 5 years ago

I have been unable to reproduce your bug. I had to install the newest Mint that is based on Ubuntu 18.04 to have the same Fluidsynth version as you. However, I cannot reproduce what you describe. I have tried several of the Newground soundfonts, as well as others. Is there any chance you could narrow it down more? A screencast could be useful in case we're misunderstanding each other. I'll give it some thought in the mean time.

tavasti commented 5 years ago

Personally I would say it is related to QT, not soundfont handling.

noedigcode commented 5 years ago

Thanks for the info! I managed to reproduce the bug and will hunt it down. The bug only shows itself when compiled in release mode. Since I usually compile and run in debug mode, I was not seeing it. In the meantime, you could compile with debug on if you want a more stable workflow for now until I track down the bug. (use qmake CONFIG+=debug)

noedigcode commented 5 years ago

I seem to have found the bug. It should now be fixed on the master branch. Please confirm on your side (compile in release mode, i.e. without the debug qmake option).

tavasti commented 5 years ago

Verified, does not crash. Thanks!

noedigcode commented 5 years ago

Cool! Thanks for reporting the bug and taking time to provide more info.