Recent

Author Topic: Ubuntu 22.04 Forms and Lazarus IDE change the background into black (TEdit)  (Read 1922 times)

itblumi

  • New Member
  • *
  • Posts: 29
Hey.

I made a new Virtual Machine with Ubuntu 22.04 and installed Lazarus 2.2.4 with Free Pascal 3.2.2.
The install was without any problems. I have the issue that my created forms turn the background into black and all placed components are not shown anymore, when I place a TEdit at the form.
The same issue happens with the Lazarus IDE it self, for example the object inspector does the same.

In the 1st screenshot it shows how the Lazarus IDE looks like and a form without a TEdit.
In the 2nd screenshot it shows a form with a TEdit.

Have anyone else experienced this issue?
Jan

Delphi XE6, Lazarus 2.2.4, Visual Studio, Eclipse
Platforms: Ubuntu 22.10, Windows 7, 10
Progarmming languages: Pascal, C, C++, C#, Java

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
I'm not an Ubuntu user, but two things since nobody else has commented.

First, where did you get your Lazarus and FPC: downloads from the Lazarus/FPC repositories or via the distro?

Second, somebody else had Ubuntu problems a few days ago which were fixed by reverting to X11. "Advanced Search" is your friend.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

itblumi

  • New Member
  • *
  • Posts: 29
Thx for this information Mark it helped to fix the issue. I reverted to X11 and the Lazarus-IDE bug was fixed. Only my form crashed the OS, because of a sizing error. So I created a new from from scratch and it's now working now.

I had a look in other Linux threads to install Lazarus and downloaded the pages directly from the side, after that I choose Gdebi to install the packages.
So I did the install like described in this topic https://forum.lazarus.freepascal.org/index.php/topic,41524.0.html.
« Last Edit: November 08, 2022, 11:19:13 am by itblumi »
Jan

Delphi XE6, Lazarus 2.2.4, Visual Studio, Eclipse
Platforms: Ubuntu 22.10, Windows 7, 10
Progarmming languages: Pascal, C, C++, C#, Java

tk

  • Sr. Member
  • ****
  • Posts: 361
Any news on this, 2024 and this issue still persists.
Any method to fix this without having to switch to X11?
The issue also persists for apps created by Lazarus.
I assume Wayland is the default now and we just do not want to force users to reconfigure their OS because of our app?
« Last Edit: January 31, 2024, 12:32:47 pm by tk »

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
There's no solution for gtk2 and newest wayland. Try to use Qt5 or Qt6 ide.

tk

  • Sr. Member
  • ****
  • Posts: 361
There's no solution for gtk2 and newest wayland. Try to use Qt5 or Qt6 ide.

Yep, I'll evaluate.
Do you know if this is a Wayland issue or a Lazarus GTK2 interface issue?
Just to argue somehow to our app users...
Thanks

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
There's no solution for gtk2 and newest wayland. Try to use Qt5 or Qt6 ide.

Programs- many programs, not just LCL-based ones- running on Debian+KDE (which is Qt-based) on top of X11 also feature black-on-black menu boxes on occasion :-/

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
I guess, you mean gtk2 programs under KDE, not qt programs.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
I guess, you mean gtk2 programs under KDE, not qt programs.

Affects KDE's own menus etc. on occasion.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018