Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved Crash in QWindowsKeyMapper::possibleKeys

    General and Desktop
    2
    5
    666
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Thuan_Firelight
      Thuan_Firelight last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        Thuan_Firelight 1 Reply Last reply Reply Quote 0
        • Thuan_Firelight
          Thuan_Firelight @SGaist last edited by Thuan_Firelight

          @SGaist

          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.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            No I don't :) For 5.6, it's pending integration.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • Thuan_Firelight
              Thuan_Firelight last edited by

              Thanks. We might consider just integrating the change (a simple early out) into our 5.4.1 since upgrading Qt version is more involved.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post