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. PySide6 6.2.0 does not run & crash

PySide6 6.2.0 does not run & crash

Scheduled Pinned Locked Moved Unsolved Qt for Python
14 Posts 3 Posters 1.9k Views
  • 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.
  • SGaistS SGaist

    Do you have that issue with a minimal script ?
    Did you try to check with a different version of Python like 3.8 or 3.9 ?

    D Offline
    D Offline
    Dariusz
    wrote on last edited by Dariusz
    #5

    @SGaist said in PySide6 6.2.0 does not run & crash:

    Do you have that issue with a minimal script ?
    Did you try to check with a different version of Python like 3.8 or 3.9 ?

    Minimal script runs, I did not try different pythons yet.
    Ver 6.0.1 crashes too :- (
    Im literally adding print (x) to each line of code 1 by 1 trying to track down the cause of it. It crashes at random prints. Which is bananas. I rolled back to 6.0.0 everything works.

    I'll try installing fresh environment, see if that can fix it...

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dariusz
      wrote on last edited by Dariusz
      #6

      Ok I tried fresh venv, python 3.9 and 6.2.0. Still crash. Simple app works, my app crashes somewhere in Qt as whenever I run debug or release in Pycharm I end up with the same result. just error code. No breakpoint/etc.

      When ever I manage to run it & try to do something, I tend to get error with QTreeView

      QTreeView
      self.view.update()
      TypeError: historyView.update() takes exactly one argument (0 given)

      This in Qt 6.0.0 worked fine. To push update of QTreeView.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #7

        You should not need to call update yourself.

        But argument number error is strange...

        Try calling it passing the geometry of your widget as parameter.

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

        D 1 Reply Last reply
        0
        • SGaistS SGaist

          You should not need to call update yourself.

          But argument number error is strange...

          Try calling it passing the geometry of your widget as parameter.

          D Offline
          D Offline
          Dariusz
          wrote on last edited by
          #8

          @SGaist Yep fixed thos, and all other ones. Looks like API change, sadly still crash with vague code.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #9

            I would say it's rather a binding issue, update is a parameter less slot. You should be able to use it.

            You should check the bug report system to see if it's something known and if not open a ticket.

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              I would say it's rather a binding issue, update is a parameter less slot. You should be able to use it.

              You should check the bug report system to see if it's something known and if not open a ticket.

              D Offline
              D Offline
              Dariusz
              wrote on last edited by
              #10

              @SGaist Yea its strange... I just went line by line debuging the entire start sequence of script. It started. I restart without line by line debugging and it crashes.

              The odd thing that I find is that QAbstractItemView.update() does need an index passed to it. Which is fine, but what strikes me odd is that Shiboken is imported from Shiboken and not from Shiboken6?
              I though PySide6 & Shiboken6 were meant to be now 6?
              This is from Library >

              # imports
              import PySide6.QtCore as __PySide6_QtCore
              import PySide6.QtGui as __PySide6_QtGui
              import Shiboken as __Shiboken
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #11

                Where do you have that shiboken import ?

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

                D 1 Reply Last reply
                0
                • SGaistS SGaist

                  Where do you have that shiboken import ?

                  D Offline
                  D Offline
                  Dariusz
                  wrote on last edited by Dariusz
                  #12

                  @SGaist

                  # encoding: utf-8
                  # module PySide6.QtWidgets
                  # from S:\pythoNenvs\venv39_01\lib\site-packages\PySide6\QtWidgets.pyd
                  # by generator 1.147
                  # no doc
                  
                  # imports
                  import PySide6.QtCore as __PySide6_QtCore
                  import PySide6.QtGui as __PySide6_QtGui
                  import Shiboken as __Shiboken
                  

                  Its generated by Pycharm down in Python_stubs

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    I am as surprised as you.

                    I do not see the use for it especially for user code.

                    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
                    • D Dariusz

                      Hey

                      I'm a bit lost. I've been stuck at PySide6.0 since its release, I'm unable to push any newer version as it always crashes in release mode and debugs.
                      Process finished with exit code -1073740791 (0xC0000409)
                      Any ideas how to bite it? Feels like dlls are missing somehow.

                      Win10x64
                      PyCharm
                      PySide6 6.2.0

                      Regards
                      Dariusz

                      eyllanescE Offline
                      eyllanescE Offline
                      eyllanesc
                      wrote on last edited by
                      #14

                      @Dariusz try execute on cmd: python main.py and show the complete error message.

                      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                      1 Reply Last reply
                      0

                      • Login

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