I see that other people have gotten similar errors in both Delphi (#1, #2) and Lazarus (#1, #2, #3, #4) on StackOverflow, but none of them have it using just a new blank app.
I have a completely brand new blank app in Lazarus, but I keep getting the following error when I close the compiled app:
Project project1 raised exception class 'External: SIGSEGV'. At address 75BFC86FA39E
This errors pops up every time I close the app.
My Form is empty:
And nothing in my Unit except the empty form:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
end.
None of the other questions on StackOverflow are the same as mine, because they're getting errors after doing certain code whereas I have not written any code yet. This is literally just a new blank app.
What could be the cause of this? It's just a standard blank app.
This is my Lazarus Version: Lazarus 4.0 (rev Unknown) FPC 3.2.2 x86_64-linux-qt6
Thanks @zeljan for answering my question in the comments.
Looks like this is a bug in the Lazarus 4.0 IDE with QT6 backend.
It'll be fixed in Lazarus 4.2 Stable: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41470
So if anyone has this issue in the future, just update your Lazarus IDE to the latest version.