<table><tr><td style="">cullmann added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8544" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Hi, first: thanks for working on getting the crashs for older versions away.</p>

<p>To the changes:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">if the small change to cstyle.js helps to workaround bugs, feel free to commit that part.</li>
</ol>

<ol class="remarkup-list" start="2">
<li class="remarkup-list-item">for the disabler: I think that is not usable in the way it is done, sorry.</li>
</ol>

<p>If you look at the code of qt, the check for the env var works like:</p>

<p>qtdeclarative/src/qml/jsruntime/qv4engine.cpp</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">static const bool forceMoth = !qEnvironmentVariableIsEmpty("QV4_FORCE_INTERPRETER") ||
                              !OSAllocator::canAllocateExecutableMemory();</pre></div>

<p>That means on the first invocation that is cached for ever.<br />
If we want to use this approach, we can try to e.g. do a</p>

<p>qputenv("QV4_FORCE_INTERPRETER", QByteArrayLiteral("1"));</p>

<p>in the editor singleton on first instantiation and even then this only helps if no other part of the application did execute a script in advance.<br />
And it will degenerate performance for the complete application if it works at all :/</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8544" rel="noreferrer">https://phabricator.kde.org/D8544</a></div></div><br /><div><strong>To: </strong>rjvbb, Frameworks<br /><strong>Cc: </strong>cullmann, kde-frameworks-devel, kevinapavew, demsking, head7, kfunk, sars, dhaumann<br /></div>