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

Crash when moving a window containing a widget with zero size and a widget where winId() had been called to another screen.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.4.2
    • Labels:
      None
    • Environment:
      Windows 7
      Qt 5.4.0 (mingw32)

      Description

      Qt crashes with the following message: ASSERT: "!rect.isEmpty()" in file kernel\qwidgetbackingstore.cpp, line 582

      To provoke this, the following conditions must be met:

      • A multi-monitor setup
      • The window needs to contain a widget with zero height or width
      • The window needs to contain a widget where winId() has been called (i.e. where a native window has been created)
      • The user has to move the window completely to the secondary screen.

      I personally observed this in VirtualBox, a minimal sample program is attached.

        Attachments

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

          Activity

            People

            Assignee:
            jolind Jorgen Lind
            Reporter:
            rgcjonas Jonas Kümmerlin
            Votes:
            4 Vote for this issue
            Watchers:
            12 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes