Recent

Author Topic: Blank window with a 60sec timeout before any Lazarus/GTK2 app starts  (Read 2416 times)

tkapias

  • Newbie
  • Posts: 2
Distribution : Debian GNU/Linux 11 (bullseye)
Kernel : Linux 5.10.0-8-amd64
GPU : Intel 82G33/G31 (opengl 1.3)
WM : i3wm with picom

Hello,

When I open any Lazarus/GTK2 application, I get a blank window that will timeout after 60 sec and the application will appear then.
If I kill this blank window the application lauch directly and the CRITICAL output resulting from my kill is always the same :

Code: Text  [Select][+][-]
  1. (app_name:1299276): Gtk-CRITICAL **: 19:03:24.607: IA__gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed
  2.  
  3. (app_name:1299276): Gtk-CRITICAL **: 19:03:24.607: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
  4.  

If I wait for the timeout there is no output and everything works fine.

This issue appeared to me when I tried to use Cudatext. I opened an issue with them (https://github.com/Alexey-T/CudaText/issues/3704).

But I got the same issue with any other application using Lazarus and GTK2. No problem with the QT5 version of the same applications.

I tried this demo : http://uvviewsoft.com/c/gtk2_slow/ and took a capture that you can view in the Cudatext issue.

I don't know how to debug this.



zeljko

  • Hero Member
  • *****
  • Posts: 1191
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Blank window with a 60sec timeout before any Lazarus/GTK2 app starts
« Reply #1 on: September 08, 2021, 03:16:16 pm »
Try to start your application with -disableaccurateframe param and see if that helps.

tkapias

  • Newbie
  • Posts: 2
Re: Blank window with a 60sec timeout before any Lazarus/GTK2 app starts
« Reply #2 on: September 08, 2021, 03:44:00 pm »
Thank you, it works.

I found a mention about it here :

- https://wiki.freepascal.org/Lazarus_2.2.0_release_notes
- https://lists.lazarus-ide.org/pipermail/lazarus/2020-April/237833.html

Is it because my i3wm configuration does not draw window frames ?
« Last Edit: September 08, 2021, 03:46:17 pm by tkapias »

zeljko

  • Hero Member
  • *****
  • Posts: 1191
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Blank window with a 60sec timeout before any Lazarus/GTK2 app starts
« Reply #3 on: September 08, 2021, 07:18:00 pm »
Actually I've never tested i3wm in this context, so really don't know.

 

TinyPortal © 2005-2018