Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QtQuick App crashing on Windows 10

    QML and Qt Quick
    3
    7
    486
    Loading More Posts
    • 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.
    • M
      maxwell31 last edited by maxwell31

      Hi,

      I have a problem with a QtQuick App using Qt 5.13, which crashs on startup on a fairly old laptop running Windows 10. It has Intel HD Graphics 3000, and Open GL Extensions Viewer tells me that it has OpenGL 3.1. I cross compiled this version on a Linux machine, where I never had any issues.

      The problem is, that the program starts, the window frame is drawn including white background, but then it suddenly crashs without any error message. My program also has a logfile, where I can see that the program started, but did not yet do anything meaningful (as it is supposed to be in the absence of user interaction). How can I find out if something is going wrong with OpenGL or QtQuick?

      What makes the issue more weird, is that out of 10 times the program starts fine. What could be a possible source of error? Ram consumption of our program is only about 130 MB, so this should not be the issue.

      1 Reply Last reply Reply Quote 0
      • fcarney
        fcarney last edited by

        I had issues getting Qt 5.12 apps running on Windows 10 in a virtual machine. I used the mesa drivers to fix this:
        mesa drivers windows

        However, I do NOT know how this will work on a system with real hardware.

        C++ is a perfectly valid school of magic.

        1 Reply Last reply Reply Quote 1
        • M
          maxwell31 last edited by

          I have no experience under windows. How can I find out where a cross compiled version is crashing? Are there environment variables which would make QT output some information?

          1 Reply Last reply Reply Quote 0
          • M
            maxwell31 last edited by

            Hi,
            Yes I will try the MESA drivers. However, I would like to avoid this as the general solution, as the users would need to install MESA (right?) and it might create performance problems.

            1 Reply Last reply Reply Quote 0
            • fcarney
              fcarney last edited by

              @maxwell31 said in QtQuick App crashing on Windows 10:

              I would like to avoid this as the general solution

              Yes, the mesa driver might not be a solution at all for end users. We found the solution for VMs so we can do development in the VM.

              C++ is a perfectly valid school of magic.

              1 Reply Last reply Reply Quote 0
              • M
                maxwell31 last edited by

                I found the reason for the crash with EventViewer: ig4icd64.dl so the problem is the intel HD3000 graphics driver.

                jsulm 1 Reply Last reply Reply Quote 1
                • jsulm
                  jsulm Lifetime Qt Champion @maxwell31 last edited by

                  @maxwell31 said in QtQuick App crashing on Windows 10:

                  graphics driver

                  This is often a problem. Worth updating the driver.

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post