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

QtQuick can cease to function on Windows if the login screen is triggered or the system is suspended

    XMLWordPrintable

Details

    • 85620bd788d351018e9fa0b0f567b19a773be52b

    Description

      On some Windows machines, suspending the computer or going to the login screen (by hitting Ctrl-Alt-Del) "breaks" QtQuick. Windows appear blank and the situation is only recoverable by restarting the application.

      Reproduction: We are using a laptop (DELL Latitude E7240 w/ Intel GMA) that requires a password to log in. It is configured to go to sleep when the laptop lid is closed, even if it is plugged in. Closing the lid thus triggers the laptop to go to the login screen on wake. We are using Qt 5.4.0 with MSVC2013 on Windows 8.1.

      1. Using QtCreator, create a simple project based on "Qt Quick Application" (with three buttons).
      2. Launch the program with a debugger.
      3. Ensure the buttons are visible in a window, that the window can be resized and that the buttons continues to render properly.
      4. Trigger sleep (in our case, we close the laptop lid).
      5. Wake the computer from sleep, you should be asked to log in again.
      6. Log in to the user account where the application was running.

      Note: It may take several attempts before this reproduces on our end, but it usually happens after 2-3 tries. Just going to the "switch user" menu seems to make it more difficult to reproduce.

      In Qt 5.3.2, the contents the of window appear to be random or blank and error messages are printed (the application keeps running):
      (Qt:Warning) bool __thiscall QWindowsEGLContext::makeCurrent(class QPlatformSurface *): eglMakeCurrent() failed, eglError: 0x300e, this: 0x89590d0

      In Qt 5.4 (OpenGL/Dynamic), the window becomes blank, but interacting with it or resizing it causes the application to crash.

      In Qt 5.4 (ANGLE), the application crashes.

      Attachments

        1. angle_umr.diff
          1 kB
        2. crash_54_angle_d3d9.png
          crash_54_angle_d3d9.png
          17 kB
        3. CrashTest.dmp
          77 kB
        4. diag.txt
          4 kB
        5. dxdiag_with_angle.txt
          4 kB
        6. dxdiag.txt
          74 kB
        7. qmlscene_with_angle.dmp
          98 kB
        8. stacktrace_54_angle_d3d11.txt
          5 kB
        9. stacktrace_54_opengl.txt
          7 kB
        10. stacktrace.txt
          2 kB
        11. stacktrace54.txt
          5 kB
        12. trace_54_angle_d3d9.txt
          12 kB

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              maxbelanger Max Belanger
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: