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

Problem with QJSEngine, variables get "random" values during script execution

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.2.1
    • 5.2.0
    • None
    • Qt 5.2.0, Ubuntu 13.04 or openSuSE 12.3, GCC 4.8
    • 1ac728b7601dd5fee2fee7ea714f0626055384df

    Description

      We use some eval.js scripts to create automated tests.

      Up to 5.1.x, the attached script did work and the

      var assertion_line_1 = -1, assertion_line_2 = -1;

      variables got filled with the correct values 6 and 7 during script execution.

      With Qt 5.2.0, it seems that the loop still does the right thing but afterwards, the content of assertion_line_1 is random garbage :/

      The interfaces used in that script are all plain dumb auto-wrapped via newQObject and use only simple types like QString and so on.

      Attachments

        1. eval.js
          1.0 kB
        2. eval.js
          5 kB

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              cullmann Christoph Cullmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes