Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Selecting outside a combobox logs out the user and crashes desktop on Ubuntu 22.04
Forum Updated to NodeBB v4.3 + New Features

Selecting outside a combobox logs out the user and crashes desktop on Ubuntu 22.04

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 6 Posters 806 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cdgriffith
    wrote on last edited by
    #1

    A user reported this in December and I have switch to Ubuntu 22.04 myself and also experiencing this.

    With a fully up to date system and PySide6 (current 6.4.2) when you open a combo box, and then instead of selecting an item from the list you click outside that box, it crashes your system. Sometimes will take you back to login screen, sometimes not even that and have to restart.

    It is not possible to catch the error in Python (wrapping with catch all except and logging to file doesn't list anything). Only info I have is this error in syslog

    Feb 18 17:19:07 Y23 gdm-launch-environment]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
    

    Sample app to test with:

    if __name__ == '__main__':
        from PySide6.QtWidgets import QComboBox, QApplication, QWidget, QVBoxLayout
    
        class MyWidget(QWidget):
            def __init__(self):
                super().__init__()
                self.combo = QComboBox()
                self.combo.addItems(["Hallo Welt", "Hei maailma", "Hola Mundo", "Привет мир"])
                self.layout = QVBoxLayout(self)
                self.layout.addWidget(self.combo)
    
        app = QApplication([])
    
        widget = MyWidget()
        widget.show()
        widget.resize(800, 700)
        app.exec()
    

    Honestly don't think there is anything I can do to fix it on Python side, but would love to know if there is a known bad package version or something I can change out to fix this?

    1 Reply Last reply
    1
    • F Offline
      F Offline
      friedemannkleint
      wrote on last edited by
      #2

      This sounds like a wayland issue, can you try X11?

      A 1 Reply Last reply
      0
      • F friedemannkleint

        This sounds like a wayland issue, can you try X11?

        A Offline
        A Offline
        anikdv
        wrote on last edited by
        #3

        The problem is still there on Ubuntu 22.04 with wayland

        SGaistS 1 Reply Last reply
        0
        • A anikdv

          The problem is still there on Ubuntu 22.04 with wayland

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @anikdv hi and welcome to devnet,

          As @friedemannkleint requested, do you experience the same issue with X11 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by JonB
            #5

            This is a known Wayland issue,
            See Qt bug Ubuntu 22.04 (Wayland) logs out after basic interaction with Qt Widgets UI and https://wiki.qt.io/Qt_6.4_Known_Issues#Wayland.

            I do not know what has happened to this since Qt6.4, if anything. It's closed as "Out of Scope".
            The big report notes

            According to the upstream Mutter bug report, this is fixed in Mutter 42.6

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Moritz Ulmer
              wrote on last edited by
              #6

              I can confirm that this bug is caused by mutter <= 42.5. A workaround is to set QT_QPA_PLATFORM=xcb which uses X11 under Wayland. To properly resolve the issue, enable Ubuntu proposed which has mutter == 42.9 at the time of writing: https://wiki.ubuntu.com/Testing/EnableProposed

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved