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

Crash when assigning nullptr to ShellSurfaceItem.shellSurface

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 Beta 1
    • 5.8.0
    • QPA: Wayland
    • None

    Description

      Using the QtQuick integration of the QtWayland Compositor, I use shell surfaces to be shown in different ShellSurfaceItems. Specifically, on demand, I assign different shell surfaces to my ShellSurfaceItem.
      ShellSurfaceItem can cope with having the shellSurface property being nullptr, initially. But when setting the shellSurface to nullptr later on, after a "proper" shell surface was assigned, the item state is not correctly updated, leading to a crash by accessing the nullptr object.

      Attachments

        For Gerrit Dashboard: QTBUG-59591
        # Subject Branch Project Status CR V

        Activity

          People

            johanhelsing Johan Helsing
            cordlandwehr Andreas Cord-Landwehr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes