Recent

Author Topic: Lazarus shuts down upon Run  (Read 666 times)

Diverod

  • New Member
  • *
  • Posts: 10
Lazarus shuts down upon Run
« on: October 17, 2025, 08:08:39 pm »
lazarus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

This is on a “new to me” computer.
Laz 3.4, Laz 4.2.0-0 and FPCDeluxe Laz 3.6 all exhibit the same symptom.
All of these have installed with no errors.
When I try to Run a project the app itself terminates.
When I install an on-line package everything goes as normal until it rebuilds the IDE at which point it terminates and the package is not seen upon restart.
Apps such as Qt6 Creator and FreeCad work fine.
Laz 3.4 worked fine on my old Lenovo laptop.

My research: “If the error is triggered by a specific action within the IDE, such as running a project, it may be linked to how the IDE manages its own processes or threads for compilation and execution, potentially requiring a review of the project's configuration or the use of external tools that interact with the X server.

This error can occur due to several underlying causes, often involving improper handling of the X server connection, particularly in multithreaded or multiprocessing scenarios.”

Also, if I change from Wayland to X11 the error causes the computer to instantly lock up upon Run and has to be manually powered down to recover.

I have no idea how or if I can proceed from here. I’m running Qt in the meantime but I would much, much rather be using Lazarus. Guessing it has something  to do with my graphics card and hoping there might be a way around the errror.

Below I’ve listed my system specs and terminal output when Laz is started from the command line:
-------------------------------------------------
Model: HP HP EliteDesk 705 G4 SFF
Memory: 8.0 GiB
Processor: AMD Ryzen™ 7 PRO 2700 × 16

Graphics: OLAND
        AMD Radeon R7 430 2GB LP 2DP PCIe x16 GF
        Supports OpenGL 4.4 and DirectX 12 applications

Firmware Version: Q19 Ver. 02.24.01
OS Name: Ubuntu 24.04.3 LTS
OS Type: 64-bit
GNOME Version: 46
Windowing System: Wayland
Kernel Version: Linux 6.14.0-33-generic
-------------------------------------------------

Terminal Output on Start:
Code: Pascal  [Select][+][-]
  1. rodg@rodg-HP-EliteDesk-705-G4-SFF:~$ startlazarus
  2. Gtk-Message: 11:21:17.382: Failed to load module "canberra-gtk-module"
  3. Info: (startlazarus) [TLazarusManager.Run] starting /usr/share/lazarus/4.2.0/lazarus ...
  4. Info: (startlazarus) [TLazarusManager.Run] exe=/usr/share/lazarus/4.2.0/lazarus Params=[--started-by-startlazarus
  5. --no-splash-screen
  6. --force-new-instance
  7. ]
  8. Gtk-Message: 11:21:17.445: Failed to load module "canberra-gtk-module"
  9. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/rodg/.lazarus"
  10. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
  11. Looking for code tools config file:  "/home/rodg/.lazarus/codetoolsoptions.xml"
  12. NOTE: codetools config file not found - using defaults
  13. NOTE: help options config file not found - using defaults
  14. Hint: (lazarus) [TMainIDE.DoOpenProjectFile] "/home/rodg/Lazarus Projects/Test/project1.lpi"
  15. Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 New=x86_64-linux--gtk2 Changed: OS/CPU=True LCL=False
  16. LoadLFM Creating designer for hidden component of /home/rodg/Lazarus Projects/Test/unit1.pas
  17. InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
  18. ******** Highlighter.NeedScan ************
Lazarus opens and displays all windows as normal, Form and Source Editor function as normal
Terminal Output on Run project:
Code: Pascal  [Select][+][-]
  1. Hint: (lazarus) [TMainIDE.DoRunProjectWithDebug] INIT
  2. Hint: (lazarus) Project needs building: Compile was incomplete for Project
  3. Info: (lazarus) Execute Title="Compile Project, Target: /home/rodg/Lazarus Projects/Test/project1"
  4. Info: (lazarus) Working Directory="/home/rodg/Lazarus Projects/Test/"
  5. Info: (lazarus) Executable="/usr/bin/fpc"
  6. Info: (lazarus) Param[0]="-MObjFPC"
  7. Info: (lazarus) Param[1]="-Scghi"
  8. Info: (lazarus) Param[2]="-Cg"
  9. Info: (lazarus) Param[3]="-O1"
  10. Info: (lazarus) Param[4]="-gw3"
  11. Info: (lazarus) Param[5]="-gl"
  12. Info: (lazarus) Param[6]="-l"
  13. Info: (lazarus) Param[7]="-vewnhibq"
  14. Info: (lazarus) Param[8]="-Fi/home/rodg/Lazarus Projects/Test/lib/x86_64-linux"
  15. Info: (lazarus) Param[9]="-Fu/home/rodg/Lazarus Projects/Test/"
  16. Info: (lazarus) Param[10]="-Fu/usr/share/lazarus/4.2.0/lcl/units/x86_64-linux/gtk2"
  17. Info: (lazarus) Param[11]="-Fu/usr/share/lazarus/4.2.0/lcl/units/x86_64-linux"
  18. Info: (lazarus) Param[12]="-Fu/usr/share/lazarus/4.2.0/components/freetype/lib/x86_64-linux"
  19. Info: (lazarus) Param[13]="-Fu/usr/share/lazarus/4.2.0/components/lazutils/lib/x86_64-linux"
  20. Info: (lazarus) Param[14]="-Fu/usr/share/lazarus/4.2.0/packager/units/x86_64-linux"
  21. Info: (lazarus) Param[15]="-FU/home/rodg/Lazarus Projects/Test/lib/x86_64-linux/"
  22. Info: (lazarus) Param[16]="-FE/home/rodg/Lazarus Projects/Test/"
  23. Info: (lazarus) Param[17]="-o/home/rodg/Lazarus Projects/Test/project1"
  24. Info: (lazarus) Param[18]="-dLCL"
  25. Info: (lazarus) Param[19]="-dLCLgtk2"
  26. Info: (lazarus) Param[20]="project1.lpr"
  27. lazarus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
  28. rodg@rodg-HP-EliteDesk-705-G4-SFF:~$
I understand that this may not be resolvable but I thought I'd at least post about it as my knowledge is very limited.
Thanks for your time.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11799
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus shuts down upon Run
« Reply #1 on: October 17, 2025, 08:24:50 pm »
I am not very familiar with QT, Gtk, Xserver/wayland issues...

But two answers.

1) Not to your core problem:
Quote
Also, if I change from Wayland to X11 the error causes the computer to instantly lock up upon Run and has to be manually powered down to recover.
This may or may not be related to the rest of your issues.
If that happens to be a separate issue, then try to run lazarus with
Code: Text  [Select][+][-]
  1. ./lazarus --sync
And also in "run > run params" add "--sync" as argument to the debugged app.

Mind: if you did rebuild your IDE (added packages) then your lazarus executable is somewhere in ~/.lazarus/
Usually, if you run "startlazarus" that will find it for you.

Hangs like this, have been seen, but usually only if there are breakpoints in mouse/key/paint/... events. However, who knows if something causes the debugger to pause the app at startup.

Basically (AFAIK), if the debugger keeps the app paused in an event received from gtk/x-server, then the entire xserver will wait for this to continue. But it never will, if the debugger waits for GUI input....

2) " Fatal IO error 11 (Resource temporarily unavailable) on X server :0."

With a bit of luck that should be possible to trace.
Well, it needs an IDE build with debug info, so you may have to rebuild....

Start your IDE with
Code: Text  [Select][+][-]
  1. gdb lazarus
  2. r
  3.  
"r" is "run" and you enter it (followed by return) when gdb has loaded. If gdb asks about downloading dbg info, or syncing stuff, answer NO.

Then when the IO error happens, most likely (hopefully) gdb will pause the app. If it does enter
Code: Text  [Select][+][-]
  1. bt

If that has unit names and line numbers => good.

If not, you need to first rebuild your IDE with -gw (in Tools > Configure build Lazarus :: in the memo "Custom options")

If gdb does not stop at the IO error, then its a bit more complex.




Also: Do you get the error if you choose "run without debugger" ?

cdbc

  • Hero Member
  • *****
  • Posts: 2464
    • http://www.cdbc.dk
Re: Lazarus shuts down upon Run
« Reply #2 on: October 17, 2025, 08:31:49 pm »
Hi
· Is it at all possible to run GTK2 on this new an Ubuntu?!? I think they do 3/4
· Can GTK2 handle Wayland?!?  -- I have my serious doubts
Try to get answers to these questions and then report back...  :)
Personally I'm running PCLinuxOS, which is a rolling release distro, so FPC & Lazarus can indeed run with the latest. Mind you, I have Lazarus compiled for QT6...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6 -> FPC 3.2.2 -> Lazarus 4.0 up until Jan 2025 from then on it's both above &: KDE6/QT6 -> FPC 3.3.1 -> Lazarus 4.99

dbannon

  • Hero Member
  • *****
  • Posts: 3556
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus shuts down upon Run
« Reply #3 on: October 18, 2025, 07:56:06 am »
I have GTK2 Lazarus 4.2 running on a U24.04 VM, used it to build my app in Qt5 as a test, no problems.

That was built from source, not from Ubuntu repo. And using the FPC 3.2.4 release candidate, not the old FPC322 available from Ubuntu.

I'd be very surprised if it was not happy with the GTK2 but possible, the big distros want to abandon GTK2.

Or are you running a Qt5 or Qt6 Lazarus ? I note you mention Qt6 creator ?

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

Thaddy

  • Hero Member
  • *****
  • Posts: 18321
  • Here stood a man who saw the Elbe and jumped it.
Re: Lazarus shuts down upon Run
« Reply #4 on: October 18, 2025, 09:55:52 am »
Hi
· Is it at all possible to run GTK2 on this new an Ubuntu?!? I think they do 3/4
If you use fpcupdeluxe the dependencies will be installed and Ubuntu still has GTK2 in its repositories (like Debian).
I think that the packaging of the apt installs for fpc and lazarus will also install it automatically.

The orginal question:
Quote
lazarus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
has nothing to do with GTK2 but is again a Wayland issue. Wayland's X-server concept is non-existing (by design) or very poor (as a bolt-on).
But you can change to Xwayland.
« Last Edit: October 18, 2025, 09:59:42 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Diverod

  • New Member
  • *
  • Posts: 10
Re: Lazarus shuts down upon Run
« Reply #5 on: October 18, 2025, 05:07:38 pm »
Martin_fr
Quote
gdb lazarus
r
These are my "terminal" results from gbd lazarus & r:
Code: Pascal  [Select][+][-]
  1. rodg@rodg-HP-EliteDesk-705-G4-SFF:~$ cd /usr/share/lazarus/4.2.0/
  2. rodg@rodg-HP-EliteDesk-705-G4-SFF:/usr/share/lazarus/4.2.0$ gdb lazarus
  3. GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
  4. Copyright (C) 2024 Free Software Foundation, Inc.
  5. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  6. This is free software: you are free to change and redistribute it.
  7. There is NO WARRANTY, to the extent permitted by law.
  8. Type "show copying" and "show warranty" for details.
  9. This GDB was configured as "x86_64-linux-gnu".
  10. Type "show configuration" for configuration details.
  11. For bug reporting instructions, please see:
  12. <https://www.gnu.org/software/gdb/bugs/>.
  13. Find the GDB manual and other documentation resources online at:
  14.     <http://www.gnu.org/software/gdb/documentation/>.
  15.  
  16. For help, type "help".
  17. Type "apropos word" to search for commands related to "word"...
  18. Reading symbols from lazarus...
  19. (gdb) r
  20. Starting program: /usr/share/lazarus/4.2.0/lazarus
  21.  
  22. This GDB supports auto-downloading debuginfo from the following URLs:
  23.   <https://debuginfod.ubuntu.com>
  24. Enable debuginfod for this session? (y or [n]) y
  25. Debuginfod has been enabled.
  26. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
  27. Downloading separate debug info for system-supplied DSO at 0x7ffff7fc3000
  28. Downloading separate debug info for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
  29. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
  30. Downloading separate debug info for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
  31. Downloading separate debug info for /lib/x86_64-linux-gnu/libgobject-2.0.so.0  
  32. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
  33. Downloading separate debug info for /lib/x86_64-linux-gnu/libgobject-2.0.so.0
  34. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0
  35. Downloading separate debug info for /lib/x86_64-linux-gnu/libglib-2.0.so.0
  36. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgthread-2.0.so.0
  37. Downloading separate debug info for /lib/x86_64-linux-gnu/libgthread-2.0.so.0
  38. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
  39. Downloading separate debug info for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0
  40. Downloading separate debug info for /lib/x86_64-linux-gnu/libpango-1.0.so.0    
  41. Downloading separate debug info for /lib/x86_64-linux-gnu/libcairo.so.2        
  42. Downloading separate debug info for /lib/x86_64-linux-gnu/libatk-1.0.so.0      
  43. Downloading separate debug info for /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
  44. [Thread debugging using libthread_db enabled]                                  
  45. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  46. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgio-2.0.so.0
  47. Downloading separate debug info for /lib/x86_64-linux-gnu/libgio-2.0.so.0
  48. Downloading separate debug info for /lib/x86_64-linux-gnu/libXi.so.6            
  49. Downloading separate debug info for /lib/x86_64-linux-gnu/libXrandr.so.2        
  50. Downloading separate debug info for /lib/x86_64-linux-gnu/libXcursor.so.1      
  51. Downloading separate debug info for /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0  
  52. Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb.so.1          
  53. Downloading separate debug info for /lib/x86_64-linux-gnu/libpng16.so.16        
  54. Downloading separate debug info for /lib/x86_64-linux-gnu/libpcre2-8.so.0      
  55. Downloading separate debug info for /lib/x86_64-linux-gnu/libfribidi.so.0      
  56. Downloading separate debug info for /lib/x86_64-linux-gnu/libharfbuzz.so.0      
  57. Downloading separate debug info for /lib/x86_64-linux-gnu/libfreetype.so.6      
  58. Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-render.so.0    
  59. Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-shm.so.0      
  60. Downloading separate debug info for /lib/x86_64-linux-gnu/libmount.so.1        
  61. Downloading separate debug info for /lib/x86_64-linux-gnu/libselinux.so.1      
  62. Downloading separate debug info for /lib/x86_64-linux-gnu/libexpat.so.1        
  63. Downloading separate debug info for /lib/x86_64-linux-gnu/libgraphite2.so.3    
  64. Downloading separate debug info for /lib/x86_64-linux-gnu/libblkid.so.1        
  65. Downloading separate debug info for /lib/x86_64-linux-gnu/libbsd.so.0          
  66. Downloading separate debug info for /lib/x86_64-linux-gnu/libmd.so.0            
  67. Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libatk-bridge.so
  68. Downloading separate debug info for /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0
  69. Downloading separate debug info for /lib/x86_64-linux-gnu/libatspi.so.0        
  70. Downloading separate debug info for /lib/x86_64-linux-gnu/libsystemd.so.0      
  71. Downloading separate debug info for /lib/x86_64-linux-gnu/libcap.so.2          
  72. warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
  73. Downloading separate debug info for /lib/x86_64-linux-gnu/libcap.so.2
  74. Downloading separate debug info for /lib/x86_64-linux-gnu/libgcrypt.so.20      
  75. Downloading separate debug info for /lib/x86_64-linux-gnu/liblzma.so.5          
  76. Downloading separate debug info for /lib/x86_64-linux-gnu/libgpg-error.so.0    
  77. Gtk-Message: 10:02:22.430: Failed to load module "canberra-gtk-module"          
  78. [New Thread 0x7ffff5ece6c0 (LWP 17226)]
  79. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/rodg/.lazarus"
  80. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
  81. Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
  82. Downloading separate debug info for /lib/x86_64-linux-gnu/libibus-1.0.so.5      
  83. Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
  84. warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
  85. Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
  86. Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
  87. warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
  88. Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
  89. [New Thread 0x7fffeffff6c0 (LWP 17244)]                                        
  90. [New Thread 0x7fffef7fe6c0 (LWP 17245)]
  91. [New Thread 0x7fffeeffd6c0 (LWP 17246)]
  92. [New Thread 0x7fffee7fc6c0 (LWP 17247)]
  93. [New Thread 0x7fffedffb6c0 (LWP 17248)]
  94. Looking for code tools config file:  "/home/rodg/.lazarus/codetoolsoptions.xml"
  95. NOTE: codetools config file not found - using defaults
  96. NOTE: help options config file not found - using defaults
  97. [Detaching after fork from child process 17249]
  98. [Detaching after fork from child process 17251]
  99. [Thread 0x7fffee7fc6c0 (LWP 17247) exited]
  100. Hint: (lazarus) [TMainIDE.DoOpenProjectFile] "/home/rodg/Lazarus Projects/Test/project1.lpi"
  101. Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 New=x86_64-linux--gtk2 Changed: OS/CPU=True LCL=False
  102. LoadLFM Creating designer for hidden component of /home/rodg/Lazarus Projects/Test/unit1.pas
  103. InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
  104. ******** Highlighter.NeedScan ************
  105. Hint: (lazarus) [TMainIDE.DoRunProjectWithDebug] INIT
  106. Hint: (lazarus) Project needs building: Compile was incomplete for Project
  107. [Detaching after fork from child process 17280]
  108. [New Thread 0x7fffee7fc6c0 (LWP 17281)]
  109. Info: (lazarus) Execute Title="Compile Project, Target: /home/rodg/Lazarus Projects/Test/project1"
  110. Info: (lazarus) Working Directory="/home/rodg/Lazarus Projects/Test/"
  111. Info: (lazarus) Executable="/usr/bin/fpc"
  112. Info: (lazarus) Param[0]="-MObjFPC"
  113. Info: (lazarus) Param[1]="-Scghi"
  114. Info: (lazarus) Param[2]="-Cg"
  115. Info: (lazarus) Param[3]="-O1"
  116. Info: (lazarus) Param[4]="-gw3"
  117. Info: (lazarus) Param[5]="-gl"
  118. Info: (lazarus) Param[6]="-l"
  119. Info: (lazarus) Param[7]="-vewnhibq"
  120. Info: (lazarus) Param[8]="-Fi/home/rodg/Lazarus Projects/Test/lib/x86_64-linux"
  121. Info: (lazarus) Param[9]="-Fu/home/rodg/Lazarus Projects/Test/"
  122. Info: (lazarus) Param[10]="-Fu/usr/share/lazarus/4.2.0/lcl/units/x86_64-linux/gtk2"
  123. Info: (lazarus) Param[11]="-Fu/usr/share/lazarus/4.2.0/lcl/units/x86_64-linux"
  124. Info: (lazarus) Param[12]="-Fu/usr/share/lazarus/4.2.0/components/freetype/lib/x86_64-linux"
  125. Info: (lazarus) Param[13]="-Fu/usr/share/lazarus/4.2.0/components/lazutils/lib/x86_64-linux"
  126. Info: (lazarus) Param[14]="-Fu/usr/share/lazarus/4.2.0/packager/units/x86_64-linux"
  127. Info: (lazarus) Param[15]="-FU/home/rodg/Lazarus Projects/Test/lib/x86_64-linux/"
  128. Info: (lazarus) Param[16]="-FE/home/rodg/Lazarus Projects/Test/"
  129. Info: (lazarus) Param[17]="-o/home/rodg/Lazarus Projects/Test/project1"
  130. Info: (lazarus) Param[18]="-dLCL"
  131. Info: (lazarus) Param[19]="-dLCLgtk2"
  132. Info: (lazarus) Param[20]="project1.lpr"
  133. [Detaching after fork from child process 17282]
  134. lazarus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
  135. [Thread 0x7fffee7fc6c0 (LWP 17281) exited]
  136. [Thread 0x7fffeeffd6c0 (LWP 17246) exited]
  137. [Thread 0x7fffef7fe6c0 (LWP 17245) exited]
  138. [Thread 0x7fffeffff6c0 (LWP 17244) exited]
  139. [Thread 0x7ffff5ece6c0 (LWP 17226) exited]
  140. [Thread 0x7ffff69c6980 (LWP 17163) exited]
  141. [Thread 0x7fffedffb6c0 (LWP 17248) exited]
  142. [New process 17163]
  143. [Inferior 1 (process 17163) exited with code 01]
  144. (gdb) bt
  145. No stack.
  146. (gdb)
  147.  
Unfortunately bt returns No stack.
Quote
If not, you need to first rebuild your IDE with -gw (in Tools > Configure build Lazarus :: in the memo "Custom options")
When I try to rebuild with -gw in Tools Lazarus disappears from the screen but the process is still running in Terminal.
Quote
Also: Do you get the error if you choose "run without debugger" ?
Yes, error still happens if "run without debugger" is chosen.

dbannon
Quote
Or are you running a Qt5 or Qt6 Lazarus ? I note you mention Qt6 creator ?
I'm running Lazarus 4.2 FPC 3.2.2 x86_64-linux-gtk2.
I installed Qt Creator mainly just to see if it would run. I had installed it previously on my old Lenovo laptop running Ubuntu 24.04 and liked Lazarus so much better I'd stopped using it. Currently installed on this computer is Qt Creator 17.0.2 Built on Sep 29 2025 00:08:56 based on Qt 6.9.2 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)

Thaddy
Quote
has nothing to do with GTK2 but is again a Wayland issue. Wayland's X-server concept is non-existing (by design) or very poor (as a bolt-on).
But you can change to Xwayland.
Yes, Wayland has caused some issues for sure. Initially I switched back from Wayland to X11 on my old laptop running ubuntu 22.04 but it seemed that they were going to push Wayland with Ununtu 24.04 so I'd been running Wayland on the old laptop since upgrading it to 24.04 and just been tolerating some things I didn't like. Lazarus always ran great on the old laptop, it was just really slow when runnning my CAD program, thus the switch to a "newer for me" computer.
I have tried switching to X11 on this unit and when on X11 this unit will lockup when I try to run or build within the Lazarus IDE requiring a manul power off/on to recover.

On a side note: I noticed that with my previous Lazarus built apps, any apps that were built with more than 1 Form will not run on this unit. The single Form apps work just fine.

Thanks for all your time. I've tried to answer the best I can. Much of this is way over my experance level.

Diverod

  • New Member
  • *
  • Posts: 10
Re: Lazarus shuts down upon Run
« Reply #6 on: October 18, 2025, 10:00:15 pm »
Hi
· Is it at all possible to run GTK2 on this new an Ubuntu?!? I think they do 3/4
· Can GTK2 handle Wayland?!?  -- I have my serious doubts
Try to get answers to these questions and then report back...  :)
Personally I'm running PCLinuxOS, which is a rolling release distro, so FPC & Lazarus can indeed run with the latest. Mind you, I have Lazarus compiled for QT6...
Regards Benny

Benny, Thank You :D. I've seen the Lazarus QT6 talked about but never looked into it. While looking through how to do this I saw talk of how QT disabled X11 calls or threads (or something along those lines, wish I would have copied that) so it seemed worth pursuing. I installed fpcupdeluxe-x86_64-linux-qt6 from the zip file and now Lazarus IDE runs great for me after compiling and running a small test project.

Thanks to all for replying to this post!

dbannon

  • Hero Member
  • *****
  • Posts: 3556
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus shuts down upon Run
« Reply #7 on: October 19, 2025, 09:13:48 am »
....
On a side note: I noticed that with my previous Lazarus built apps, any apps that were built with more than 1 Form will not run on this unit. The single Form apps work just fine.
Diverod, I suggest you install tomboy-ng, its in the Ubuntu repo and will almost certainly allow multi windows. Install it, start it up, see multiple windows, close and remove it. It might leave a small config file that will not worry you.

Thats a Qt5 app, there is also a GTK2 version in the github repo, below.

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

zeljko

  • Hero Member
  • *****
  • Posts: 1792
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus shuts down upon Run
« Reply #8 on: October 19, 2025, 09:33:27 am »
Hi
· Is it at all possible to run GTK2 on this new an Ubuntu?!? I think they do 3/4
· Can GTK2 handle Wayland?!?  -- I have my serious doubts
Try to get answers to these questions and then report back...  :)
Personally I'm running PCLinuxOS, which is a rolling release distro, so FPC & Lazarus can indeed run with the latest. Mind you, I have Lazarus compiled for QT6...
Regards Benny

1.Gtk2 can run if x11 libs are installed.
2.Gtk2 CANNOT handle wayland.

Let's clarify a bit:
  gtk1,gtk2,qt4 - x11 only widgetsets under linux
  gtk3, qt5, qt6: x11/wayland widgetsets under linux

Distant future: gtk4, qt7 - wayland only.



 

TinyPortal © 2005-2018