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

Using QBar3DSeries.dataProvider().addRow() segfaults

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.4
    • 5.15.1
    • PySide
    • None
    • Standard pip installation of pyside2 on Debian testing.
    • Linux/X11
    • 3a18da91353a71e801658329c55b170c18bcd824 (pyside/pyside-setup/dev) 3e1976ce059e0da40ba55acf9b60bd89da851d73 (pyside/tqtc-pyside-setup/tqtc/lts-5.15), f5b03c14c (dev), 67a91c57d (6.4), 4d4234e75 (dev), e25a91ec9 (tqtc/lts-6.2), 52d7f82e8 (6.4)

    Description

      Translating the 3d Bars C++ example to PySide2 makes it crash when adding the data data-list via `addRow()`.

       

       

      #!/usr/bin/env python3
      
      import sys
      from PySide2.QtWidgets import QApplication
      from PySide2.QtDataVisualization import QtDataVisualization
      
      if _name_ == '_main_':
        app = QApplication([])
        bars = QtDataVisualization.Q3DBars()
        series = QtDataVisualization.QBar3DSeries()
        d = [QtDataVisualization.QBarDataItem(v) for v in [1.0, 7.5, 5.0, 2.2]]
      
      
        series.dataProxy().addRow(d)  # segfault
        bars.addSeries(series)
        bars.show()
        sys.exit(app.exec_())
      

       

      Adding the same data inside a list of list of data via `addRows()`works.

       

      series.dataProxy().addRows([d])

       

       

      Attachments

        1. pyside1438_6_stack.txt
          26 kB
        2. pyside1438_6.py
          0.7 kB
        3. pyside1438_stack.txt
          24 kB
        4. pyside1438.py
          0.6 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              pboettch Patrick B
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: