[QScintilla] Possible bug with 'selectedText' while Ctrl+Mouse movement

Detlev Offenbach detlev at die-offenbachs.de
Wed Apr 22 18:27:52 BST 2020


Hello,

I can confirm this issue using all the latest versions (PyQt5, QScintilla, PyQt5-sip) on Python  
3.8.0 on Kubuntu 19.10. This issue was already reported to this mailing list in November 
last year.

This Ex.Co issue gives more details. Hope it helps.

https://github.com/matkuki/ExCo/issues/33[1]


Am Mittwoch, 22. April 2020, 17:07:14 CEST schrieb Matic Kukovec:
> On 22/04/2020 15:00, Matic Kukovec wrote:
> >> On 21/04/2020 21:11, Matic Kukovec wrote:
> >>> Hi,
> >>> 
> >>> This bug is only present on Linux!
> >>> 
> >>> In the attachment is an example of the error. How to reproduce it:
> >>> Without changing any text inside the QScintilla editor, set the
> >> 
> >> cursor
> >> 
> >>> to the beginning of the first line, press and hold the CTRL 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:
> >>> 
> >>> *** Error in `/usr/bin/python3': free(): invalid next size (fast):
> >>> 0x01e8d3e8 ***
> >>> Aborted
> >>> 
> >>> The error appears to happen when calling the selectedText method,
> >>> while the CTRL key is pressed and changing the selected text with
> >> 
> >> the
> >> 
> >>> mouse.
> >>> The returned string from selectedText is not correct, which is
> >> 
> >> visible
> >> 
> >>> in the console window in the example just before the exception is
> >>> thrown.
> >>> 
> >>> This error was found and reproduced in multiple editors,
> >> 
> >> including:
> >>> ExCo, mu-editor and meditor.
> >>> Probably every editor based on QScintilla has this issue.
> >>> 
> >>> Tested on:
> >>> 
> >>> *   Lubuntu x64, PyQt 5.11.2, QScintilla 2.11.4
> >>> *   Raspbian RaspberryPI 3 (arm), PyQt 5.7, QScintilla 2.9.3
> >> 
> >> Works fine for me with current versions.
> >> 
> >> Phil
> > 
> > Hi Phil,
> 
> > Nope, tried with PyQt 5.14.2 and QScintilla 2.11.4, same error:
> What version of Python?
> 
> Phil
> Python 3.7.3 (default, Oct 7 2019, 12:56:13) [GCC 8.3.0] on linux
> 
> Regards


Detlev Offenbach
detlev at die-offenbachs.de

--------
[1] https://github.com/matkuki/ExCo/issues/33
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20200422/a3d5e325/attachment-0001.htm>


More information about the QScintilla mailing list