Processed: Re: Bug#922730: cannot browse anything

2019-03-06 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch
Bug #922730 [epiphany-browser] cannot browse anything
Added tag(s) patch.

-- 
922730: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922730
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#922730: cannot browse anything

2019-03-06 Thread Alberto Garcia
Control: tags -1 patch

On Tue, Mar 05, 2019 at 12:46:59PM +0200, Alberto Garcia wrote:
> > > If would also be nice if you can get a backtrace.
> > 
> > Attached is a backtrace
> 
> I forgot to clarify: I got this from the versions currently in
> unstable (epiphany 3.31.91-2, webkit 2.22.7-1).
> 
> The MiniBrowser does run fine however, I can open e.g. Google Maps and
> use the website normally.

Ok, so this is a bug in Epiphany after all, I confirm that the
attached patch fixes the problem.

Here's the upstream merge request:

   https://gitlab.gnome.org/GNOME/epiphany/merge_requests/218

Berto
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 49335621262cae4c9c7ba97ee6ec1c33f223a471..9f6ab15ebe1e9a31263862b945339d295e3f721b 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -733,12 +733,10 @@ window_object_cleared_cb (WebKitScriptWorld *world,
  js_ephy);
 
   if (!extension->is_private_profile) {
-guint64 page_id = webkit_web_page_get_id (page);
-g_assert (page_id < G_MAXINT32);
-
 g_autoptr(JSCValue) js_password_manager_ctor = jsc_value_object_get_property (js_ephy, "PasswordManager");
 g_autoptr(JSCValue) js_password_manager = jsc_value_constructor_call (js_password_manager_ctor,
-  G_TYPE_INT, page_id, G_TYPE_NONE);
+  G_TYPE_UINT64, webkit_web_page_get_id (page),
+  G_TYPE_NONE);
 jsc_value_object_set_property (js_ephy, "passwordManager", js_password_manager);
 
 js_function = jsc_value_new_function (js_context,


Bug#922730: cannot browse anything

2019-03-05 Thread Alberto Garcia
On Tue, Mar 05, 2019 at 11:56:58AM +0200, Alberto Garcia wrote:
> On Thu, Feb 21, 2019 at 02:01:45PM +0200, Alberto Garcia wrote:
> > If would also be nice if you can get a backtrace.
> 
> Attached is a backtrace

I forgot to clarify: I got this from the versions currently in
unstable (epiphany 3.31.91-2, webkit 2.22.7-1).

The MiniBrowser does run fine however, I can open e.g. Google Maps and
use the website normally.

Berto



Bug#922730: cannot browse anything

2019-03-05 Thread 積丹尼 Dan Jacobson
AG> Attached is a backtrace
Glad you found the bug.



Bug#922730: cannot browse anything

2019-03-05 Thread Alberto Garcia
On Thu, Feb 21, 2019 at 02:01:45PM +0200, Alberto Garcia wrote:
> If would also be nice if you can get a backtrace.

Attached is a backtrace

Berto
Core was generated by `/usr/lib/i386-linux-gnu/webkit2gtk-4.0/WebKitWebProcess 
7 23'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xb2e6fbba in jscValueCallFunction () at 
./Source/JavaScriptCore/API/glib/JSCValue.cpp:886
886 G_VALUE_COLLECT_INIT(, parameterType, args, 
G_VALUE_NOCOPY_CONTENTS, ());
[Current thread is 1 (Thread 0xaf3c5200 (LWP 1640))]
(gdb) bt
#0  0xb2e6fbba in jscValueCallFunction () at 
./Source/JavaScriptCore/API/glib/JSCValue.cpp:886
#1  0xb2e7097a in jsc_value_constructor_call () at 
./Source/JavaScriptCore/API/glib/JSCValue.cpp:1348
#2  0xae717a29 in window_object_cleared_cb (extension=0x17122c0, 
frame=0x1847028, page=0x1848750, world=0x1751a68) at 
../embed/web-extension/ephy-web-extension.c:748
#3  window_object_cleared_cb (world=0x1751a68, page=0x1848750, frame=0x1847028, 
extension=0x17122c0) at ../embed/web-extension/ephy-web-extension.c:671
#4  0xb153f10e in ffi_call_SYSV () from /lib/i386-linux-gnu/libffi.so.6
#5  0xb153ed9c in ffi_call () from /lib/i386-linux-gnu/libffi.so.6
#6  0xb401d919 in g_cclosure_marshal_generic (closure=, 
return_gvalue=, n_param_values=, 
param_values=, invocation_hint=, 
marshal_data=) at ../../../gobject/gclosure.c:1496
#7  0xb401d118 in g_closure_invoke (closure=0x1749410, return_value=0x0, 
n_param_values=3, param_values=0xbf8e9d80, invocation_hint=0xbf8e9d24) at 
../../../gobject/gclosure.c:810
#8  0xb4030ba2 in signal_emit_unlocked_R (node=node@entry=0x174a4e0, 
detail=detail@entry=0, instance=instance@entry=0x1751a68, emission_return=0x0, 
instance_and_params=0xbf8e9d80)
at ../../../gobject/gsignal.c:3635
#9  0xb4039e00 in g_signal_emit_valist (instance=, 
signal_id=, detail=, var_args=0xbf8e9f14 
"\266M\200\265\271\fn\265") at ../../../gobject/gsignal.c:3391
#10 0xb403a3f5 in g_signal_emit (instance=0x1751a68, signal_id=178, detail=0) 
at ../../../gobject/gsignal.c:3447
#11 0xb56d0188 in webkitScriptWorldWindowObjectCleared () at 
./Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp:99
#12 0xb56d510d in PageLoaderClient::didClearWindowObjectForFrame () at 
./Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp:212
#13 0xb57d998b in 
WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld () at 
./Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:1683
#14 0xb64b4b0a in WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld () 
at ./Source/WebCore/loader/FrameLoader.cpp:3794
#15 WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld () at 
./Source/WebCore/loader/FrameLoader.cpp:3789
#16 0xb5f330f9 in WebCore::ScriptController::initScriptForWindowProxy () at 
./Source/WebCore/bindings/js/ScriptController.cpp:259
#17 0xb5f4af07 in 
WebCore::WindowProxy::createJSWindowProxyWithInitializedScript () at 
./Source/WebCore/bindings/js/WindowProxy.cpp:123
#18 0xb5f266f1 in WebCore::WindowProxy::jsWindowProxy () at 
./Source/WebCore/bindings/js/WindowProxy.h:70
#19 WebCore::ScriptController::jsWindowProxy () at 
./Source/WebCore/bindings/js/ScriptController.cpp:331
#20 0xb5820edc in WebCore::ScriptController::globalObject () at 
./Source/WebCore/bindings/js/ScriptController.h:86
#21 WebKit::WebFrame::jsContextForWorld () at 
./Source/WebKit/WebProcess/WebPage/WebFrame.cpp:527
#22 0xb56cf9fb in webkit_frame_get_js_context_for_script_world () at 
./Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp:176
#23 0xae7175d8 in ephy_web_extension_page_created_cb (extension=0x17122c0, 
web_page=0x1848750) at ../embed/web-extension/ephy-web-extension.c:378
#24 0xb401d118 in g_closure_invoke (closure=0x17e9ea0, return_value=0x0, 
n_param_values=2, param_values=0xbf8ea2d0, invocation_hint=0xbf8ea274) at 
../../../gobject/gclosure.c:810
#25 0xb4030ba2 in signal_emit_unlocked_R (node=node@entry=0x1734a60, 
detail=detail@entry=0, instance=instance@entry=0x17db7a8, emission_return=0x0, 
instance_and_params=0xbf8ea2d0)
at ../../../gobject/gsignal.c:3635
#26 0xb4039e00 in g_signal_emit_valist (instance=, 
signal_id=, detail=, var_args=0xbf8ea450 "") at 
../../../gobject/gsignal.c:3391
#27 0xb403a3f5 in g_signal_emit (instance=0x17db7a8, signal_id=177, detail=0) 
at ../../../gobject/gsignal.c:3447
#28 0xb56d19a5 in WebExtensionInjectedBundleClient::didCreatePage () at 
./Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitWebExtension.cpp:163
#29 0xb56bebcb in WebKit::InjectedBundle::didCreatePage () at 
./Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp:534
#30 0xb58195b0 in WebKit::WebPage::create () at 
./Source/WebKit/WebProcess/WebPage/WebPage.cpp:341
#31 0xb56a5ea2 in WebKit::WebProcess::createWebPage () at 
./Source/WebKit/WebProcess/WebProcess.cpp:583
#32 0xb5376b5a in IPC::callMemberFunctionImpl, 0u, 1u> () at 
./Source/WebKit/Platform/IPC/HandleMessage.h:41
#33 

Bug#922730: cannot browse anything

2019-03-04 Thread 積丹尼 Dan Jacobson
I'm instead going to give up on 32 bit completely, and buy a new
computer. So feel free to close this bug (if you confirm you can't
reproduce it on 32 bit.)



Bug#922730: cannot browse anything

2019-03-04 Thread Jeremy Bicha
On Tue, Mar 5, 2019 at 12:51 AM 積丹尼 Dan Jacobson  wrote:
> I'm instead going to give up on 32 bit completely, and buy a new
> computer. So feel free to close this bug (if you confirm you can't
> reproduce it on 32 bit.)

There may be a valid bug here. But it would take a significant amount
of time for me to test on 32-bit so I won't be doing that this week.

Jeremy



Bug#922730: cannot browse anything

2019-03-04 Thread Jeremy Bicha
On Fri, Mar 1, 2019 at 5:57 PM 積丹尼 Dan Jacobson  wrote:
> Here's the situation on i686. Be sure to test on i686, not amd64, where
> it works fine.

Please report this issue upstream. I think you'll need to report it to
webkit instead of epiphany.

I think I'll be downgrading the severity of this bug this week so that
we can get 3.31.91 in to Buster. (Note that we may remove
epiphany-browser from Buster completely if the Debian Security Team is
not willing to try to maintain webkit2gtk in Buster.)

Thanks,
Jeremy Bicha



Bug#922730: cannot browse anything

2019-03-01 Thread 積丹尼 Dan Jacobson
https://www.google.com/search?q=gobject/gtype.c:4265:+type+id+'0'+is+invalid



Bug#922730: cannot browse anything

2019-03-01 Thread 積丹尼 Dan Jacobson
Here's the situation on i686. Be sure to test on i686, not amd64, where
it works fine.

libwebkit2gtk-4.0-37:
  Installed: 2.23.91-1

epiphany-browser:
  Installed: 3.31.91-2

$ mkdir /tmp/p; HOME=/tmp/p epiphany-browser

You'll see it just shows it is loading about:overview, and it just loops over 
and over with:

** (epiphany:3475): WARNING **: 05:59:49.922: Web process crashed

(WebKitWebProcess:3679): GLib-GObject-WARNING **: 05:59:50.666: 
../../../gobject/gtype.c:4265: type id '0' is invalid

(WebKitWebProcess:3679): GLib-GObject-WARNING **: 05:59:50.682: can't peek 
value table for type '' which is not currently referenced

/usr/lib/i386-linux-gnu/webkit2gtk-4.0/MiniBrowser works fine though. It
can even browse web pages and files.

strace shows the loop is at

futex(0x14656c0, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_MONOTONIC, {tv_sec=5717, tv_nsec=613493764}) = 0
futex(0x143c9ec, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, 
{tv_sec=1551478070, tv_nsec=762190103}...

Anyway please fix "gtype.c:4265: type id '0' is invalid". Thank you.



Bug#922730: cannot browse anything

2019-02-25 Thread mcatanzaro
On Thu, 21 Feb 2019 14:01:45 +0200 Alberto Garcia  
wrote:

> If would also be nice if you can get a backtrace.
>
> Berto

And use G_DEBUG=fatal-warnings to get it as early as possible.



Bug#922730: cannot browse anything

2019-02-21 Thread Alberto Garcia
On Wed, Feb 20, 2019 at 07:00:07AM +0800, 積丹尼 Dan Jacobson wrote:
> Package: epiphany-browser
> Version: 3.31.91-2
> Severity: grave
> 
> $ mkdir /tmp/p
> $ HOME=/tmp/p epiphany /etc/motd
> 
> ** (epiphany:11842): WARNING **: 06:53:40.412: Web process crashed

If the web process crashed then it sounds like a problem in webkit.

Can you try with libwebkit2gtk-4.0-37 2.23.91-1 ??

If would also be nice if you can get a backtrace.

Berto



Bug#922730: cannot browse anything

2019-02-19 Thread 積丹尼 Dan Jacobson
Package: epiphany-browser
Version: 3.31.91-2
Severity: grave

$ mkdir /tmp/p
$ HOME=/tmp/p epiphany /etc/motd

** (epiphany:11842): WARNING **: 06:53:40.412: Web process crashed

(WebKitWebProcess:12106): GLib-GObject-WARNING **: 06:53:41.133: 
../../../gobject/gtype.c:4265: type id '0' is invalid

(WebKitWebProcess:12106): GLib-GObject-WARNING **: 06:53:41.139: can't peek 
value table for type '' which is not currently referenced

No, /usr/lib/*-linux-gnu/webkit2gtk-4.0/MiniBrowser works fine.

Versions of packages epiphany-browser depends on:
ii  dbus-user-session [default-dbus-session-bus]  1.13.8-1
ii  dbus-x11 [dbus-session-bus]   1.13.8-1
ii  epiphany-browser-data 3.31.91-2
ii  gsettings-desktop-schemas 3.31.0.2-2
ii  iso-codes 4.2-1
ii  libc6 2.28-7
ii  libcairo2 1.16.0-2
ii  libdazzle-1.0-0   3.31.90-1
ii  libgcr-base-3-1   3.28.1-2
ii  libgcr-ui-3-1 3.28.1-2
ii  libgdk-pixbuf2.0-02.38.0+dfsg-7
ii  libglib2.0-0  2.59.2-2
ii  libgmp10  2:6.1.2+dfsg-4
ii  libgtk-3-03.24.5-1
ii  libhogweed4   3.4.1-1
ii  libicu63  63.1-6
ii  libjavascriptcoregtk-4.0-18   2.23.90-1
ii  libjson-glib-1.0-01.4.4-2
ii  libnettle63.4.1-1
ii  libnotify40.7.7-4
ii  libpango-1.0-01.42.4-6
ii  libsecret-1-0 0.18.7-1
ii  libsoup2.4-1  2.64.2-2
ii  libsqlite3-0  3.27.1-1
ii  libwebkit2gtk-4.0-37  2.23.90-1
ii  libxml2   2.9.8+dfsg-1+b1

Versions of packages epiphany-browser recommends:
ii  ca-certificates  20190110
pn  evince   
ii  yelp 3.31.90-1

epiphany-browser suggests no packages.

-- no debconf information