You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kf5-ktexteditor/D8544.diff

21 lines
792 B

Index: src/utils/kateglobal.cpp
===================================================================
--- a/src/utils/kateglobal.cpp
+++ b/src/utils/kateglobal.cpp
@@ -99,6 +99,15 @@
// remember this
staticInstance = this;
+#if QT_VERSION < QT_VERSION_CHECK(5, 9, 1)
+ // disable the QML JIT compiler as a protection against an unknown bug
+ // in Qt's V4 engine which can provoke a crash in certain of our scripts.
+ // See https://bugreports.qt.io/browse/QTBUG-63045
+ // and https://bugs.kde.org/show_bug.cgi?id=385413
+ qputenv("QV4_FORCE_INTERPRETER", QByteArrayLiteral("1"));
+ qCDebug(LOG_KTE) << "QV4_FORCE_INTERPRETER set to 1";
+#endif
+
// init libgit2, we require at least 0.22 which has this function!
#if LIBGIT2_FOUND
git_libgit2_init();