I get sometimes the following error when I click on any IDE window: (lazarus:4991): Gdk-CRITICAL **: gdk_window_get_state: assertion `GDK_IS_WINDOW (window)' failed
What is 4991, and what does this error mean?

Mailing lists / lazarus / 2010-11
5 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I get sometimes the following error when I click on any IDE window: (lazarus:4991): Gdk-CRITICAL **: gdk_window_get_state: assertion `GDK_IS_WINDOW (window)' failed
What is 4991, and what does this error mean?
4991 is I guess your process id.
The error means that we call a function which expects a gdk_window pointer, but we pass something else, probably a nil. It doesn't hurt, since gdk/gtk checkes against nil. It only prints these messages and means that we need to find the call and check for nil.
Marc
You may be able to find out where this is happening by running gdb --args ./lazarus --g-fatal-warnings. GTK will then sigabrt on a warning and you can get a backtrace.
Henry
4991 is I guess your process id. The error means that we call a function which expects a…
This could then mean as well a call with wrong arguments, especially that it rarely occurs.
You may be able to find out where this is happening by running gdb --args ./lazarus…
That will be difficult, especially that its occurrence is very rare.