Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96551

Crash while processing a shortcut key

XMLWordPrintable

    • All
    • 45af5ef2f63704adc515e29260ad8c6aaf51f08e (qt/qtdeclarative/dev) e91051dd829522a157f5488344ab3ab347a1f971 (qt/qtdeclarative/6.2) 51e3aee67a (qt/tqtc-qtquickcontrols2/5.15)

      The attached app demonstrates a scenario where processing a shortcut key (delete) causes the application to crash due to a dangling pointer in QShortcutEntry::owner.

      Please follow the instructions embedded in the app:
      1. open New Page
      2. close the page
      3. press delete key
      4. crash

      You can avoid the crash by modifying the code as follows:
      a. comment out shortcut
      b. comment out MenuItem

      Initial analysis shows that QShortcutEntry::owner pointer should be protected against unexpected deletion. In addition, there is a bug in the declarative side as well, because the shortcut entry is not properly cleared for MenuItem.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hurlevent Oliver Eftevaag
            jakoivik Jarkko Koivikko
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes