Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qml Application crashed when start
Forum Updated to NodeBB v4.3 + New Features

Qml Application crashed when start

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hobbe
    wrote on 19 Mar 2019, 04:13 last edited by
    #1

    Graphics Card:Intel(R) HD Graphics 630
    Driver Version:25.20.100.6323
    OS Version:10
    Qt Version:5.11.2
    Part Codes:

    qputenv("QSG_RENDER_LOOP", "basic");
    QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
    QCoreApplication::setAttribute(Qt::AA_DisableShaderDiskCache);
    
    ---------------------------
    Microsoft Visual C++ Runtime Library
    ---------------------------
    Debug Error!
    
    Program: C:\Qt\Qt5.11.2\5.11.2\msvc2015\bin\Qt5Cored.dll
    Module: 5.11.2
    File: scenegraph\qsgrenderloop.cpp
    Line: 274
    
    Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) .
    This is most likely caused by not having the necessary graphics drivers installed.
    
    Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGLd.dll, libGLESv2d.dll and d3dcompiler_*.dll) are available in the application executable's directory or in a location listed in PATH.
    
    (Press Retry to debug the application)
    
    B 1 Reply Last reply 19 Mar 2019, 05:40
    0
    • H hobbe
      19 Mar 2019, 04:13

      Graphics Card:Intel(R) HD Graphics 630
      Driver Version:25.20.100.6323
      OS Version:10
      Qt Version:5.11.2
      Part Codes:

      qputenv("QSG_RENDER_LOOP", "basic");
      QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
      QCoreApplication::setAttribute(Qt::AA_DisableShaderDiskCache);
      
      ---------------------------
      Microsoft Visual C++ Runtime Library
      ---------------------------
      Debug Error!
      
      Program: C:\Qt\Qt5.11.2\5.11.2\msvc2015\bin\Qt5Cored.dll
      Module: 5.11.2
      File: scenegraph\qsgrenderloop.cpp
      Line: 274
      
      Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) .
      This is most likely caused by not having the necessary graphics drivers installed.
      
      Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGLd.dll, libGLESv2d.dll and d3dcompiler_*.dll) are available in the application executable's directory or in a location listed in PATH.
      
      (Press Retry to debug the application)
      
      B Offline
      B Offline
      beecksche
      wrote on 19 Mar 2019, 05:40 last edited by
      #2

      @hobbe

      What happens if you remove

      // qputenv("QSG_RENDER_LOOP", "basic");
      // QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
      // QCoreApplication::setAttribute(Qt::AA_DisableShaderDiskCache);
      

      and let Qt decides what kind of render loop and OpenGL implementation it should use?

      H 1 Reply Last reply 19 Mar 2019, 09:26
      0
      • B beecksche
        19 Mar 2019, 05:40

        @hobbe

        What happens if you remove

        // qputenv("QSG_RENDER_LOOP", "basic");
        // QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
        // QCoreApplication::setAttribute(Qt::AA_DisableShaderDiskCache);
        

        and let Qt decides what kind of render loop and OpenGL implementation it should use?

        H Offline
        H Offline
        hobbe
        wrote on 19 Mar 2019, 09:26 last edited by
        #3

        @beecksche said in Qml Application crashed when start:

        @hobbe

        What happens if you remove

        // qputenv("QSG_RENDER_LOOP", "basic");
        // QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
        // QCoreApplication::setAttribute(Qt::AA_DisableShaderDiskCache);
        

        and let Qt decides what kind of render loop and OpenGL implementation it should use?

        remove these codes,APP also crashed with the same reason

        J 1 Reply Last reply 19 Mar 2019, 09:41
        0
        • H hobbe
          19 Mar 2019, 09:26

          @beecksche said in Qml Application crashed when start:

          @hobbe

          What happens if you remove

          // qputenv("QSG_RENDER_LOOP", "basic");
          // QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
          // QCoreApplication::setAttribute(Qt::AA_DisableShaderDiskCache);
          

          and let Qt decides what kind of render loop and OpenGL implementation it should use?

          remove these codes,APP also crashed with the same reason

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 19 Mar 2019, 09:41 last edited by
          #4

          @hobbe Try to update the driver for your graphics card.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          H 1 Reply Last reply 19 Mar 2019, 09:57
          0
          • J jsulm
            19 Mar 2019, 09:41

            @hobbe Try to update the driver for your graphics card.

            H Offline
            H Offline
            hobbe
            wrote on 19 Mar 2019, 09:57 last edited by
            #5

            @jsulm said in Qml Application crashed when start:

            @hobbe Try to update the driver for your graphics card.

            Driver already the newest version and we must use AA_UseSoftwareOpenGL to render
            if we use AA_UseOpenGLES everything is OK,change to AA_UseSoftwareOpenGL APP will crash sometimes

            J 1 Reply Last reply 19 Mar 2019, 09:58
            0
            • H hobbe
              19 Mar 2019, 09:57

              @jsulm said in Qml Application crashed when start:

              @hobbe Try to update the driver for your graphics card.

              Driver already the newest version and we must use AA_UseSoftwareOpenGL to render
              if we use AA_UseOpenGLES everything is OK,change to AA_UseSoftwareOpenGL APP will crash sometimes

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 19 Mar 2019, 09:58 last edited by
              #6

              @hobbe You should check the bug tracker and file a bug if there is nothing

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              19 Mar 2019, 04:13

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved