Recent

Author Topic: GUI not visible with a x11 served UI  (Read 3606 times)

guest58172

  • Guest
GUI not visible with a x11 served UI
« on: May 25, 2017, 11:08:13 am »
I basically throw a bottle to the sea. Yesterday someone has left an issue for a software made with Lazarus. The software runs in a particular Linux environment and the GUI is not visible:

Quote
We have a LTSP linux terminal sever environment with (up to 5) small WYSE thin clients on the desktop and just one 8 core 12 GB ram server. So all apps are running on the server and are displayed on a X11.terminal. And the thin clients are booting via LAN. No disks.

The reporter also stated that there's no output in the terminal, which is not normal. The most basic Lazarus program outputs something related to GObject.

What can i do ?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4468
  • I like bugs.
Re: GUI not visible with a x11 served UI
« Reply #1 on: May 25, 2017, 11:31:24 am »
Is it an LCL application or a plain cmd line program?
It is not clear from the explanation. You write about terminal but GObject is part of GTK and GUI applications.
AFAIK a cmd line program writes to terminal only when you explicitly tell it to.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

guest58172

  • Guest
Re: GUI not visible with a x11 served UI
« Reply #2 on: May 25, 2017, 11:52:22 am »
it's an LCL application. The GObject thing is not related it was solely used to illustrate the fact that something is always written to the console when you launch a LCL application from the console.


Quote
GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
is always writen to the console , even for a LCL app.

guest58172

  • Guest
Re: GUI not visible with a x11 served UI
« Reply #3 on: May 25, 2017, 11:57:25 am »
x11 protocol allows to serve the UI over the network, which is, i believe, the issue.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: GUI not visible with a x11 served UI
« Reply #4 on: May 25, 2017, 02:31:35 pm »
If some idiot does not have QT installed and the QT widgetset is used or the lazarus application is written for GTK or GTK2 and GTK is not installed or ... or the other way around, of course you don't see anything. (But is should crash) Check the platform. Or use a widget set like Ownerdrawn, which targets X11 directly on Linux.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

guest58172

  • Guest
Re: GUI not visible with a x11 served UI
« Reply #5 on: May 25, 2017, 02:39:17 pm »
No the guy has checked rather twice than once that gtk2 runtime libraries are setup.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: GUI not visible with a x11 served UI
« Reply #6 on: May 25, 2017, 03:02:53 pm »
No the guy has checked rather twice than once that gtk2 runtime libraries are setup.
If you are using X11 then BOTH computers should have X11 setup. Both as a client and as a server.
Can it be the case that one of the computers is setup as a bare bone linux (without X)?
And for both QT and GTK you still need X.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: GUI not visible with a x11 served UI
« Reply #7 on: May 25, 2017, 03:19:08 pm »
Or maybe the GTK on the system has been compiled without certain debug features that cause the output.

guest58172

  • Guest
Re: GUI not visible with a x11 served UI
« Reply #8 on: May 25, 2017, 03:21:35 pm »
No, he got gtk2 vanilla from apt get.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: GUI not visible with a x11 served UI
« Reply #9 on: May 25, 2017, 03:23:23 pm »
On BOTH computers?
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018