Forum > GTK

Blank window with a 60sec timeout before any Lazarus/GTK2 app starts

(1/1)

tkapias:
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  [+][-]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";}};} ---(app_name:1299276): Gtk-CRITICAL **: 19:03:24.607: IA__gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed (app_name:1299276): Gtk-CRITICAL **: 19:03:24.607: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed 
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:
Try to start your application with -disableaccurateframe param and see if that helps.

tkapias:
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 ?

zeljko:
Actually I've never tested i3wm in this context, so really don't know.

mosquito:
I also use i3wm, with and without Compton. I have the same problem, but:

1. -DisableAccurateFrame works. I do not know if this could be declared at compile time or calling during execution.

2. If I run <Shift + Alt + Q>, I kill "something" that is not my program, and this appears magically.This is what I usually do. If I execute the order again, obviously I kill my lazarus application. Resting container, around my program, appeared I have.

3. If I have opened in this workspace any other window, I do not have this problem.

4. If I execute my laz-app in a empty-workspace, I suffer the problem, but I'll press <Alt + Enter> or I open any other window, the program appears and works perfectly. Apparently the problem comes when the Main-Form tries to occupy all the screen space.

* Alt is for super_mod_key
* When the mysterious container appears, apart from the 60 seconds, an incredible CPU consumption.
* While this error occurs, My Rofi : xwm.sh does not say anything, quite mysterious.


--- Code: Bash  [+][-]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";}};} ---#!/bin/shxprop WM_CLASS 
Distribution : Debian GNU/Linux 11 (bullseye)
Kernel : 5.15.0-3-amd64
WM : i3wm with compton

Navigation

[0] Message Index

Go to full version