Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1003

Debug PySide fails to build because of heap type assertion

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 5.12.2, 5.12.3
    • Fix Version/s: 5.12.3
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Visual Studio 2017
      Python 2.7.15
    • Platform/s:
      Windows
    • Commits:
      dc14eba3040b24f538b7fce93a463d1f0a511bc4 (pyside/pyside-setup/5.12)

      Description

      When attempting to build a debug version of pyside2 on Windows with Visual Studio 2017 and Python 2.7.15 I encounter this error:

      Assertion failed: type->tp_flags & Py_TPFLAGS_HEAPTYPE, file C:\python-2.7.15\objects\typeobject.c, line 2807

      The error occurs when this command is executed by the build process:

       

      D:/python2.7/python2.7_d.exe D:/tmp/PySide2-5.12.2-src.py2.7.debug/sources/pyside2/PySide2/QtCore/../support/generate_pyi.py run --skip --sys-path D:/tmp/PySide2-5.12.2-src.py2.7.debug/pyside2dp_build/py2.7-qt5.12.3-64bit-debug/pyside2 D:/tmp/PySide2-5.12.2-src.py2.7.debug/pyside2dp_install/py2.7-qt5.12.2-64bit-debug/Lib/site-packages/shiboken2
      

       

      I tracked it down and the error was introduced by this change:

      "Fix Shiboken.ObjectType._new_ for Python 2.7" b2a09c05e9cc2503f1609f720060558c0db2fe03 https://codereview.qt-project.org/#/c/252439/

       

      If I locally revert the change then the error does not occur.

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-1003
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                ctismer Christian Tismer
                Reporter:
                rvinluan Robert Vinluan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes