Closed timholzhey closed 1 month ago
Thanks for the detailed report.
Hi, thanks for the accurate report and related fix. Can you please rebase to current master so this builds correctly? Thanks
Hi, sure. I merged the upstream master, it triggered request for a CI rerun. Thank you
Merged, thanks 👍
With our Windows QLC setup we noticed you can get QLC+ 4 (Qt5 UI) to crash easily on Windows by following these steps:
This usually happens accidentally because the caret symbol is right next to the escape key on the top left. I just now compiled QLC+ from master for Windows MINGW64 with MSYS2 Qt5 debug libraries (v5.15.15-1) and got this stack trace after following the steps to reproduce the crash:
The error originates in the function
VCSlider::slotResetButtonClicked()
, called fromVCSlider::slotKeyPressed
.The function
slotResetButtonClicked
shouldn't even be called, but herem_overrideResetKeySequence
is empty and notifiedkeySequence
is empty as well.With a little debug statement the function
VirtualConsole::keyPressEvent
can be seen being passed these keyPress events after pressing the ^ key twice:So Qt5 on Windows notifies a
QKeyEvent
with key=0 (unknown key) but autorepeating=false for this special key, this is turned into an emptyQKeySequence
and passed down the widgets. Since none of the components should ever expect to receive an emptyQKeySequence
, the problematic event should be ignored. The problem now no longer exists for our Windows build.Other people who had the same problem: https://www.qlcplus.org/forum/viewtopic.php?t=11857 https://www.qlcplus.org/forum/viewtopic.php?t=13885