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

Using QBar3DSeries.dataProvider().addRow() segfaults

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Standard pip installation of pyside2 on Debian testing.
    • Platform/s:
      Linux/X11
    • Commits:
      3a18da91353a71e801658329c55b170c18bcd824 (pyside/pyside-setup/dev) 3e1976ce059e0da40ba55acf9b60bd89da851d73 (pyside/tqtc-pyside-setup/tqtc/lts-5.15)

      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: