Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QComboBox selection makes computer crash
Forum Updated to NodeBB v4.3 + New Features

QComboBox selection makes computer crash

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 11 Posters 3.8k 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.
  • S Offline
    S Offline
    SamuelAdesola
    wrote on last edited by
    #9

    I am experiencing same problem now

    1 Reply Last reply
    1
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #10

      I have also same problem using Qt6 6.4.2. I am waiting for a solution. I don't want to migrate Qt5 because of this problem.

      JoeCFDJ 1 Reply Last reply
      1
      • ? A Former User

        I have also same problem using Qt6 6.4.2. I am waiting for a solution. I don't want to migrate Qt5 because of this problem.

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #11

        @Dogukan-Arat I tested the /widgets/painting/basicdrawing example which has a few combo boxes and do not see any crash.
        Qt 6.5.0 and LUbuntu 22.04

        JonBJ 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @Dogukan-Arat I tested the /widgets/painting/basicdrawing example which has a few combo boxes and do not see any crash.
          Qt 6.5.0 and LUbuntu 22.04

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #12

          @JoeCFD
          I seem to remember some recent post on something "similar" to this may have stated that Lubuntu worked but Ubuntu did not?

          JoeCFDJ 1 Reply Last reply
          0
          • JonBJ JonB

            @JoeCFD
            I seem to remember some recent post on something "similar" to this may have stated that Lubuntu worked but Ubuntu did not?

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #13

            @JonB I will check it out later.

            JoeCFDJ 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @JonB I will check it out later.

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #14

              @JoeCFD Tried the same example on Qt 6.4.0 and Ubuntu 22.04. No crash.

              1 Reply Last reply
              1
              • I Offline
                I Offline
                iPriyonto
                wrote on last edited by
                #15

                I am having the same problem too. However, in my case, it crashes only when I have the combo box open, and I try to interact with other widgets I have on the window.

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  Mriv31
                  wrote on last edited by
                  #16

                  Same problem.

                  Ubuntu 22.04 LTS - Wayland
                  PyQt6 6.5.0

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    Li Kui
                    wrote on last edited by
                    #17

                    同样的问题,VMware,Ubuntu-22.04.2,Qt6.5

                    1 Reply Last reply
                    0
                    • BosGemilerB Offline
                      BosGemilerB Offline
                      BosGemiler
                      wrote on last edited by
                      #18

                      I have same issue. When I clicked on combobox, I can see dropdown menu, and everything is fine so far. But when I click on any item in dropdown menu, there appears a crash and I find myself on log in page of ubuntu.

                      It's not the only bug I faced in ubuntu. There are many others too. Unfortunately, I didn't see any good release of Ubuntu except Ubuntu 14 and 18.

                      Goodbye Ubuntu, Welcome Debian !

                      JoeCFDJ 1 Reply Last reply
                      0
                      • BosGemilerB BosGemiler

                        I have same issue. When I clicked on combobox, I can see dropdown menu, and everything is fine so far. But when I click on any item in dropdown menu, there appears a crash and I find myself on log in page of ubuntu.

                        It's not the only bug I faced in ubuntu. There are many others too. Unfortunately, I didn't see any good release of Ubuntu except Ubuntu 14 and 18.

                        Goodbye Ubuntu, Welcome Debian !

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by JoeCFD
                        #19

                        @BosGemiler It could be a wayland related issue. Switch to Xorg and try it again.
                        On Login screen, there is a setting icon and click it to switch to Xorg. The default on Ubuntu now is Wayland.

                        1 Reply Last reply
                        1
                        • D Offline
                          D Offline
                          default
                          wrote on last edited by
                          #20

                          I faced the same issue while working with PyQt6 on Ubuntu 22.04

                          So I ran the following minimal example:-

                          from PyQt6.QtWidgets import (
                            QApplication,
                            QWidget,
                            QComboBox,
                          )
                          
                          import sys
                          
                          
                          class Window(QWidget):
                            def __init__(self):
                              super().__init__()
                          
                              combobox = QComboBox(self)
                              combobox.addItems(['option 1', 'option 2', 'option 3'])
                          
                              self.setGeometry(0,0,500,500)
                              self.setWindowTitle('Combobox Bug')
                              self.show()
                          
                          
                          if __name__ == '__main__':
                            app = QApplication([])
                            window = Window()
                            sys.exit(app.exec())
                          

                          Wayland : It crashes and I am sent to login screen where I have to login again.
                          Xorg: No crash

                          Same thing happens on PySide6.

                          JoeCFDJ 1 Reply Last reply
                          0
                          • D default

                            I faced the same issue while working with PyQt6 on Ubuntu 22.04

                            So I ran the following minimal example:-

                            from PyQt6.QtWidgets import (
                              QApplication,
                              QWidget,
                              QComboBox,
                            )
                            
                            import sys
                            
                            
                            class Window(QWidget):
                              def __init__(self):
                                super().__init__()
                            
                                combobox = QComboBox(self)
                                combobox.addItems(['option 1', 'option 2', 'option 3'])
                            
                                self.setGeometry(0,0,500,500)
                                self.setWindowTitle('Combobox Bug')
                                self.show()
                            
                            
                            if __name__ == '__main__':
                              app = QApplication([])
                              window = Window()
                              sys.exit(app.exec())
                            

                            Wayland : It crashes and I am sent to login screen where I have to login again.
                            Xorg: No crash

                            Same thing happens on PySide6.

                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by JoeCFD
                            #21

                            @default run
                            strace yourapp
                            to check if any plugin is missing. You may be able to get some hints about the reasons.

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

                              For a fix, see my comment: https://forum.qt.io/post/762082

                              The cause is a bug in mutter <= 42.5 under Wayland. Upgrade to proposed to get 42.9 which resolves the issue.

                              1 Reply Last reply
                              2

                              • Login

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