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

Calling QTreeView.setHeader() causes segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • 1.1.2, 1.2.0
    • PySide
    • Ubuntu 12.04
    • b5debb687463f77053344f1e4cd7754275e487b2

    Description

      Running the attached test application causes segmentation fault on QTreeView.setHeader() call. Equivalent C++ Qt application works as expected.

      Tested versions 1.1.0, 1.1.2 and 1.2.1.

      Top frames on GDB backtrace look as follows (on my machine, which does not have very good gdb setup currently, sorry):

      #1  0x00007ffff465fcd4 in QTreeView::doItemsLayout (this=0x13f96e0) at itemviews/qtreeview.cpp:2065
              d = 0x13fc060
              parent = {r = -1, c = -1, p = 0x0, m = 0x0}
      #2  0x00007ffff5c756a8 in QTreeViewWrapper::doItemsLayout (this=0x13f96e0)
          at qtreeview_wrapper.cpp:420
              gil = {m_gstate = PyGILState_UNLOCKED, m_locked = false}
              pyOverride = {m_pyObj = 0x0}
              pyArgs = {m_pyObj = < at remote 0x13f96e0>}
      Python Exception <class 'gdb.error'> There is no member named ma_mask.: 
              pyResult = {m_pyObj = }
      #3  0x00007ffff46587a4 in QTreeViewPrivate::updateScrollBars (this=0x13fc060) at itemviews/qtreeview.cpp:3491
              itemsInViewport = <optimized out>
              columnCount = <optimized out>
              viewportSize = {wd = 254, ht = 190}
              viewportWidth = <optimized out>
              columnsInViewport = <optimized out>
      #4  0x00007ffff4658acf in QTreeView::updateGeometries (this=0x13f96e0) at itemviews/qtreeview.cpp:2721
              hint = <optimized out>
              geometryRect = {x1 = 1, y1 = 1, x2 = 254, y2 = 0}
              d = 0x13fc060
      #5  0x00007ffff5c73608 in QTreeViewWrapper::updateGeometries (this=0x13f96e0)
          at qtreeview_wrapper.cpp:2101
              gil = {m_gstate = PyGILState_UNLOCKED, m_locked = false}
              pyOverride = {m_pyObj = 0x0}
              pyArgs = {m_pyObj = <unknown at remote 0x7ffff7fb2cfd>}
              pyResult = {m_pyObj = <unknown at remote 0x7fffffffcc50>}
      #6  0x00007ffff5c76953 in QTreeViewWrapper::resizeEvent (this=0x13f96e0, event=0x7fffffffd8c0)
          at qtreeview_wrapper.cpp:1516
              pyArgs = {m_pyObj = < at remote 0x13fd920>}
              invalidateArg1 = <optimized out>
              pyResult = {m_pyObj = <unknown at remote 0x9ba0b0>}
              gil = {m_gstate = PyGILState_UNLOCKED, m_locked = false}
              pyOverride = {m_pyObj = 0x0}
      

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            makelaa Aapo Mäkelä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes