Python syntax highlighter can crash when Script has syntax errors
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Launch ParaView Add Python View Enter some text in the Script text entry Click outside the text entry Click back inside the text entry and modify the text ParaView will crash
Partial stack track is:
frame #0: 0x0000000107fb3f5f PythonPyUnicodeUCS2_AsUTF8String + 4 frame #1: 0x0000000100b4ce85 libvtkpqPython-pv5.1.1.dylib
pqPythonSyntaxHighlighter::rehighlightSyntax(this=0x00000001168210a0) + 1637 at pqPythonSyntaxHighlighter.cxx:193
frame #2: 0x0000000100b4f5e2 libvtkpqPython-pv5.1.1.dylibpqPythonSyntaxHighlighter::qt_static_metacall(_o=0x00000001168210a0, _c=InvokeMetaMethod, _id=0, _a=0x00007fff5fbfdd80) + 130 at moc_pqPythonSyntaxHighlighter.cxx:49 frame #3: 0x00000001072e3c2e QtCore
QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1566