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

Crash in Debug when using QXmlSchemaValidator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.9.4
    • XML: QtXmlPatterns
    • None

    Description

      Hi,

      I am getting a crash in debug, when I use QXmlSchemaValidator to validate xml file with the schema string set. The crash only happen when the xml does not match the schema.

      Screenshot of Error is attached

      Unable to render embedded object: File (591FB8A3-6BAC-4A21-B851-1745A4C3C9C5) not found.

      I've done a migration of my code from QT 5.6 to 5.9.4. It works with Qt 5.6 where it simply returns false if validator fails whereas in 5.9.4 it crashes instead.

      Do we already have a fix for this? or any workaround please?

      Attachments

        1. Qt_error.jpg
          Qt_error.jpg
          28 kB
        2. Qt_bug.xml
          0.4 kB
        3. Qt_bug_callstack.txt
          0.5 kB
        4. Qt_bug_schema.xsd
          0.8 kB
        5. Qt_bug_application_code.txt
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            halima Halima Awan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes