Bug 167801

Summary: [GTK] (epiphany:22067): Gtk-WARNING **: Allocating size to GtkSocket 0x5555576b7ab0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Product: WebKit Reporter: Andres Gomez Garcia <agomez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: REOPENED ---    
Severity: Normal CC: bugs-noreply, cgarcia, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=778064
Attachments:
Description Flags
BT from gdb for epiphany
none
2nd similar BT from gdb none

Description Andres Gomez Garcia 2017-02-03 10:35:41 PST
Created attachment 300549 [details]
BT from gdb for epiphany

Epiphany 3.22.5 and WebKit 2.15.4.

I'm running Epiphany with the dconf key:

"process-model" = "shared-secondary-process"

And the env variable:

"export G_DEBUG=fatal-criticals"

The compilation was done with CMake args:

'-DENABLE_THREADED_COMPOSITOR=OFF -DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIBROWSER=ON -DCMAKE_C_FLAGS_RELEASE="-O0 -g -DNDEBUG  -DG_DISABLE_CAST_CHECKS" -DCMAKE_CXX_FLAGS_RELEASE="-O0 -g -DNDEBUG -DG_DISABLE_CAST_CHECKS"'

After visiting several pages, eventually, the WebProcess hits a Critical.

This bug is not reproducible in a predictable way.
Comment 1 Andres Gomez Garcia 2017-02-03 10:38:08 PST
(In reply to comment #0)
> "export G_DEBUG=fatal-criticals"

Obviously,

G_DEBUG=fatal-warnings

> After visiting several pages, eventually, the WebProcess hits a Critical.

Obviously, hits a Warning.
Comment 2 Andres Gomez Garcia 2017-02-03 10:38:47 PST
Created attachment 300550 [details]
2nd similar BT from gdb

Probably, from the same warning chain.

(epiphany:22067): Gtk-WARNING **: Allocating size to GtkSocket 0x5555576b7930 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Comment 3 Carlos Garcia Campos 2017-02-03 23:17:23 PST
This warning also happens with the inspector, that for sure we know how to allocate without calling gtk_widget_get_preferred_width/height(). Same with plugins, we give them the size that the web says they have, not what the widget wants. You can safely ignore this gtk+ warning.
Comment 4 Michael Catanzaro 2017-02-04 11:00:31 PST
I don't think this report is invalid. We should either fix GTK+ to not warn here, or find a way to work around the warning.
Comment 5 Carlos Garcia Campos 2017-02-05 01:26:11 PST
Up to you, I'm not going to spend any time on this.