[Lazarus] Regular Lazarus crash when starting a new project

Michael Van Canneyt michael at freepascal.org
Fri May 10 11:06:28 CEST 2024



On Thu, 9 May 2024, Maxim Ganetsky via lazarus wrote:

>> -----
>> Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 
>> New=x86_64-linux--gtk2 Changed: OS/CPU=True LCL=False
>> ----------------
>> Hint: (lazarus) [TMainIDE.DoOpenProjectFile] 
>> "/home/michael/projects/fresnel/demo/Basic/basic.lpi"
>> Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 
>> New=wasm32-wasi-browser-gtk2 Changed: OS/CPU=True LCL=False
>> The program 'lazarus' received an X Window System error.
>> This probably reflects a bug in the program.
>> The error was 'BadWindow (invalid Window parameter)'.
>>    (Details: serial 111751 error_code 3 request_code 12 minor_code 0)
>>    (Note to programmers: normally, X errors are reported asynchronously;
>>     that is, you will receive the error a while after causing it.
>>     To debug your program, run it with the --sync command line
>>     option to change this behavior. You can then get a meaningful
>>     backtrace from your debugger if you break on the gdk_x_error() 
>> function.)
>> ----
>> 
>> Projects that do not open a project configuration dialog seem unaffected.
>> 
>> I recently switched to using a docked IDE, maybe this has some influence ?
>> 
>> Any hints, things I can try ?
>
> Do I understand correctly that it crashes when you try to open 
> Project->"Create Project ..." or "File"->"Create ..." dialog?

Yes.

>
> It works just fine here with FPC 3.2.2 (in Xfce, but I doubt that it 
> matters in this case). Are you using FPC 3.3.1?

No, I only use FPC 3.2.2 to compile Lazarus, never 3.3.1.

I am not so sure that it is not related to Xfce, I suppose it uses a different window 
manager than Linux Mint ? I had problems with Lazarus and Cinnamon in the
past: more often than not starting a debugging session crashed Cinnamon.
But that improved when I upgraded to Mint 21. Maybe it is a regression in
Cinnamon, but since Lazarus is the only program on my computer that has this 
issue, I tend to look at Lazarus for the cause.

My main problem is that I have no clue how to debug it, maybe the --sync
option as explained in the error message will tell me more.

Michael.


More information about the lazarus mailing list