"How does the code know the size to allocate?" from gtk_window_check_resize() under gtk_container_idle_sizer()
@mcrha
Submitted by Milan Crha Link to original bug (#770003)
Description
This is with gtk3-3.20.8-1.fc24. Running locally built test-html-editor from evolution-3.21.90/e-util (which is a noinst_PROGRAMS) shows a runtime warning:
(test-html-editor:25481): Gtk-WARNING **: Allocating size to GtkWindow 0x108d450 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
With the below backtrace. Maybe there is something what the editor does wrong, but I do not know how to debug this further, thus any help will be appreciated. Note that the GtkWindow's parent is NULL.
(gdb) bt
#0 0x00007ffff3d28fd0 in g_logv () at /lib64/libglib-2.0.so.0
#1 0x00007ffff3d293df in g_log () at /lib64/libglib-2.0.so.0
#2 0x00007ffff45a4918 in gtk_widget_size_allocate_with_baseline (widget=widget@entry=0x108d450, allocation=allocation@entry=0x7fffffffd350, baseline=<optimized out>, baseline@entry=-1) at gtkwidget.c:5997
#3 0x00007ffff45a4b3a in gtk_widget_size_allocate (widget=widget@entry=0x108d450, allocation=allocation@entry=0x7fffffffd350) at gtkwidget.c:6217
#4 0x00007ffff45b4e2f in gtk_window_check_resize (window=0x108d450) at gtkwindow.c:9875
#5 0x00007ffff45b4e2f in gtk_window_check_resize (container=0x108d450) at gtkwindow.c:8275
#6 0x00007ffff3ff7617 in _g_closure_invoke_va () at /lib64/libgobject-2.0.so.0
#7 0x00007ffff4011e08 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#8 0x00007ffff401245f in g_signal_emit () at /lib64/libgobject-2.0.so.0
#9 0x00007ffff4396468 in gtk_container_idle_sizer (clock=0x67c570, container=0x108d450) at gtkcontainer.c:2064
#10 0x00007ffff3ff7617 in _g_closure_invoke_va () at /lib64/libgobject-2.0.so.0
#11 0x00007ffff4011e08 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#12 0x00007ffff401245f in g_signal_emit () at /lib64/libgobject-2.0.so.0
#13 0x00007fffe94cd9bf in _gdk_frame_clock_emit_layout (frame_clock=<optimized out>) at gdkframeclock.c:634
#14 0x00007fffe94cdfbb in gdk_frame_clock_paint_idle (data=0x67c570) at gdkframeclockidle.c:408
#15 0x00007fffe94bc418 in gdk_threads_dispatch (data=0x8996c0) at gdk.c:720
#16 0x00007ffff3d23273 in g_timeout_dispatch () at /lib64/libglib-2.0.so.0
#17 0x00007ffff3d22803 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#18 0x00007ffff3d22bb0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#19 0x00007ffff3d22ed2 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#20 0x00007ffff4456825 in gtk_main () at gtkmain.c:1269
#21 0x000000000040369a in main (argc=1, argv=0x7fffffffdcc8) at test-html-editor.c:580
Version: 3.20.x