[QScintilla] [Bug] Assertion `val >= 0' failed by QsciLexerCPP
Phil Thompson
phil at riverbankcomputing.com
Thu Feb 28 15:08:18 GMT 2013
On Thu, 28 Feb 2013 23:54:44 +0900, Yuya Nishihara <yuya at tcha.org> wrote:
> On Mon, 13 Aug 2012 16:47:39 +0100, Phil Thompson wrote:
>> On Mon, 13 Aug 2012 19:25:27 +0900, Yuya Nishihara <yuya at tcha.org>
wrote:
>> > Hi,
>> >
>> > I encountered crash if QsciLexerCPP is applied for "#if \xb5" line.
>> > I made a minimal repro code (see attached). Both C++ and Python
>> > versions
>> > do the same thing.
>> >
>> > Environment:
>> > Debian GNU/Linux (sid)
>> > Kernel 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64
>> GNU/Linux
>> >
>> > libqt4-core 4:4.8.2-2+b1
>> > libqscintilla2-8 2.6.1-5+b1
>> >
>> > Backtrace:
>> > qsci-cpplexer-crash: ../lexlib/CharacterSet.h:62: bool
>> > CharacterSet::Contains(int) const: Assertion `val >= 0' failed.
>>
>> It's the assert() itself which is wrong - just delete it. Fixed in
>> tonight's snapshot.
>
> Hi Phil,
>
> This assert(val >= 0) still exists in QScintilla 2.7.
>
> I've received a bug report about it, and thankfully he can provide a
> file to reproduce:
> https://bitbucket.org/tortoisehg/thg/issue/2433/#comment-3269076
Fixed (again) in tonight's snapshot.
Thanks,
Phil
More information about the QScintilla
mailing list