[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CRASH REPORT] QRCode


On Sat, 10 Oct 2026, 09:25 valaquarus, <valaquarus@xxxxxxxxx> wrote:

> Le samedi 10 octobre 2026 à 09:00 +0200, Claus Dietrich a écrit :
>
> Am 10.10.26 um 08:36 schrieb Philippe Valarcher:
>
> Hello,
>
> Damned, my program crashed Gambas that way :
>
> Here is what causes the problem :
>
> Public Sub btnQuit_Click()
>
>    If Not PictureBoxQRCode.Image = Null Then
>       TextAreaInput.Clear()
>       PictureBoxQRCode.Picture.Flush()
>       PictureBoxQRCode.Image = Null
>    Else
>       Me.Close()
>    Endif
>
> End
>
>
> Its not crashing here on Linux Mint 22.0 Cinnamon with Gambas 3.22.2.
>
> What I found disturbing in the TextArea since some time and also appears
> in this app are the continuous error messages in the IDE-console at each
> text input event:
>
> ....
>
> QTextCursor::setPosition: Position '9' out of range
> QTextCursor::setPosition: Position '10' out of range
> QTextCursor::setPosition: Position '12' out of range
> QTextCursor::setPosition: Position '12' out of range
> QTextCursor::setPosition: Position '13' out of range
> QTextCursor::setPosition: Position '15' out of range
> QTextCursor::setPosition: Position '16' out of range
> QTextCursor::setPosition: Position '18' out of range
> QTextCursor::setPosition: Position '18' out of range
> QTextCursor::setPosition: Position '19' out of range
> QTextCursor::setPosition: Position '21' out of range
> QTextCursor::setPosition: Position '22' out of range
> QTextCursor::setPosition: Position '24' out of range
>
> ....
>
> This applies to QT only.
>
> Best regards
>
> Claus
>
>
>
>
> Dear Claus,
> thank you for your answer.
> At home, the IDE is only working with gtk since on my manjaro the QT6 is
> only on 6.11 not yet on 6.12 therefore I don't have those
> QTextCursor::setPosition: Position 'X' out of range.
> At closing it says : double free or corruption (!prev) and I don't know
> how to correct this memory corruption.
> Best regards.
>

Compile/Install Gambas from source code.

As Benoit said only the pacman packaged version of Gambas gets these
library versions conflicts. (And always will)

I assume (but it might not be true) that Gambas stable probably has a lag
that's not so prone to version errors as master.

It sounds to me like using master OBS repository on manjaro is "likely" to
give you problems and should be avoided.

Meaning all these problems you have are about a manjaro/arch library
mismatch and will probably stop when the library catches up.
They are likely not problems with your Gambas code we can help with.

So either use stable OBS or compile master from source.

Respects
BruceS

>

References:
[CRASH REPORT] QRCodePhilippe Valarcher <philippe.valarcher@xxxxxxx>
Re: [CRASH REPORT] QRCodeClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: [CRASH REPORT] QRCodevalaquarus <valaquarus@xxxxxxxxx>