Backtrace to where the invalid rectangle was calculated:

#3  0x00007ffff784e087 in update_opaque_region (window=0x690230, border=0x7fffffffcfc0, allocation=0x7fffffffd020) at gtkwindow.c:6918
#4  0x00007ffff784e146 in update_realized_window_properties (window=0x690230, child_allocation=0x7fffffffd020, window_border=0x7fffffffcfc0) at gtkwindow.c:6942
#5  0x00007ffff784ed5e in gtk_window_realize (widget=0x690230) at gtkwindow.c:7211
#6  0x00007ffff5d16034 in _g_closure_invoke_va (closure=0x7ffff20fbe10 <__PRETTY_FUNCTION__.5035>, closure@entry=0x6174d0, return_value=0x7ffff20fbaff, return_value@entry=0x0, instance=0x17, in
stance@entry=0x690230, args=0x3, args@entry=0x7fffffffd2c8, n_params=-8, param_types=0x7187d0) at gclosure.c:831
#7  0x00007ffff5d2feb8 in g_signal_emit_valist (instance=0x690230, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7fffffffd2c8) at gsignal.c:3214
#8  0x00007ffff5d307b2 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at gsignal.c:3361
#9  0x00007ffff78262fa in gtk_widget_realize (widget=0x690230) at gtkwidget.c:5537
#10 0x00007ffff784bb5e in gtk_window_show (widget=0x690230) at gtkwindow.c:5924
#11 0x00007ffff5d15e05 in g_closure_invoke (closure=0x608b40, return_value=0x0, n_param_values=1, param_values=0x7fffffffd6d0, invocation_hint=0x7fffffffd670) at gclosure.c:768
#12 0x00007ffff5d276f3 in signal_emit_unlocked_R (node=node@entry=0x61a630, detail=detail@entry=0, instance=instance@entry=0x690230, emission_return=emission_return@entry=0x0, instance_and_para
ms=instance_and_params@entry=0x7fffffffd6d0) at gsignal.c:3479
#13 0x00007ffff5d30585 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd848) at gsignal.c:3305
#14 0x00007ffff5d307b2 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at gsignal.c:3361
#15 0x00007ffff7824ce1 in gtk_widget_show (widget=0x690230) at gtkwidget.c:4874
#16 0x00007ffff755ea59 in gtk_container_show_all (widget=0x690230) at gtkcontainer.c:3491
#17 0x00007ffff782529d in gtk_widget_show_all (widget=0x690230) at gtkwidget.c:5040
#18 0x00000000004009e9 in main ()



Stacktrace to first get_shadow_width (that does an early out when checking whether client side shadows are active or not).


#0  get_shadow_width (widget=0x690230, shadow_width=0x7fffffffcfb0) at gtkwindow.c:6502
#1  0x00007ffff78516f7 in gtk_window_get_preferred_height (widget=0x690230, minimum_size=0x7fffffffd054, natural_size=0x7fffffffd050) at gtkwindow.c:8453
#2  0x00007ffff7735ec2 in gtk_widget_query_size_for_orientation (widget=0x690230, orientation=GTK_ORIENTATION_VERTICAL, for_size=-1, minimum_size=0x7fffffffd1fc, natural_size=0x7fffffffd1f8, mi
nimum_baseline=0x0, natural_baseline=0x0) at gtksizerequest.c:218
#3  0x00007ffff7736539 in gtk_widget_compute_size_for_orientation (widget=0x690230, orientation=GTK_ORIENTATION_VERTICAL, for_size=-1, minimum=0x7fffffffd1fc, natural=0x7fffffffd1f8, minimum_ba
seline=0x0, natural_baseline=0x0) at gtksizerequest.c:390
#4  0x00007ffff7736c80 in gtk_widget_get_preferred_height_and_baseline_for_width (widget=0x690230, width=-1, minimum_height=0x7fffffffd1fc, natural_height=0x7fffffffd1f8, minimum_baseline=0x0,
natural_baseline=0x0) at gtksizerequest.c:639
#5  0x00007ffff7736df1 in _gtk_widget_get_preferred_size_and_baseline (widget=0x690230, minimum_size=0x7fffffffd2a0, natural_size=0x0, minimum_baseline=0x0, natural_baseline=0x0) at gtksizerequ
est.c:700
#6  0x00007ffff7736e7b in gtk_widget_get_preferred_size (widget=0x690230, minimum_size=0x7fffffffd2a0, natural_size=0x0) at gtksizerequest.c:747
#7  0x00007ffff785328b in gtk_window_compute_hints (window=0x690230, new_geometry=0x7fffffffd370, new_flags=0x7fffffffd36c) at gtkwindow.c:9559
#8  0x00007ffff7852476 in gtk_window_compute_configure_request (window=0x690230, request=0x7fffffffd460, geometry=0x7fffffffd420, flags=0x7fffffffd45c) at gtkwindow.c:8906
#9  0x00007ffff784bae4 in gtk_window_show (widget=0x690230) at gtkwindow.c:5901
#10 0x00007ffff5d15e05 in g_closure_invoke (closure=0x608b40, return_value=0x0, n_param_values=1, param_values=0x7fffffffd6d0, invocation_hint=0x7fffffffd670) at gclosure.c:768
#11 0x00007ffff5d276f3 in signal_emit_unlocked_R (node=node@entry=0x61a630, detail=detail@entry=0, instance=instance@entry=0x690230, emission_return=emission_return@entry=0x0, instance_and_para
ms=instance_and_params@entry=0x7fffffffd6d0) at gsignal.c:3479
#12 0x00007ffff5d30585 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd848) at gsignal.c:3305
#13 0x00007ffff5d307b2 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at gsignal.c:3361
#14 0x00007ffff7824ce1 in gtk_widget_show (widget=0x690230) at gtkwidget.c:4874
#15 0x00007ffff755ea59 in gtk_container_show_all (widget=0x690230) at gtkcontainer.c:3491
#16 0x00007ffff782529d in gtk_widget_show_all (widget=0x690230) at gtkwidget.c:5040
#17 0x00000000004009e9 in main ()
