runtime error in the javascript evaluator when 'opening into' file.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenTeacher | Status tracked in 3.x | |||||
3.x |
Fix Released
|
High
|
Marten de Vries |
Bug Description
Steps to reproduce:
- Start OT (a version that has open into support, so the current trunk).
- Open a file
- Open a file into that file
- See a crash in the console:
Traceback (most recent call last):
File "modules/
return self._compose(
File "modules/
return self._js[
File "modules/
jsArgs = self._getJsArgs
File "modules/
return [self._
File "modules/
if jsObj.engine() == self._engine:
RuntimeError: super-class __init__() of type QScriptValue was never called
(multiple times, presumably for every word in the file)
- See that the QTableView isn't properly updated either.
Reproduced this on both my main pc and my Windows VM.
Interesting to research: the normal open function seems not to be affected by this while the open into function is.
'Interesting to research: the normal open function seems not to be affected by this while the open into function is.'
That last idea let to the solution. (deepcopy.copy() not working on Qt objects). Added regression tests & fixed.