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

Debug PySide fails to build because of heap type assertion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.3
    • 5.12.2, 5.12.3
    • PySide
    • None
    • Visual Studio 2017
      Python 2.7.15
    • Windows
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ctismer Christian Tismer
              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