After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746737 - Crash when saving particular downloads
Crash when saving particular downloads
Status: RESOLVED NOTGNOME
Product: epiphany
Classification: Core
Component: Downloads
3.16.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 765086 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-03-25 11:16 UTC by Andres Gomez
Modified: 2018-06-04 19:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andres Gomez 2015-03-25 11:16:14 UTC
WKGTK 2.8.0 and Epiphany 3.16.0

In a private bugzilla, I have an audio file as an attachment.

If I try to download by right clicking in its link, and selecting "Save Link As ...", the "Save as ..." dialog doesn't open.

If I middle click and open in a new tab, the audio file starts playing. Type Ctrl+S to save the current file and the "Save as ..." dialog opens. Select destination and click on "Save", Epiphany crashes ...
Comment 1 Andres Gomez 2015-03-25 11:17:02 UTC
Stack trace from the same steps run into a GDB session:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000464d24 in web_resource_get_data_cb (resource=0x493017, result=0x0, output_stream=0x7fff300023e0) at ephy-web-view.c:2898
2898        g_printerr ("Failed to save page: %s", error->message);
(gdb) bt
  • #0 web_resource_get_data_cb
    at ephy-web-view.c line 2898
  • #1 g_task_return_now
    at gtask.c line 1077
  • #2 g_task_return
    at gtask.c line 1130
  • #3 std::_Function_handler<void
  • #4 WebKit::WebPageProxy::dataCallback(IPC::DataReference const&, unsigned long)
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #5 WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::MessageDecoder&)
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #6 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::MessageDecoder&)
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #7 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::MessageDecoder&)
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #8 IPC::Connection::dispatchMessage(std::unique_ptr<IPC::MessageDecoder, std::default_delete<IPC::MessageDecoder> >)
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #9 IPC::Connection::dispatchOneMessage()
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #10 WTF::RunLoop::performWork()
    from /opt/gnome-os/tanty/epiphany/install/lib/libwebkit2gtk-4.0.so.37
  • #11 WTF::GMainLoopSource::voidCallback()
    from /opt/gnome-os/tanty/epiphany/install/lib/libjavascriptcoregtk-4.0.so.18
  • #12 WTF::GMainLoopSource::voidSourceCallback(WTF::GMainLoopSource*)
    from /opt/gnome-os/tanty/epiphany/install/lib/libjavascriptcoregtk-4.0.so.18
  • #13 g_main_dispatch
    at gmain.c line 3064
  • #14 g_main_context_dispatch
    at gmain.c line 3663
  • #15 g_main_context_iterate
    at gmain.c line 3734
  • #16 g_main_context_iteration
    at gmain.c line 3795
  • #17 g_application_run
    at gapplication.c line 2219
  • #18 main
    at ephy-main.c line 486

Comment 2 Andres Gomez 2015-03-25 11:18:38 UTC
Forgot to mention, I'm running Epiphany with the dconf key:

"process-model" = "shared-secondary-process"
Comment 3 Michael Catanzaro 2015-03-25 14:20:07 UTC
Hi!

The backtrace is not very good, but from the line numbers I guess webkit_web_resource_get_data_finish returned NULL but without setting the GError.
Comment 4 Carlos Garcia Campos 2015-03-25 14:46:32 UTC
I'm more worried about result being NULL in web_resource_get_data_cb (resource=0x493017, result=0x0, output_stream=0x7fff300023e0) which is probably the reason why webkit_web_resource_get_data_finish returns NULL without filling the GError (returned from the g_return macro)
Comment 5 Michael Catanzaro 2015-11-06 18:37:01 UTC
Another reproducer from Jacobo:

"""
Description of problem:
1. Open any PDF document with the default document viewer plugin provided by Evince.
2. Press Ctrl+S or click on Epiphany menu button -> Save as...
3. Select some destination directory for the file.

Additional info:
* Problem seems to be in Epiphany and not in the plugin. The "download" button in the plugin works properly.
* A 0-byte file is created at the destination directory.
"""
Comment 6 Andres Gomez 2015-11-06 20:45:58 UTC
(In reply to Michael Catanzaro from comment #5)
> Another reproducer from Jacobo:
> 
> """
> Description of problem:
> 1. Open any PDF document with the default document viewer plugin provided by
> Evince.
> 2. Press Ctrl+S or click on Epiphany menu button -> Save as...
> 3. Select some destination directory for the file.
> 
> Additional info:
> * Problem seems to be in Epiphany and not in the plugin. The "download"
> button in the plugin works properly.
> * A 0-byte file is created at the destination directory.
> """


I've also experienced this use case.
Comment 7 Heywood Floyd 2015-11-20 13:22:53 UTC
I can confirm that problem (at least when it comes to the PDF case) for Epiphany / GNOME Web 3.18 (on Fedora 23).
Comment 8 Michael Catanzaro 2018-04-08 19:02:35 UTC
*** Bug 765086 has been marked as a duplicate of this bug. ***
Comment 9 Michael Catanzaro 2018-04-08 19:02:50 UTC
Another reproducer with a good backtrace in bug #765086.
Comment 10 Michael Catanzaro 2018-04-16 16:15:20 UTC
(In reply to Michael Catanzaro from comment #9)
> Another reproducer with a good backtrace in bug #765086.

That's https://upload.wikimedia.org/wikipedia/commons/9/90/Papalotla-sound.ogg, just right click and save as. Warning: will crash the UI process
Comment 11 Michael Catanzaro 2018-04-23 03:00:32 UTC
(In reply to Michael Catanzaro from comment #10)
> (In reply to Michael Catanzaro from comment #9)
> > Another reproducer with a good backtrace in bug #765086.
> 
> That's
> https://upload.wikimedia.org/wikipedia/commons/9/90/Papalotla-sound.ogg,
> just right click and save as. Warning: will crash the UI process

https://bugzilla.gnome.org/page.cgi?id=traceparser/trace.html&trace_id=238544
Comment 12 Michael Catanzaro 2018-06-04 19:52:51 UTC
Two bugs here:

https://bugs.webkit.org/show_bug.cgi?id=186276
https://bugs.webkit.org/show_bug.cgi?id=186278

Nothing is wrong in epiphany. Closing.