I think for Windows, when the ctrl-g or ctrl-shift-g shortcuts are received in MainWindow before passing them onto search, we may want to send them to a routine that does nothing and returns quickly, and then pass only new ones on to search once the previous search is complete.
That should prevent any overflow of queued event signals waiting to be delivered and hopefully prevent the stack overflow from happening.
For this to work, MainWindow just needs to know if search is running or not to know how to treat it when it gets the shortcut.
I see a quick way to test this hypothesis. I will push those changes and hopefully people can check to make sure the crashing stops on Windows.
I am building a new test build now to see if it helps prevent the crashing, I will post the link when ready.
Last edited by KevinH; 03-09-2022 at 02:24 PM.
|