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

Windows, Intel HD Graphics, default RHI - rendering fails with Failed to create vertex shader errors in output.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • 6.4
    • 6.2.3, 6.2.4
    • None
    • Windows 10
      Intel HD Graphics
    • Windows

      Steps are pretty simple. Create default quick application. Put any QML visual item into window. Run.

      Window is blank, and output is filled with

      Failed to create vertex shader: Error 0x80070057: The parameter is incorrect.
      Failed to build graphics pipeline state
      

      If changing graphics API to QSGRendererInterface::OpenGLRhi, the rectangle is visible and no errors in output, but the app blinks on resizing.

      main.cpp

      #include <QGuiApplication>
      #include <QQmlApplicationEngine>
      #include <QQuickWindow>
      
      
      int main(int argc, char *argv[])
      {
      //    QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
          QGuiApplication app(argc, argv);
      
          QQmlApplicationEngine engine;
          const QUrl url(u"qrc:/qml6/main.qml"_qs);
          QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
                           &app, [url](QObject *obj, const QUrl &objUrl) {
              if (!obj && url == objUrl)
                  QCoreApplication::exit(-1);
          }, Qt::QueuedConnection);
          engine.load(url);
      
          return app.exec();
      }
      

      main.qml

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Rectangle {
              anchors.fill: parent
              anchors.margins: 40
              color: "magenta"
          }
      }
      

        1. graphicsinfo.txt
          4 kB
        2. qt623_rhi.png
          qt623_rhi.png
          43 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            janichol Andy Nichols
            sergei.nevdakh Sergei Nevdakh
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes