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

QMLC file regeneration doesn't happen if application is launched in debug mode triggering a crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.9.3
    • None
    • Qt 5.9.3 MSVC 2015 32 bit, Windows 7 64bit, Qt Creator 4.5, QBS project

    Description

      Stumbled upon this after deleting .qmlc file after it got pulled into repository accidentally

      When I launched a debug build from qt creator I was greeted by this assert

      this happens on

      quickView = new QQuickWidget;
      quickView->rootContext()->setContextProperty("infoObject", &report);
      auto url = QUrl::fromLocalFile("QML/detailed.qml");
      bool validUrl = url.isValid();
      // url is valid, I made sure of that, crash happens on the line below
      quickView->setSource(url);

      Launching in release build regenerates the "detailed.qmlc" and after that debug build also works alright. The moment I manually delete qmlc again the crash starts happening again.

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              zekses Nikolai
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes