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

Arranging QDockWidgets programatically causes segmentation faults

    XMLWordPrintable

Details

    • Linux/X11
    • 2c8692ada (dev), 5d6e42d6f (6.10), b7f67365b (6.9)

    Description

      When arranging QDockWidgets programatically, the program segfaults.

      I'll attach a minimal example, derived from KGeoTag (but stripped down to Qt only, no KDE dependencies). Maybe this also works with fewer dock widgets and/or a less complex arrangement. However, using this example, I can reliably produce a segfault when starting "View" → "Set default dock arrangement". Interestingly, this does not always happen on first try. Most of the times it does, but sometimes, I have to run the function two times or even four or five times before the crash occurs. But it does crash every time.

      However, the backtrace always looks similar. I'll also attach one.

      Attachments

        1. QTBUG-138201.tgz
          2 kB
        2. MainWindow.h
          0.6 kB
        3. MainWindow.cpp
          2 kB
        4. main.cpp
          0.2 kB
        5. CMakeLists.txt
          0.3 kB
        6. backtrace.txt
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            axelspoerl Axel Spoerl
            l3u Tobias Leupold
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes