<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This bug is only present on Linux!<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In the attachment is an example of the error. How to reproduce it:</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Without changing any text inside the QScintilla editor, set the cursor to the beginning of the first line, press and hold the
<i><b>CTRL</b></i> key and drag the mouse to the end of the first line. After selecting a few characters, usually more than 5 or 6, the example throws a exception, something like:<br>
<div><br>
</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;"><i><span>*** Error in `/usr/bin/python3': free(): invalid next size (fast): 0x01e8d3e8 ***<br>
</span><span>Aborted</span></i></blockquote>
</div>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The error appears to happen when calling the <i><b>selectedText </b></i>method, while the
<i><b>CTRL </b></i>key is pressed and changing the selected text with the mouse.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The returned string from <i><b>selectedText </b></i>is not correct, which is visible in the console window in the example just before the exception is thrown.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This error was found and reproduced in multiple editors, including: ExCo, mu-editor and meditor.<br>
Probably every editor based on QScintilla has this issue.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Tested on:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ul>
<li>Lubuntu x64, PyQt 5.11.2, QScintilla 2.11.4<br>
</li><li>Raspbian RaspberryPI 3 (arm), PyQt 5.7, QScintilla 2.9.3</li></ul>
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Matic<br>
</div>
</body>
</html>