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

Crash in QWindowsOpengl32DLL::setPixelFormat()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4: Low
    • None
    • 5.7.0
    • GUI: OpenGL
    • None

    Description

      Platform: Windows 10, 64 bit, with AMD RX 480. (Radeon Software Version 17.7.1)

       

      To replicate:

      Build and run the attached program with Qt 5.7.  (Haven't tested with other Qt versions)

      • The main program should be showing on the primary monitor (connected to AMD GPU)
      • Move mouse pointer into second monitor.

      Result:

      Unhandled exception at 0x00007FFEA99496DB (atig6txx.dll) in qt_test.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

       

      Stack trace:

       
      atig6txx.dll!00007ffea99496db() Unknown
       atig6txx.dll!00007ffea9941fe2() Unknown
       atig6txx.dll!00007ffea994067c() Unknown
       atig6txx.dll!00007ffea993a240() Unknown
       atio6axx.dll!0000000064d626c4() Unknown
       atio6axx.dll!0000000064d429be() Unknown
       atio6axx.dll!0000000065b80ad2() Unknown
       atio6axx.dll!0000000065b37a4a() Unknown
       atio6axx.dll!0000000064e411fb() Unknown
       atio6axx.dll!00000000659d33a5() Unknown
       atio6axx.dll!00000000659d3572() Unknown
       atio6axx.dll!00000000659d2d49() Unknown
       atio6axx.dll!0000000064d0325f() Unknown
       atio6axx.dll!0000000064d04ed7() Unknown
       atig6pxx.dll!00007ffeb5c1a9ea() Unknown
       opengl32.dll!wglSetPixelFormat() Unknown
       gdi32full.dll!SetPixelFormat() Unknown
       > qwindowsd.dll!QWindowsOpengl32DLL::setPixelFormat(HDC__ * dc, int pf, const tagPIXELFORMATDESCRIPTOR * pfd) Line 221 C++
       qwindowsd.dll!QWindowsGLContext::makeCurrent(QPlatformSurface * surface) Line 1293 C++
       Qt5Guid.dll!QOpenGLContext::makeCurrent(QSurface * surface) Line 974 C++
       Qt5OpenGLd.dll!QGLContext::makeCurrent() Line 3580 C++
       Qt5OpenGLd.dll!QGLWidget::makeCurrent() Line 4077 C++
       Qt5OpenGLd.dll!QGLWidget::resizeEvent(QResizeEvent * e) Line 4415 C++
       Qt5Widgetsd.dll!QWidget::event(QEvent * event) Line 8940 C++
       Qt5OpenGLd.dll!QGLWidget::event(QEvent * e) Line 4380 C++
       Qt5Widgetsd.dll!QApplicationPrivate::notify_helper(QObject * receiver, QEvent * e) Line 3799 C++
       Qt5Widgetsd.dll!QApplication::notify(QObject * receiver, QEvent * e) Line 3762 C++
       Qt5Cored.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 988 C++
       Qt5Cored.dll!QCoreApplication::sendEvent(QObject * receiver, QEvent * event) Line 231 C++
       Qt5Widgetsd.dll!QWidgetPrivate::sendPendingMoveAndResizeEvents(bool recursive, bool disableUpdates) Line 7803 C++
       Qt5Widgetsd.dll!QWidgetPrivate::show_helper() Line 7856 C++
       Qt5Widgetsd.dll!QWidget::setVisible(bool visible) Line 8210 C++
       Qt5Widgetsd.dll!QWidget::show() Line 7761 C++
       Qt5Widgetsd.dll!QWidgetPrivate::showChildren(bool spontaneous) Line 8293 C++
       Qt5Widgetsd.dll!QWidgetPrivate::show_helper() Line 7863 C++
       Qt5Widgetsd.dll!QWidget::setVisible(bool visible) Line 8210 C++
       Qt5Widgetsd.dll!QWidget::show() Line 7761 C++
       Qt5Widgetsd.dll!QWidgetPrivate::showChildren(bool spontaneous) Line 8293 C++
       Qt5Widgetsd.dll!QWidgetPrivate::show_helper() Line 7863 C++
       Qt5Widgetsd.dll!QWidget::setVisible(bool visible) Line 8210 C++
       Qt5Widgetsd.dll!QWidget::show() Line 7761 C++
       qt_test.exe!main(int argc, char * * argv) Line 28 C++
       qt_test.exe!invoke_main() Line 65 C++
       qt_test.exe!__scrt_common_main_seh() Line 253 C++
       qt_test.exe!__scrt_common_main() Line 296 C++
       qt_test.exe!mainCRTStartup() Line 17 C++
       kernel32.dll!00007ffecc022774() Unknown
       ntdll.dll!00007ffece4b0d51() Unknown
       

      This may be a problem with the AMD drivers, or it may be a problem with Qt.

      PU:
               Card name: Radeon (TM) RX 480 Graphics
             Driver Name: aticfx32.dll
          Driver Version: 22.19.171.1024
               Vendor ID: 0x1002
               Device ID: 0x67DF
               SubSys ID: 0xE347174B
             Revision ID: 0x00C7
      

      Attachments

        1. opengl_test.cpp
          0.7 kB
        2. qtdiag_output.txt
          13 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
              NChapman Nicholas Chapman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes