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

Qt Designer (embedded): Qt Creator crashes when reopening a form containing a resource file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.0 RC2
    • 5.11.2
    • Tools: Designer
    • None
    • Gentoo Linux 64bit
      QtCreator 4.8.0-beta2
      Qt 5.11.2
    • All
    • 63f128103f666e72f5f547871da44e49a9cbafaf (qt/qttools/5.12.0)

    Description

      If I reopen a form containing a resource file (with some resource used on the form), the Qt Creator crashes.

       

      Attached is a minimum project.

      Steps to reproduce:

      1. Doubleclick mainwindow.ui in project tree
      2. Rightclick the button
      3. go to slot
      4. press OK
      5. press Ctrl + W twice (to close all opened files)
      6. doubleclick mainwindow.ui

       

      I debugged it a bit, so the attached patch fixes the problem.

      Imho it's a little dirty workaround, maybe someone else more experienced in designer internals has a better fix.

       

      While debugging I came across Bug 70099, which might be related.

      Attachments

        1. qtcreatorbug.zip
          4 kB
        2. fix-res-reloading.patch
          2 kB
        3. qtbug71809_log.txt
          1 kB
        4. qtbug71809_stack.txt
          63 kB
        5. qtbug71809.zip
          4 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-71809
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              plus Thomas Pathmann
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes