Bug 167801 - [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?
Summary: [GTK] (epiphany:22067): Gtk-WARNING **: Allocating size to GtkSocket 0x555557...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-03 10:35 PST by Andres Gomez Garcia
Modified: 2017-02-05 01:26 PST (History)
3 users (show)

See Also:


Attachments
BT from gdb for epiphany (184.60 KB, text/plain)
2017-02-03 10:35 PST, Andres Gomez Garcia
no flags Details
2nd similar BT from gdb (184.66 KB, text/plain)
2017-02-03 10:38 PST, Andres Gomez Garcia
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.