[Lazarus] Mysterious crash with Lazarus on RPi4B running PiOS bookworm 32 bit

Bo Berglund bo.berglund at gmail.com
Mon Dec 4 19:18:28 CET 2023


On Mon, 04 Dec 2023 15:58:59 +0100, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>I have built a new system where I have installed fpc 3.2.2 and Lazarus 2.2.4
>from sources like I normally do.
>
>In this case I have encountered a very strange issue never seen before but
>repeatable using both 2.2.4 and 2.2.6.
>
>All seems OK until I use the Tools/Options/Editor/Display/Color window to set
>the color coding of various items like I usually have them.
>
>As soon as I select "Comment" in the list in order to change the color from blue
>to green it takes about 2-3 seconds and the whole user session crashes!

In fact this is not even needed. Just wait a few seconds after reaching the
dialog and it crashes!

>Note that my SSH session is still working fine but the VNC totally vanishes.
>
>I have to reconnect (re-login) the VNC session and when I open Lazarus now the
>window arrangement has been screwed up too...
>
>Tests:
>I have tried both VNC server version 6 and version 7 on this RPi4B 32 bit
>device.

WRONG, bad memory...
In fact VNC cannot be reached when using the version 7 shipped with PiOS, one
has to revert to the previous version 6 to get a connection at all...
So this is tested only with the VNC server version 6, shipped with the previous
PiOS version (bullseye). 

>
>And I have also tried Lazarus version 2.2.4 and 2.2.6 with the same exact
>result.
>
>I have never seen Lazarus crash this way before and bringing the whole user
>session down with it...
>
>What can be going on here?
>Maybe I should re-install the whole system from scratch?
>
>It is probably faster than doing this troubleshooting....

Not really....

It took a few hours to erase the drive and restart from scratch to get to the
same place....

And only to discover that the crash is still there as soon as one gets to the
Tools/Options/Editor/Display/Colo dialog to customize text color. 
A few seconds after reaching this dialog the VNC session just dies!

The RPi4B itself continues running so the SSH session is intact, onbly the VNC
session is killed.
And it happens when that spoecific Lazarus options dialog is activated.
Other settings dialogs so far have behaved sensibly.

Note that this time I have not even installed any extra packahes from OLPM or my
own components. Plain Lazarus from sources.

I can get it going on the RPi4B with 64 bit PiOS bookworm, just not with 32
bit....
But I need 32 bit in order to build for the 32 bit family of RPi devices.


Has anyone here managed to get Lazarus 2.2.6 running on a headless Raspberry
Pi4B with 32 bit PiOS bookworm and using VNC to access it?


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list