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

OS X: Crash in QMenu::copyActionToPlatformItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0 RC
    • 5.1.1, 5.2.1, 5.3.1
    • QPA
    • None
    • OS X 10.7.4, 10.8.5
    • macOS
    • 8a9addf42ef1577d5ae337a9a45ef2f2c585afc0

    Description

      We have been getting crash reports with our application over the last year or so, with crashes in QMenu::copyActionToPlatformItem. The different versions of the application have been built with 5.2.1 and 5.3.1.

      These crashes are not very common, and we have not been able to reproduce them in house.

      In every case a QAction is updating either its enabled or checked property. This notifies a QMenu via actionEvent(QActionEvent*), and then this crashes when calling copyActionToPlatformItem. Apparently the d->platformMenu->menuItemForTag is returning NULL.

      We can fix this crash by checking for NULL. However, it would be good to figure out how this situation happens.

      Attachments

        Activity

          People

            dzedsystems Dyami Caliri
            dzedsystems Dyami Caliri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: