johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.15k stars 283 forks source link

Snap: Failed to spawn child process “/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitNetworkProcess” #1102

Open videni opened 10 months ago

videni commented 10 months ago

Error

(base) ➜  ~ foliate

(com.github.johnfactotum.Foliate:133145): Gtk-WARNING **: 16:11:28.455: No IM module matching GTK_IM_MODULE=fcitx found

(com.github.johnfactotum.Foliate:133145): com.github.johnfactotum.Foliate-WARNING **: 16:11:29.626: Error: Requiring Tracker, version none: Typelib file for namespace 'Tracker' (any version) not found
getURIFromTracker@resource:///com/github/johnfactotum/Foliate/library.js:16:24
get@resource:///com/github/johnfactotum/Foliate/library.js:56:42
getBookFromIdentifier@resource:///com/github/johnfactotum/Foliate/library.js:105:36
getBook@resource:///com/github/johnfactotum/Foliate/library.js:101:21
activate@resource:///com/github/johnfactotum/Foliate/library.js:394:63
activate@resource:///com/github/johnfactotum/Foliate/library.js:322:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

** (com.github.johnfactotum.Foliate:133145): WARNING **: 16:11:29.632: Could not open /etc/machine-info: Failed to open file “/etc/machine-info”: Permission denied

** (com.github.johnfactotum.Foliate:133145): WARNING **: 16:11:29.632: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

** (com.github.johnfactotum.Foliate:133145): WARNING **: 16:11:29.632: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied

** (com.github.johnfactotum.Foliate:133145): ERROR **: 16:11:29.633: Unable to spawn a new child process: Failed to spawn child process “/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitNetworkProcess” (No such file or directory)
[1]    133145 trace trap (core dumped)  foliate

System

Ubuntu 23.04

Nutjob commented 10 months ago

Got the exact same crash and log with the snap version on Ubuntu 18.04.5 LTS. Up until yesterday it worked fine.

johnfactotum commented 10 months ago

Is this from using the Snap package?

Nutjob commented 10 months ago

Is this from using the Snap package?

In my case, yes. I just updated and now it has the same crash and error log as described by @videni

johnfactotum commented 10 months ago

@soumyaDghosh

soumyaDghosh commented 10 months ago

Never thought, this error may come up in user machines. So, unexpected to me. But, probably this should fix it.

sudo /usr/lib/snapd/snap-discard-ns foliate
Nutjob commented 10 months ago

Never thought, this error may come up in user machines. So, unexpected to me. But, probably this should fix it.

sudo /usr/lib/snapd/snap-discard-ns foliate

Just tested it, it works now!

soumyaDghosh commented 10 months ago

Just tested it, it works now!

Interesting! Let me take this to the forum. This is actually a regression by snapd for third party content snaps.

soumyaDghosh commented 10 months ago

https://forum.snapcraft.io/t/third-party-content-snaps-suddenly-facing-apparmor-snapd-regression/37580

To keep a track on this issue.

videni commented 10 months ago

yes, I also use snap package

Never thought, this error may come up in user machines. So, unexpected to me. But, probably this should fix it.

sudo /usr/lib/snapd/snap-discard-ns foliate

this one works

soumyaDghosh commented 10 months ago

@johnfactotum keep this open for now please.

Nutjob commented 10 months ago

Just noticed I can no longer add books to the library, foliate crashes immediately when I do. This is still the Snap package, here's the log:

Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in isn't supported and may not work as expected /usr/share/libdrm/amdgpu.ids: No such file or directory /usr/share/libdrm/amdgpu.ids: No such file or directory

(com.github.johnfactotum.Foliate:32765): Gtk-WARNING **: 15:59:23.522: No IM module matching GTK_IM_MODULE=ibus found

(com.github.johnfactotum.Foliate:32765): GLib-GIO-WARNING **: 15:59:26.351: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)

(com.github.johnfactotum.Foliate:32765): WARNING : 15:59:44.856: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

(com.github.johnfactotum.Foliate:32765): WARNING : 15:59:44.856: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied

(com.github.johnfactotum.Foliate:32765): ERROR : 15:59:44.860: Unable to spawn a new child process: Failed to spawn child process “/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitNetworkProcess” (No such file or directory) Trace/breakpoint trap (core dumped)

Nutjob commented 10 months ago

And I just noticed it also no longer even open books that were already in the library, here's the crash log for that one:

Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in isn't supported and may not work as expected /usr/share/libdrm/amdgpu.ids: No such file or directory /usr/share/libdrm/amdgpu.ids: No such file or directory

(com.github.johnfactotum.Foliate:1664): Gtk-WARNING **: 16:10:07.859: No IM module matching GTK_IM_MODULE=ibus found

(com.github.johnfactotum.Foliate:1664): com.github.johnfactotum.Foliate-WARNING **: 16:10:11.057: Error: Requiring Tracker, version none: Typelib file for namespace 'Tracker' (any version) not found getURIFromTracker@resource:///com/github/johnfactotum/Foliate/library.js:16:24 get@resource:///com/github/johnfactotum/Foliate/library.js:56:42 getBookFromIdentifier@resource:///com/github/johnfactotum/Foliate/library.js:105:36 getBook@resource:///com/github/johnfactotum/Foliate/library.js:101:21 activate@resource:///com/github/johnfactotum/Foliate/library.js:394:63 activate@resource:///com/github/johnfactotum/Foliate/library.js:322:18 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.johnfactotum.Foliate:1664): WARNING : 16:10:11.075: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

(com.github.johnfactotum.Foliate:1664): WARNING : 16:10:11.075: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied

(com.github.johnfactotum.Foliate:1664): ERROR : 16:10:11.078: Unable to spawn a new child process: Failed to spawn child process “/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitNetworkProcess” (No such file or directory) Trace/breakpoint trap (core dumped)

soumyaDghosh commented 10 months ago

Same error. Rerun the command above. It'll be fixed. Until you face this in future, please continue doing so. This is a snapd regression third party content snaps and I have created an issue in the forum. Hope it'll fixed soon.

Nutjob commented 10 months ago

This is a snapd regression third party content snaps and I have created an issue in the forum. Hope it'll fixed soon.

Thanks for the quick update, let's hope this gets fixed soon upstream.