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

QSyntaxHighlighter crashes if abstract method highlightBlock() is not defined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.4.0
    • PySide
    • None
    • Windows
    • fb00686b6d (pyside/pyside-setup/dev) fb00686b6d (pyside/tqtc-pyside-setup/dev) 98014a091c (pyside/pyside-setup/6.4) 98014a091c (pyside/tqtc-pyside-setup/6.4)

    Description

      If `highlightBlock` is not defined, the QSyntaxHighlighter instance crashes with a stack overflow error: `Process finished with exit code -1073741819 (0xC0000005)`

      See attached code for an example.

      Could this be improved? It could have a better exception message.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            jaime02 Jaime Resano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes