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

Crashes in qwindows.dll (was QWindow::setVisible crash)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.2.1, 5.3.0, 5.3.1, 5.3.2, 5.4.1
    • GUI: Window management
    • None
    • Windows 7 x64, Qt x86

    Description

      • We're experiencing this crash at least since 5.2.1 and it also happens with 5.3.1
      • It doesn't happen in debug and release on our machines
      • What we just have is numerious crash reports with .dmp files

      After analyzing .dmp files we came to the following conclusion:

      QWindow::setVisible crashes on the following line with trying to read from 0x00000000

      It's exactly this source line:
      d->platformWindow->setVisible(visible);

      It means that for some unknown reason d->platformWindow is 0x00000000. Users report that the app crashes when restoring program main window from Windows tray by calling QWidget::showNormal() from QMainWindow inherited class

      IMPORTANT We keep receiving crash reports with the following scenario: user doesn't see app tray icon, tries to open another instance, the first instance calls showNormal from QMainWindow - CRASH ("crash_callstack_more.png")

      The thing is it's NOT crashing on startup, it works fine. After some time it crashes after it's running in background in system tray. After that the customer can use the app for weeks until the next crash. Maybe it somehow depends on software installed because the crash never happened on our PCs.

      Screenshots illustrating the problem are attached.

      UPDATE: It also crashes in 5.4.1 but with a different call stack. Once we reproduced the crash: suddenly noticed that no tray icon is visible, but the app process was active, we ran the second instance of the app, then the first instance crashed (when trying to display main window). See callstack_5.4.1.png
      and YES, we keep getting crash reports from users

      Attachments

        1. callstack_5.4.1.png
          callstack_5.4.1.png
          56 kB
        2. callstack_after_closing_modal dialog.png
          callstack_after_closing_modal dialog.png
          59 kB
        3. crash_callstack_another.png
          crash_callstack_another.png
          27 kB
        4. crash_callstack_more.png
          crash_callstack_more.png
          65 kB
        5. crash_callstack.png
          crash_callstack.png
          25 kB
        6. setVisible_crash.png
          setVisible_crash.png
          138 kB
        7. sshot-2014-06-17-[03-07-28].png
          sshot-2014-06-17-[03-07-28].png
          22 kB

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              crystalidea Steven (crystalidea)
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes