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

Crash in [QNsWindow sendEvent] after setParent()

    XMLWordPrintable

    Details

    • Platform/s:
      macOS
    • Commits:
      aeb169a48869f4f50237e384e57ccb406228f620

      Description

      When calling setParent on a widget i sometimes gets this crash. Using the minimal example below i can reproduce the issue usually after having double clicked about 3-4 times - sometimes it crashed on 1st snap in, sometimes after tenth attempt.

      This is most likely to be a dangling pointer problem.

      Applying the patch of QTBUG-39628 did not help to solve the problem.

      Calling toggleParent() by event loop using QMetaObject::invokeMethod() does not solve the problem but makes it more difficult to reproduce.

        Attachments

        1. crash.png
          crash.png
          355 kB
        2. main.cpp
          1.0 kB
        3. vars.txt
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              tpochep Timur Pocheptsov
              Reporter:
              hrabowski-old Maximilian Hrabowski (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: