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

Segmentation Fault When Closing Main Window During Cell Editing in QTableView on Linux (KDE/Wayland)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.2
    • None
    • Linux/Wayland

    Description

      I've observed that a PySide6 Qt application crashes with a segmentation fault when the main window is closed while editing a cell in the QTableView component. This issue seems to occur specifically on Linux systems running KDE with Wayland, and I was unable to replicate it on Windows 10. In this case, I used Python 3.11 and PyCharm as the IDE.

      Steps to reproduce:

      1. Install the PySide6 6.7.2 dependency.
      2. Run the application.
      3. Select any cell and double-click it to begin editing.
      4. While in edit mode, close the application window.
      5. The app will crash with exit code 139 (segmentation fault).

      For more detailed instructions, refer to the readme.md file in the attached archive.

      Unfortunately, I haven't done any C++ coding for a very long while, so I cannot provide a working C++ example, but I hope that the one written in Python could be enough to reproduce the bug.

      Attachments

        1. gdb-backtrace-output.tar.gz
          17 kB
          Roman Shumikhin
        2. Screencast_20240907_014631.webm
          1.42 MB
          Roman Shumikhin
        3. style-bug.tar.gz
          2 kB
          Roman Shumikhin
        4. wayland_debug.tar.gz
          17 kB
          Roman Shumikhin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            roman.shumikhin Roman Shumikhin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes