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

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

XMLWordPrintable

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

      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.

        1. eval.js
          1.0 kB
          Christoph Cullmann
        2. eval.js
          5 kB
          Christoph Cullmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes