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

Windows: Quick application crash when using multiple monitors connected to multiple adapters

    XMLWordPrintable

Details

    Description

      I am experiencing the following problem on Windows 7/64 bit, using Qt 5.5.0 32-bit MinGW distribution: when starting my application from the primary monitor (i.e when the Windows Explorer window with the .exe file resides on that monitor), everything works. When starting it from the secondary monitor, the program crashes during the following call:

          engine.load(QUrl("qrc:///qml/my.qml"));
      

      where engine is an instance of QQmlApplicationEngine. The QML file is as follows:

          import QtQuick.Window 2.2
          Window {}
      

      The primary monitor is connected to Radeon HD 6950 adapter with the latest beta driver. The secondary monitor is connected to the on-board Intel HD 4600 adapter.

      The minidump file says:

          (ca0.122c): Access violation - code c0000005 (first/second chance not available)
          eax=00000000 ebx=0028e04c ecx=00000000 edx=0028e85c esi=00000002 edi=00000000
          eip=773c01a9 esp=0028dffc ebp=0028e098 iopl=0         nv up ei pl zr na pe nc
          cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00200246
          ntdll!ZwWaitForMultipleObjects+0x15:
          773c01a9 83c404          add     esp,4
      

      If I disable in Windows the monitor attached to the AMD card (the other monitor becomes primary), the problem disappears. If I attach both monitors to the AMD videocard, I get the following messages when starting the program from the secondary monitor:

          QSGThreadedRenderLoop: expose event received for window QQuickWindowQmlImpl_QML_0(0x28dd3d68) with invalid geometry: QRect(2640,520 160x160) on QScreen(0x28d2de50)
          QSGThreadedRenderLoop: expose event received for window QQuickWindowQmlImpl_QML_0(0x28dd3d68) with invalid geometry: QRect(2640,520 160x160) on QScreen(0x28d2de50)
      

      ... but the program doesn't crash and works as expected.

      Attachments

        1. backtrace.txt
          18 kB
        2. qtbug47059.zip
          1 kB
        3. qtdiag.txt
          5 kB
        4. qtdiag2.txt
          5 kB
        5. qtdiagoutput.txt
          5 kB
        6. test_qtquick.7z
          0.5 kB
        7. test_qtquick3.zip
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            kirillkh Kirill Khazan
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes