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

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.12.0 RC2
    • Component/s: Tools: Designer
    • Labels:
      None
    • Environment:
      Gentoo Linux 64bit
      QtCreator 4.8.0-beta2
      Qt 5.11.2
    • Platform/s:
      All
    • Commits:
      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. fix-res-reloading.patch
          2 kB
        2. qtbug71809_log.txt
          1 kB
        3. qtbug71809_stack.txt
          63 kB
        4. qtbug71809.zip
          4 kB
        5. qtcreatorbug.zip
          4 kB

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              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