[Webkit-unassigned] [Bug 183883] Crash with WebKitConsoleMessageLevel
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 25 18:12:05 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=183883
--- Comment #7 from Michael Catanzaro <mcatanzaro at igalia.com> ---
> g_enum_get_value (g_type_class_ref (webkit_console_message_level_get_type ()), webkit_console_message_get_level (message));
I added this debug code to ephy-web-extension-main.c:
GType type;
GEnumClass *class;
GEnumValue *value;
type = webkit_console_message_level_get_type ();
class = g_type_class_ref (type);
g_warning ("class=%p", class);
value = g_enum_get_value (class, WEBKIT_CONSOLE_MESSAGE_LEVEL_DEBUG);
g_warning ("value=%d name=%s nick=%s", value->value, value->value_name, value->value_nick);
g_type_class_unref (class);
It works properly:
** (WebKitWebProcess:18): WARNING **: 00:57:43.265: class=0x5635884a8820
** (WebKitWebProcess:18): WARNING **: 00:57:43.265: value=4 name=WEBKIT_CONSOLE_MESSAGE_LEVEL_DEBUG nick=debug
But I had to manually add this to the top:
#define WEBKIT2_COMPILATION 1
#include <webkit2/WebKitWebProcessEnumTypes.h>
due to bug #183998.
I guess there's some (very slim) possibility that the missing #include is somehow confusing Vala... could you grep through the generated code and make sure Vala isn't trying to define its own webkit_console_message_level_get_type() anywhere?
Could you post a copy of the generated web-process-extension.c?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180326/ed16952e/attachment-0001.html>
More information about the webkit-unassigned
mailing list