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

PySide2 crashes when using qDebug with an installed handler through qInstallMessageHandler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • None
    • PySide
    • None

    Description

      Running the code below crashes the Python interpreter on the qDebug('check') line.

      if __name__ == '__main__':
          from PySide2.QtCore import qInstallMessageHandler, qDebug
          def callback(*args, **kwargs):
              print('callback', args, kwargs)
          qInstallMessageHandler(callback)
      
      
          qDebug('check')
          print('Finished')
      

      Note: using wheel from:
      https://bintray.com/fredrikaverpil/pyside2-wheels/pyside2#files/windows6.3.9600

      Created from:

      https://github.com/fredrikaverpil/pyside2-wheels

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            fabioz Fabio Zadrozny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes