Solved Crash in QWindowsKeyMapper::possibleKeys
-
I have been encountering an intermittent crash in QWindowsKeyMapper::possibleKeys and it seems like the nativeVirtualKey() in the QKeyEvent is > 255. The value I am seeing (based on a minidump) is 9827. Not entirely sure how it got into that state. Has anyone experience a similar crash before?
There is this bug report https://bugreports.qt.io/browse/QTBUG-36061 but judging from the comments, Qt doesn't appear too keen to put in a simple fix to early out if the nativeVirtualKey() causes an array out of bound.
Anyone has any thoughts as to why the virtual key would be greater than 255?
-
Hi and welcome to devnet,
No real thoughts about it be in any case there's a fix submitted for Qt 5 that should solve this.
-
Hi, mind if I ask which version of Qt 5 the fix was submitted for? I am using Qt 5.4.1 and still getting the problem. Forgot to mention this in my opening post.
-
No I don't :) For 5.6, it's pending integration.
-
Thanks. We might consider just integrating the change (a simple early out) into our 5.4.1 since upgrading Qt version is more involved.