Recent

Author Topic: Lazaris IDE v4.4 - extremely unstable and buggy!  (Read 1070 times)

backprop

  • Full Member
  • ***
  • Posts: 144
Lazaris IDE v4.4 - extremely unstable and buggy!
« on: February 04, 2026, 11:54:21 pm »
I have notice Lazaris IDE v4.4 on linux (deb installation for Ubuntu/Kubuntu) have multiple issues and is practically useless to work with.

1. When adding multiple panels on the form in form of nested top-client ones and moving components, operations mostly end with an unrecoverable AV (SIGSEG or whatever).

2. It is also not possible on a panel to select all component with rectangle select, but just one by one  and in group using Ctrl+left mouse click.

3. After using default debugger, break debugging session with Ctrl+F2 and trying to edit code, it usually freeze and only what helps is to terminate it from System Monitor.




Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12098
  • Debugger - SynEdit - and more
    • wiki
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #1 on: February 05, 2026, 12:12:12 am »
I don't do much GUI editing on Linux, so I can't comment much. But there is currently an issue when using WAYLAND. And from what I hear that is an issue in wayland itself (but, I don't know / and I don't know if that affects your particular case).
Also, the wayland issues may only present in combination with gtk2... If it was that, you might be able to work with QT5. Or by switching to xserver.

Further more, you should at least let us know if your issue is with or without:
- the docked form editor (form editor is a TAB in the source editor)
- anchordocking




As for debugging I have seen some desktop managers that are implemented "synchronous" for all apps together. So if any one app blocks (in certain events), all other block.
=> that means if you set a breakpoint in a mouse/key/paint handler, then that may freeze the entire desktop. Thought that usually happens while the target app is still paused. I don't know about having killed the target app with Ctrl-F2.

However this does not match your description, so this is likely not the issue you have.

If it was: You could try running the IDE *AND* the debugged app with the command line param --sync
It may or may not help.

There is also a chance that you killed a debugged app while it had a lock an the clipboard. Then you might get an issue the moment when you try to use the clipboard (again I have only seen that while the debugged app is paused, not after killing it). So if your editor freeze is on "copy to clipboard" then that may be something to look at.






When you start the ide from a console/terminal then it will print to the terminal.
If you can get the crash (point 1) then it may print useful info. (Hopefully a stacktrace).


As for point 3 (editor freeze after debug)
You could start again from a console, but this time as
  gdb lazarus
then enter
  r
to run the IDE in gdb.

When it hangs, press ctrl-c in gdb, and enter
bt

that will hopefully report some stacktrace that gives an initial clue what happens.

dbannon

  • Hero Member
  • *****
  • Posts: 3669
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #2 on: February 05, 2026, 04:58:00 am »
I have notice Lazaris IDE v4.4 on linux (deb installation for Ubuntu/Kubuntu) have multiple issues and is practically useless to work with.

backprop, in no way trying to devalue what you say, I do use Lazarus 4.4 on Linux and do not experience the problems you describe. But I do some things differently. My Lazarus 4.4 is built from source (using FPC3.2.3) and lives in my home directory. That avoids a major complication caused by having the LCL files in read only space.

But there are many other Linux users here who probably use the repo versions who would be making a lot of noise if they experienced your problems. So, maybe,  a few suggestions ?
  • Have you run a memcheck ?
  • Tried running a different desktop, ie not Gnome, KDE or Enlightenment. Those are the ones using Wayland and, frankly Wayland is not quite ready yet. Most Wayland using DEs have, preinstalled, libraries that allow GTK2 apps to bypass parts of Wayland but that code is reported to be not getting much love these days.
  • Think about building a Qt6 version of Lazarus ? Install libqt6pas from your repo. Then download the Lazarus 4.4 source, untar/unzip into a directory in your home directory and build it with the command "make clean bigide  LCL_PLATFORM=qt6". Then start Lazarus from that directory (ideally setting a different config path to your existing Lazarus).


Davo

 

 
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

backprop

  • Full Member
  • ***
  • Posts: 144
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #3 on: February 07, 2026, 02:16:58 pm »
I didn't had a time to do anything to track and locate what cause these problems and make minimalist projects which demonstrate all. But I will. Usually that happens with loaded older project and when in some reason IDE collapse. Seems as issues with range problem and some synchronization issues with counting and using components...

What I can add as an info is that I do not use Wayland, I have installed xserver (and use X11), since some applications I have made long time ago with Lazarus doesn't work well with Wayland or not at all, as for instance essential part in some application I use and which should get screenshot with BGRABitmap method, or classical calls with GetDC()...

