View Single Post
Old 03-09-2022, 01:23 PM   #97
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,887
Karma: 6120478
Join Date: Nov 2009
Device: many
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.
KevinH is offline   Reply With Quote