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

Crash in QML when using NaN values with payloads for properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0
    • 5.2.0, 5.2.1
    • None
    • Windows 7, Qt 5.2.* x86 32bit for Visual Studio 2010, with 64bit Intel Core i7

    Description

      When using 0x7FFFFFFF (but also others) as the raw value for a float number and then transferring this float value to QML and inside QML assigning it to a real property this leads to a crash.
      This numbers are valid QNaN values according to IEEE 754.

      First investigation indicates that those values could not be detected as NaNs when converting them back to QVariant for property assignment.
      This results in interpreting them as Objects or similar results in a null-pointer exception.

      I attached a example project which could be used for reproducing it. I think this is more helpfull than a stacktrace alone.

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            jmatokic Johannes Matokic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes