Forum > Linux

Lazarus shuts down upon Run

<< < (2/2)

Diverod:
Martin_fr
--- Quote ---gdb lazarus
r
--- End quote ---
These are my "terminal" results from gbd lazarus & r:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---rodg@rodg-HP-EliteDesk-705-G4-SFF:~$ cd /usr/share/lazarus/4.2.0/rodg@rodg-HP-EliteDesk-705-G4-SFF:/usr/share/lazarus/4.2.0$ gdb lazarusGNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-gitCopyright (C) 2024 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.Type "show copying" and "show warranty" for details.This GDB was configured as "x86_64-linux-gnu".Type "show configuration" for configuration details.For bug reporting instructions, please see:<https://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and other documentation resources online at:    <http://www.gnu.org/software/gdb/documentation/>. For help, type "help".Type "apropos word" to search for commands related to "word"...Reading symbols from lazarus...(gdb) rStarting program: /usr/share/lazarus/4.2.0/lazarus  This GDB supports auto-downloading debuginfo from the following URLs:  <https://debuginfod.ubuntu.com>Enable debuginfod for this session? (y or [n]) yDebuginfod has been enabled.To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.Downloading separate debug info for system-supplied DSO at 0x7ffff7fc3000Downloading separate debug info for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libgobject-2.0.so.0   warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libgobject-2.0.so.0warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libglib-2.0.so.0warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgthread-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libgthread-2.0.so.0warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libpango-1.0.so.0     Downloading separate debug info for /lib/x86_64-linux-gnu/libcairo.so.2         Downloading separate debug info for /lib/x86_64-linux-gnu/libatk-1.0.so.0       Downloading separate debug info for /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0[Thread debugging using libthread_db enabled]                                   Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgio-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libgio-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libXi.so.6            Downloading separate debug info for /lib/x86_64-linux-gnu/libXrandr.so.2        Downloading separate debug info for /lib/x86_64-linux-gnu/libXcursor.so.1       Downloading separate debug info for /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0  Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb.so.1           Downloading separate debug info for /lib/x86_64-linux-gnu/libpng16.so.16        Downloading separate debug info for /lib/x86_64-linux-gnu/libpcre2-8.so.0       Downloading separate debug info for /lib/x86_64-linux-gnu/libfribidi.so.0       Downloading separate debug info for /lib/x86_64-linux-gnu/libharfbuzz.so.0      Downloading separate debug info for /lib/x86_64-linux-gnu/libfreetype.so.6      Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-render.so.0    Downloading separate debug info for /lib/x86_64-linux-gnu/libxcb-shm.so.0       Downloading separate debug info for /lib/x86_64-linux-gnu/libmount.so.1         Downloading separate debug info for /lib/x86_64-linux-gnu/libselinux.so.1       Downloading separate debug info for /lib/x86_64-linux-gnu/libexpat.so.1         Downloading separate debug info for /lib/x86_64-linux-gnu/libgraphite2.so.3     Downloading separate debug info for /lib/x86_64-linux-gnu/libblkid.so.1         Downloading separate debug info for /lib/x86_64-linux-gnu/libbsd.so.0           Downloading separate debug info for /lib/x86_64-linux-gnu/libmd.so.0            Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libatk-bridge.soDownloading separate debug info for /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0Downloading separate debug info for /lib/x86_64-linux-gnu/libatspi.so.0         Downloading separate debug info for /lib/x86_64-linux-gnu/libsystemd.so.0       Downloading separate debug info for /lib/x86_64-linux-gnu/libcap.so.2           warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2Downloading separate debug info for /lib/x86_64-linux-gnu/libcap.so.2Downloading separate debug info for /lib/x86_64-linux-gnu/libgcrypt.so.20       Downloading separate debug info for /lib/x86_64-linux-gnu/liblzma.so.5          Downloading separate debug info for /lib/x86_64-linux-gnu/libgpg-error.so.0     Gtk-Message: 10:02:22.430: Failed to load module "canberra-gtk-module"          [New Thread 0x7ffff5ece6c0 (LWP 17226)]Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/rodg/.lazarus"Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.soDownloading separate debug info for /lib/x86_64-linux-gnu/libibus-1.0.so.5      Downloading separate debug info for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.sowarning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.soDownloading separate debug info for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.soDownloading separate debug info for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.sowarning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.soDownloading separate debug info for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so[New Thread 0x7fffeffff6c0 (LWP 17244)]                                         [New Thread 0x7fffef7fe6c0 (LWP 17245)][New Thread 0x7fffeeffd6c0 (LWP 17246)][New Thread 0x7fffee7fc6c0 (LWP 17247)][New Thread 0x7fffedffb6c0 (LWP 17248)]Looking for code tools config file:  "/home/rodg/.lazarus/codetoolsoptions.xml"NOTE: codetools config file not found - using defaultsNOTE: help options config file not found - using defaults[Detaching after fork from child process 17249][Detaching after fork from child process 17251][Thread 0x7fffee7fc6c0 (LWP 17247) exited]Hint: (lazarus) [TMainIDE.DoOpenProjectFile] "/home/rodg/Lazarus Projects/Test/project1.lpi"Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux--gtk2 New=x86_64-linux--gtk2 Changed: OS/CPU=True LCL=FalseLoadLFM Creating designer for hidden component of /home/rodg/Lazarus Projects/Test/unit1.pasInitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner******** Highlighter.NeedScan ************Hint: (lazarus) [TMainIDE.DoRunProjectWithDebug] INITHint: (lazarus) Project needs building: Compile was incomplete for Project[Detaching after fork from child process 17280][New Thread 0x7fffee7fc6c0 (LWP 17281)]Info: (lazarus) Execute Title="Compile Project, Target: /home/rodg/Lazarus Projects/Test/project1"Info: (lazarus) Working Directory="/home/rodg/Lazarus Projects/Test/"Info: (lazarus) Executable="/usr/bin/fpc"Info: (lazarus) Param[0]="-MObjFPC"Info: (lazarus) Param[1]="-Scghi"Info: (lazarus) Param[2]="-Cg"Info: (lazarus) Param[3]="-O1"Info: (lazarus) Param[4]="-gw3"Info: (lazarus) Param[5]="-gl"Info: (lazarus) Param[6]="-l"Info: (lazarus) Param[7]="-vewnhibq"Info: (lazarus) Param[8]="-Fi/home/rodg/Lazarus Projects/Test/lib/x86_64-linux"Info: (lazarus) Param[9]="-Fu/home/rodg/Lazarus Projects/Test/"Info: (lazarus) Param[10]="-Fu/usr/share/lazarus/4.2.0/lcl/units/x86_64-linux/gtk2"Info: (lazarus) Param[11]="-Fu/usr/share/lazarus/4.2.0/lcl/units/x86_64-linux"Info: (lazarus) Param[12]="-Fu/usr/share/lazarus/4.2.0/components/freetype/lib/x86_64-linux"Info: (lazarus) Param[13]="-Fu/usr/share/lazarus/4.2.0/components/lazutils/lib/x86_64-linux"Info: (lazarus) Param[14]="-Fu/usr/share/lazarus/4.2.0/packager/units/x86_64-linux"Info: (lazarus) Param[15]="-FU/home/rodg/Lazarus Projects/Test/lib/x86_64-linux/"Info: (lazarus) Param[16]="-FE/home/rodg/Lazarus Projects/Test/"Info: (lazarus) Param[17]="-o/home/rodg/Lazarus Projects/Test/project1"Info: (lazarus) Param[18]="-dLCL"Info: (lazarus) Param[19]="-dLCLgtk2"Info: (lazarus) Param[20]="project1.lpr"[Detaching after fork from child process 17282]lazarus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.[Thread 0x7fffee7fc6c0 (LWP 17281) exited][Thread 0x7fffeeffd6c0 (LWP 17246) exited][Thread 0x7fffef7fe6c0 (LWP 17245) exited][Thread 0x7fffeffff6c0 (LWP 17244) exited][Thread 0x7ffff5ece6c0 (LWP 17226) exited][Thread 0x7ffff69c6980 (LWP 17163) exited][Thread 0x7fffedffb6c0 (LWP 17248) exited][New process 17163][Inferior 1 (process 17163) exited with code 01](gdb) btNo stack.(gdb)  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")
--- End quote ---
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" ?
--- End quote ---
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 ?
--- End quote ---
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.
--- End quote ---
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:

--- Quote from: cdbc 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

--- End quote ---

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:

--- Quote from: Diverod on October 18, 2025, 05:07:38 pm ---....
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.

--- End quote ---
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

zeljko:

--- Quote from: cdbc 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

--- End quote ---

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.


Navigation

[0] Message Index

[*] Previous page

Go to full version