foliate icon indicating copy to clipboard operation
foliate copied to clipboard

WebKit crashed with hyphenation

Open mits-haruko opened this issue 8 months ago • 13 comments

Describe the bug Foliate crashes and can't display neither the current page nor any other page in the file. It happens as soon as any epub file is open.

To Reproduce Steps to reproduce the behavior:

  1. Open file with Foliate.
  2. Foliate hangs.
  3. WebKit crashed message is sent.

This happens with both AMD and Intel hardware in two different machines. I don't have an Nvidia card.

Running through CLI gives the error message:

 (com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-CRITICAL **: 22:32:48.772: My name is Oh-No-WebKit-Crashed, bug of bugs!

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-CRITICAL **: 22:32:48.772: Look on this line, Developer -- despair!

(com.github.johnfactotum.Foliate:2): Gjs-CRITICAL **: 22:33:08.818: JS ERROR: TypeError: this[#data] is undefined
vfunc_unroot@resource:///com/github/johnfactotum/Foliate/book-viewer.js:1001:36
connectWindowRemoved@resource:///com/github/johnfactotum/Foliate/app.js:392:16
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34


(com.github.johnfactotum.Foliate:2): Gjs-CRITICAL **: 22:33:08.823: Attempting to run a JS callback during shutdown.
This is most likely caused by destroying a Clutter actor or GTK widget with
::destroy signal connected, or using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked.
The offending callback was ListBoxUpdateHeaderFunc().
== Stack trace for context 0x55fd84812db0 ==

Version:

  • Foliate version: 3.2.1
  • OS/Distribution and version: Fedora Workstation 41
  • Desktop environment: Gnome 47
  • Installation method: Flatpak (from Flathub)

mits-haruko avatar Mar 27 '25 01:03 mits-haruko

Probably not our bug, especially if other WebKitGTK apps also crash.

But I confess that I do not really know how one should debug in such a case. Maybe try coredumpctl and see if there's a coredump by the web process.

johnfactotum avatar Mar 27 '25 04:03 johnfactotum

Got that crash, always happening on one specific epub. coredumpctl info gives me this:

Message: Process 25681 (WebKitWebProces) of user 1000 dumped core.

                Module /usr/lib/x86_64-linux-gnu/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so without build-id.
                Module /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 without build-id.
                Module /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3
                Module /usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 without build-id.
                Module /usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5
                Stack trace of thread 2:
                #0  0x00007f9ada62a057 n/a (/usr/lib/x86_64-linux-gnu/libhyphen.so.0.3.0 + 0x5057)
                #1  0x00007f9ae00940e6 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x30940e6)
                #2  0x00007f9adfa4d3d5 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4d3d5)
                #3  0x00007f9adfa4dd28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4dd28)
                #4  0x00007f9adfa4eac3 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4eac3)
                #5  0x00007f9adfa4c7b8 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4c7b8)
                #6  0x00007f9adfa4c368 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4c368)
                #7  0x00007f9adfa6f851 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a6f851)
                #8  0x00007f9adfa6c832 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a6c832)
                #9  0x00007f9adfa6b0c1 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a6b0c1)
                #10 0x00007f9adfa55963 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a55963)
                #11 0x00007f9adfa54fd2 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a54fd2)
                #12 0x00007f9adfaa4309 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2aa4309)
                #13 0x00007f9ae01299d0 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31299d0)
                #14 0x00007f9ae0125da6 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125da6)
                #15 0x00007f9ae012455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #16 0x00007f9ae0107bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #17 0x00007f9ae012834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #18 0x00007f9ae01277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #19 0x00007f9ae0125b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #20 0x00007f9ae012455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #21 0x00007f9ae0107bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #22 0x00007f9ae012834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #23 0x00007f9ae01277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #24 0x00007f9ae0125b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #25 0x00007f9ae012455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #26 0x00007f9ae0107bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #27 0x00007f9ae012834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #28 0x00007f9ae01277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #29 0x00007f9ae0125b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #30 0x00007f9ae012455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #31 0x00007f9ae0107bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #32 0x00007f9ae0193e8e n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3193e8e)
                #33 0x00007f9ae02221d2 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x32221d2)
                #34 0x00007f9ae013730d n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x313730d)
                #35 0x00007f9ae012757f n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312757f)
                #36 0x00007f9ae0125b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #37 0x00007f9ae012455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #38 0x00007f9ae0107bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #39 0x00007f9ae012834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #40 0x00007f9ae01277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #41 0x00007f9ae0125b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #42 0x00007f9ae012455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #43 0x00007f9ae0107bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #44 0x00007f9ae02923d8 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x32923d8)
                #45 0x00007f9adfc53a04 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c53a04)
                #46 0x00007f9adfc3d755 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c3d755)
                #47 0x00007f9ae029aa58 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x329aa58)
                #48 0x00007f9adfc4688f n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c4688f)
                #49 0x00007f9adfc4982a n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c4982a)
                #50 0x00007f9adfc542fb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c542fb)
                #51 0x00007f9adfc53c55 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c53c55)
                #52 0x00007f9adfc3d755 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c3d755)
                #53 0x00007f9adf4f3fd4 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x24f3fd4)
                #54 0x00007f9adf4f3f06 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x24f3f06)
                #55 0x00007f9adf5da855 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x25da855)
                #56 0x00007f9ade933438 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x1933438)
                #57 0x00007f9a7400c038 n/a (n/a + 0x0)
                #58 0x00007f9adafa5efe n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a5efe)
                #59 0x00007f9adafa704e n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a704e)
                #60 0x00007f9adafa704e n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a704e)
                #61 0x00007f9adafa704e n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a704e)
                #62 0x00007f9adaf86bbb n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x186bbb)
                #63 0x00007f9adba07285 n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0xc07285)

                Stack trace of thread 3:
                #0  0x00007f9adcf1b79d n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x11a79d)
                #1  0x00007f9ad86d980b n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8200.4 + 0x2a80b)
                #2  0x00007f9ad86d9ccc n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8200.4 + 0x2accc)
                #3  0x00007f9ad61c2719 n/a (/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.5400.0 + 0xe719)
                #4  0x00007f9ad8745592 n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8200.4 + 0x96592)
                #5  0x00007f9adce98e0e n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x97e0e)
                #6  0x00007f9adcf1d7d4 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x11c7d4)
                ELF object binary architecture: AMD x86-64

I can provide additional info later if needed (install debug symbols and attach gdb for example)

Foliate version: 3.2.1 OS/Distribution and version: Fedora 42 Beta Workstation,
Desktop environment: Gnome 48 Installation method: Flatpak (from Flathub)

Same on Fedora 41 and Gnome 47.

soal avatar Mar 27 '25 14:03 soal

Opening books in English and French works fine, in Bulgarian or Russian — crashes WebKit process. Seems like an issue with hyphenation, disabling it in settings helps.

soal avatar Mar 27 '25 16:03 soal

@soal I get a similar coredumpctl message. It happens with any book.

Message: Process 1361682 (WebKitWebProces) of user 1000 dumped core.
                
                Module /usr/lib/x86_64-linux-gnu/webkitgtk-6.0/injected-bundle/libwebkitgtkinjectedbundle.so without build-id.
                Module /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 without build-id.
                Module /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3
                Module /usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 without build-id.
                Module /usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5
                Stack trace of thread 2:
                #0  0x00007f02ad1e3057 n/a (/usr/lib/x86_64-linux-gnu/libhyphen.so.0.3.0 + 0x5057)
                #1  0x00007f02b4a940e6 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x30940e6)
                #2  0x00007f02b444d3d5 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4d3d5)
                #3  0x00007f02b444dd28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4dd28)
                #4  0x00007f02b444eac3 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4eac3)
                #5  0x00007f02b444c7b8 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4c7b8)
                #6  0x00007f02b444c368 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a4c368)
                #7  0x00007f02b446f851 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a6f851)
                #8  0x00007f02b446c832 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a6c832)
                #9  0x00007f02b446b0c1 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a6b0c1)
                #10 0x00007f02b4455963 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a55963)
                #11 0x00007f02b4454fd2 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2a54fd2)
                #12 0x00007f02b44a4309 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2aa4309)
                #13 0x00007f02b4b299d0 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31299d0)
                #14 0x00007f02b4b25da6 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125da6)
                #15 0x00007f02b4b2455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #16 0x00007f02b4b07bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #17 0x00007f02b4b2834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #18 0x00007f02b4b277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #19 0x00007f02b4b25b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #20 0x00007f02b4b2455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #21 0x00007f02b4b07bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #22 0x00007f02b4b2834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #23 0x00007f02b4b277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #24 0x00007f02b4b25b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #25 0x00007f02b4b2455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #26 0x00007f02b4b07bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #27 0x00007f02b4b2834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #28 0x00007f02b4b277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #29 0x00007f02b4b25b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #30 0x00007f02b4b2455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #31 0x00007f02b4b07bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #32 0x00007f02b4b93e8e n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3193e8e)
                #33 0x00007f02b4c221d2 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x32221d2)
                #34 0x00007f02b4b3730d n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x313730d)
                #35 0x00007f02b4b2757f n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312757f)
                #36 0x00007f02b4b25b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #37 0x00007f02b4b2455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #38 0x00007f02b4b07bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #39 0x00007f02b4b2834b n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312834b)
                #40 0x00007f02b4b277de n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x31277de)
                #41 0x00007f02b4b25b28 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3125b28)
                #42 0x00007f02b4b2455c n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x312455c)
                #43 0x00007f02b4b07bfb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x3107bfb)
                #44 0x00007f02b4c923d8 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x32923d8)
                #45 0x00007f02b4653a04 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c53a04)
                #46 0x00007f02b463d755 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c3d755)
                #47 0x00007f02b4c9aa58 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x329aa58)
                #48 0x00007f02b464688f n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c4688f)
                #49 0x00007f02b464982a n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c4982a)
                #50 0x00007f02b46542fb n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c542fb)
                #51 0x00007f02b4653c55 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c53c55)
                #52 0x00007f02b463d755 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x2c3d755)
                #53 0x00007f02b3ef3fd4 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x24f3fd4)
                #54 0x00007f02b3ef3f06 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x24f3f06)
                #55 0x00007f02b3fda855 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x25da855)
                #56 0x00007f02b3333438 n/a (/usr/lib/x86_64-linux-gnu/libwebkitgtk-6.0.so.4.11.5 + 0x1933438)
                #57 0x00007f024a00c038 n/a (n/a + 0x0)
                #58 0x00007f02af9a5efe n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a5efe)
                #59 0x00007f02af9a704e n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a704e)
                #60 0x00007f02af9a704e n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a704e)
                #61 0x00007f02af9a704e n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1a704e)
                #62 0x00007f02af986bbb n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x186bbb)
                #63 0x00007f02b0407285 n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0xc07285)
                
                Stack trace of thread 7:
                #0  0x00007f02b1895489 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x94489)
                #1  0x00007f02b1898212 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x97212)
                #2  0x00007f02b1018436 n/a (/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-6.0.so.1.5.3 + 0x1818436)
                #3  0x00007f02b1898e0e n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x97e0e)
                #4  0x00007f02b191d7d4 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x11c7d4)
                ELF object binary architecture: AMD x86-64

mits-haruko avatar Mar 27 '25 17:03 mits-haruko

I am also encountering a similar issue, with the dev and the snap version of Foliate working correctly but the Flatpak version hanging when opening the same french ebook.

https://github.com/user-attachments/assets/1b05d9cc-fc16-4e5e-914f-0a63a52fadc7

The full log I get this this:

theodor@lapttop ~/P/foliate (gtk4)> flatpak run com.github.johnfactotum.Foliate

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-WARNING **: 16:40:14.912: Gio.IOErrorEnum: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code1: Service 'dbus:org.freedesktop.Tracker3.Miner.Files' not found in Tracker policy
getURIFromTracker@resource:///com/github/johnfactotum/Foliate/library.js:83:60
get@resource:///com/github/johnfactotum/Foliate/library.js:121:42
getBookFromIdentifier@resource:///com/github/johnfactotum/Foliate/library.js:169:36
getBook@resource:///com/github/johnfactotum/Foliate/library.js:166:21
activate@resource:///com/github/johnfactotum/Foliate/library.js:899:63
activate@resource:///com/github/johnfactotum/Foliate/library.js:391:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34
  

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-WARNING **: 16:40:25.969: Gio.IOErrorEnum: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code1: Service 'dbus:org.freedesktop.Tracker3.Miner.Files' not found in Tracker policy
getURIFromTracker@resource:///com/github/johnfactotum/Foliate/library.js:83:60
get@resource:///com/github/johnfactotum/Foliate/library.js:121:42
getBookFromIdentifier@resource:///com/github/johnfactotum/Foliate/library.js:169:36
getBook@resource:///com/github/johnfactotum/Foliate/library.js:166:21
activate@resource:///com/github/johnfactotum/Foliate/library.js:899:63
activate@resource:///com/github/johnfactotum/Foliate/library.js:391:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34
  

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-CRITICAL **: 16:40:26.692: My name is Oh-No-WebKit-Crashed, bug of bugs!

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-CRITICAL **: 16:40:26.693: Look on this line, Developer -- despair!

theodormoroianu avatar Mar 29 '25 16:03 theodormoroianu

@soal How did you manage to disable it?

PeppoDev avatar Apr 04 '25 02:04 PeppoDev

I changed my system language to the same language from ebook, then I reinstall the app and now it works. I tried to came back to the original language and works flawless, also. Sure it should has a better way to do that, but maybe the OS download all I need to read that language.

The language I was trying to reading: pt-BR The default language of my os: en-US My system: Fedora 42

PeppoDev avatar Apr 04 '25 02:04 PeppoDev

How to disable hyphenation (for anyone who looks for workaround):

  1. Open any book in Foliate
  2. Go to three-dot menu on the right
  3. Go to "Font and layout settings"
  4. On "Layout" tab there is hyphenation switch (also default hotkey for open settings is Alt+,)

@PeppoDev I will try the same thing, may be method hyphenation library use is somehow dependent on system language? Or you need to install some packages with langpacks for particular language?..

soal avatar Apr 04 '25 11:04 soal

@soal Thaanks for that.

About the second point, I think is more related to language packages than to sys lang itself. Since I changed back to english default and it still works. So, I belive the better way to solve that is either remove hyphenation or find what we should install for each lang in order to get it working.

PeppoDev avatar Apr 04 '25 12:04 PeppoDev

  • Does this only happen with Flatpak?
  • Is it reproducible when opening a hyphenated webpage in Epiphany?

johnfactotum avatar Apr 08 '25 06:04 johnfactotum

I can reproduce the crash by opening Moby Dick with https://johnfactotum.github.io/foliate-js/reader.html in the Flatpak version of Epiphany (and not in the non-Flatpak version). It does not crash, however, when navigating to the Imprint, Colophon, and Uncopyright sections, even though they contain hyphentated text in the same language (en-US).

johnfactotum avatar Apr 08 '25 07:04 johnfactotum

@johnfactotum I think so, I did not try the non-flat version

PeppoDev avatar Apr 10 '25 15:04 PeppoDev

Well, at least I know the bug wasn't mine. I spent several days looking for an error in the ePubs I was generating. Has anyone reported a bug to WebKit? This bug seems to match https://bugs.webkit.org/show_bug.cgi?id=286466

bbarthes avatar May 04 '25 15:05 bbarthes