When the toString method of QObjects is called from the JavaScript interpreter,
my application crashes with a fatal assertion failure. For example, when
Array.prototype.toString or Array.prototype.join is called.
What steps will reproduce the problem?
1. Set up and run the QtScriptGenerator lab to produced QtScript bindings for
all modules.
2. Create a QtScript file that executes either of the following lines of code:
print( [new QPoint(0,0)].toString() );
print( [new QPoint(0,0)].join('') );
3. Evaluate that script with the bindings loaded (such as with qs_eval).
What is the expected output? What do you see instead?
Expected output:
QPoint
Actual:
The application crashes with the message:
Fatal: ASSERT: "(_id & 0xFFFF0000) == 0xBABE0000" in file
thirdparty/src/qtscriptgenerator/generated_cpp/com_trolltech_qt_core/qtscript_QP
oint.cpp, line 103
What version of the product are you using? On what operating system?
I'm using generated bindings for QtScript produced from qtscriptgenerator on
Linux (Ubuntu 10.04). qtscriptgenerator is version 8b191fb (latest as of
writing) and Qt is version 4.6.1.
Original issue reported on code.google.com by davidh...@gmail.com on 18 Mar 2011 at 6:44
Original issue reported on code.google.com by
davidh...@gmail.com
on 18 Mar 2011 at 6:44