Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104766

QtQuick.Pdf PdfDocument gets "QCoreApplication::postEvent: Unexpected null receiver" warning when instantiated standalone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.4, 6.6.2, 6.7.0 Beta2
    • 6.4.0 Beta1, 6.5.1
    • PDF
    • None
    • MacBook Pro 18 (Apple M1 Pro) + macOS 12.4 (21F79) + Qt 6.4.0b1; Windows 10 22H2 + Qt 6.5.1
    • macOS, Windows
    • c472a0f7b (6.5), 67f61eed8 (6.6), 27dfc7cc8 (6.7)

    Description

      Standalone reproducer

      import QtQuick
      import QtQuick.Pdf
      
      Window {
          id: root
          width: 480
          height: 640
          visible: true
      
          PdfDocument {
              source: "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf"
          }
      }
      

      (Issue does not occur if PdfDocument is replaced with Image)

       

      Outcomes

      The document does not load.

       

      The Application Output says:

      QCoreApplication::postEvent: Unexpected null receiver
      QFSFileEngine::open: No file name specified
      

       

      If the HTTP(S) URL is replaced with a local URL, then the Application Output says:

      QCoreApplication::postEvent: Unexpected null receiver
      

       

      Original report
      Running the attached qml file from the qml tool results in the following error reported to the terminal:

      $ qml nullReceiver.qml
      QCoreApplication::postEvent: Unexpected null receiver
      

      If the source property is commented out, the error is not reported.

      The error occurs apparently with any PDF file.

      Attachments

        1. letterPicaGrid.pdf
          375 kB
        2. nullReceiver.qml
          0.2 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-104766
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              jbrend Jeffrey Brendecke
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes