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

NSConcreteMapTable autoreleased with no pool in place at user input

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.2.x
    • PySide
    • None
    • Qt 4.8, PySide 1.1.1, OS X 10.7.4

    Description

      The following code produces the error at the first user input in the terminal

      objc[17123]: Object 0x7faecb42e890 of class NSConcreteMapTable autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

      import sys
      import threading
      from PySide.QtCore import *
      from PySide.QtGui import *
      from PySide.QtUiTools import QUiLoader
      
      app = QApplication(sys.argv)
      
      loader = QUiLoader()
      file = QFile("./mainwindow.ui")
      file.open(QFile.ReadOnly)
      myWidget = loader.load(file)
      file.close()
      
      btn = myWidget.findChild(QPushButton,"btn")
      btn.setText("Knopfi :)")
      myWidget.show()
      
      class MyThread ( threading.Thread ):
          def run (s):
              while(True):
                  button = raw_input()
                  btn.setText(button)
                  sys.stdout.write(button)
                  sys.stdout.flush()
      
      myThread = MyThread ()
      myThread.start()
      
      app.exec_()    
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mbert Martin Bertschler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes