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

QGraphicsScene with embedded widget segfaults on exit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 1.1.0
    • PySide
    • None
    • Python 2.7.2
      Qt 4.7.4
      PySide 1.1.0

    Description

      Following code snippet (sometimes) segfaults on exit:

      =======================================================

      import sys
      from PySide.QtGui import (QApplication, QGraphicsScene,
                                QGraphicsView, QLineEdit)
      
      class Scene(QGraphicsScene):
          
          def __init__(self):
              QGraphicsScene.__init__(self)
              self.line_edit = QLineEdit()
              self.addWidget(self.line_edit)
      
      class View(QGraphicsView):
          
          def __init__(self):
              QGraphicsView.__init__(self)
              self.setScene(Scene())
      
      if __name__ == '__main__':
          app = QApplication([])
          view = View()
          view.show()
          sys.exit(app.exec_())
      

      =======================================================

      It doesn't happen on every exit. I couldn't figure out
      exact reason when does it precisely happen but if you start
      this app / interact with the scene / close a few times it
      you're likely to face segfault.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            densh Den Shabalin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes