kc4le
September 1, 2022, 4:38pm
1
I am seeing multiple instances of the following message in the Gpredict terminal window. I am running a newly installed Ubuntu 22.04 LTS and Gpredict installed from the Ubuntu Software app.
(gpredict:5692): Gdk-CRITICAL **: 11:22:46.987: gdk_monitor_get_workarea: assertion ‘GDK_IS_MONITOR (monitor)’ failed
Does anyone know what this could be? I have done various searches but have not discovered anything pertinent.
Thanks in advance for any help.
Red - KC4LE
w1nca
June 30, 2025, 5:56am
2
Did you solve this problem?
I encountered the same now.
SA2KNG
June 30, 2025, 6:48pm
3
Haven’t looked too cafully at my logs… Does this crash or cause anything bad ?
Is it related to multiple monitors, or when shutting the monitor down ?
Here’s the two places I see that calls that function:
#else
GdkWindow *window;
GdkDisplay *display;
GdkMonitor *monitor;
GdkRectangle work_area;
/* https://gitlab.gnome.org/GNOME/gtk/-/issues/1028 */
window = gtk_widget_get_window(widget);
display = gtk_widget_get_display(widget);
monitor = gdk_display_get_monitor_at_window(display, window);
gdk_monitor_get_workarea(monitor, &work_area);
w = work_area.width;
h = work_area.height;
#endif
if (x < 0 || y < 0 || x + event->width > w || y + event->height > h)
{
return FALSE;
}
}
#endif
/* don't save off-screen positioning */
/* gtk_menu_popup got deprecated in 3.22, first available in Ubuntu 18.04 */
#if GTK_MINOR_VERSION < 22
w = gdk_screen_width();
h = gdk_screen_height();
#else
GdkRectangle work_area;
gdk_monitor_get_workarea(gdk_display_get_primary_monitor(gdk_display_get_default()),
&work_area);
w = work_area.width;
h = work_area.height;
#endif
if (x < 0 || y < 0 || x + event->width > w || y + event->height > h)
{
return FALSE;
}