dbannon

  • Hero Member
  • *****
  • Posts: 3669
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #4 on: February 08, 2026, 10:58:59 am »
Usually that happens with loaded older project and when in some reason IDE collapse.

Older projects  ? Containing compiled units ?  Run Menu -> Clean Up and Build ?

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

CM630

  • Hero Member
  • *****
  • Posts: 1607
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #5 on: February 08, 2026, 11:50:25 am »
I have issues with Lazarus 4.4 disappearing in Windows, but I think  this also happened in 4.2.
I tried to disable GUI in target, so I could use writeln, but this worsened things immensely, because Lazarus started to disappear always.
The built executables run standalone for days and seem to have no intention to disappear.
« Last Edit: February 08, 2026, 11:54:18 am by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

zeljko

  • Hero Member
  • *****
  • Posts: 1828
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #6 on: February 08, 2026, 12:54:12 pm »
I have issues with Lazarus 4.4 disappearing in Windows, but I think  this also happened in 4.2.
I tried to disable GUI in target, so I could use writeln, but this worsened things immensely, because Lazarus started to disappear always.
The built executables run standalone for days and seem to have no intention to disappear.

You are using dockedformeditor and anchordocking ?

CM630

  • Hero Member
  • *****
  • Posts: 1607
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #7 on: February 08, 2026, 01:08:54 pm »
Yes. Since you are asking, maybe you mean that I shall try without them  :o
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

backprop

  • Full Member
  • ***
  • Posts: 144
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #8 on: February 08, 2026, 01:30:55 pm »
Older projects  ? Containing compiled units ?  Run Menu -> Clean Up and Build ?

I'm talking about old source code files and when IDE collapse with AV when moving common components in created new panels. And I have created multiple nested panels and use also splitters in order to be able to resize content (usually placing two panels in one and their alignment are usually alTop and alClient). In some moment, IDE simply collapse with no particular reason during rearranging components in it visually and also probably create mess in files where components are defined...

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #9 on: February 08, 2026, 02:17:13 pm »
One way is, to build a debugversion of Lazarus and start from Commandline. I have seen if you use old code, can have hidden rearrange loops of nested components and the new lazarus is more sensible for such (mabe hidden broken) layouts. You see messages about this only if you start from commandline. 
   
regards
Andreas

zeljko

  • Hero Member
  • *****
  • Posts: 1828
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #10 on: February 08, 2026, 02:35:30 pm »
Yes. Since you are asking, maybe you mean that I shall try without them  :o

Yes, try. I think I've recently fixed that bug with dockedformeditor where content of tabs dissapeared. https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/e73d47b482209b518304495a4c59062de2e89237
So check with trunk lazarus (dockedformeditor), or try without anchord docking and dockedform editor.

CM630

  • Hero Member
  • *****
  • Posts: 1607
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #11 on: February 08, 2026, 08:10:36 pm »
So I shall replace the files in the ...\lazarus\components\dockedformeditor folder with the ones from gitlab and rebuild the IDE?
I will give it a try in the next days and feedback.

Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

n7800

  • Hero Member
  • *****
  • Posts: 600
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #12 on: February 09, 2026, 01:59:11 pm »
Simply replacing files is unsafe. The package also depends on other packages and runs as part of the IDE. You need to install the entire Lazarus trunk version.

Fortunately, this is easy to do without deleting the old version or even changing its configuration. There are many ways, including using FpcUpDeluxe. I hope other users can point you in the right direction if you need help.

CM630

  • Hero Member
  • *****
  • Posts: 1607
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazaris IDE v4.4 - extremely unstable and buggy!
« Reply #13 on: February 09, 2026, 02:30:01 pm »
Indeed, trying to replace only the files resulted in the reinstall of Lazarus.
After the reinstal of Lazarus 4.4 I have disabled docking, but still Lazarus disappeared once. Further attempts did not result in misbehaviour.
Then I re-enabled it, for some reason, the behaviour was much more stable, still, once Lazarus disappeared.
I will keep watching it.


I am aware that FpcUpDeluxe exists, but using it requires some research, and I am not sure that I can justify it currently.
Quote
The installer encountered the following error:
Error inside worker thread for package fpindexer: Failed to delete file "fpindexer\BuildUnit_fpindexer.pp"
make[1]: *** [Makefile:2682: packages_smart] Error 2
make: *** [Makefile:2837: build-stamp.i386-win32] Error 2

fpcupdeluxe: ERROR: FPC Native Installer (BuildModule: FPC): Error running ...\fpcbootstrap\make.exe for FPC failed with exit code 2
. Details: .cupdeluxe fatal error !
« Last Edit: February 09, 2026, 02:40:42 pm by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018