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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes