foliate icon indicating copy to clipboard operation
foliate copied to clipboard

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

Open videni opened this issue 2 years ago • 14 comments

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

videni avatar Nov 02 '23 08:11 videni

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

Nutjob avatar Nov 02 '23 08:11 Nutjob

Is this from using the Snap package?

johnfactotum avatar Nov 02 '23 08:11 johnfactotum

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

Nutjob avatar Nov 02 '23 08:11 Nutjob

@soumyaDghosh

johnfactotum avatar Nov 02 '23 09:11 johnfactotum

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

soumyaDghosh avatar Nov 02 '23 09:11 soumyaDghosh

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!

Nutjob avatar Nov 02 '23 09:11 Nutjob

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 avatar Nov 02 '23 09:11 soumyaDghosh

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

To keep a track on this issue.

soumyaDghosh avatar Nov 02 '23 09:11 soumyaDghosh

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

videni avatar Nov 02 '23 09:11 videni

@johnfactotum keep this open for now please.

soumyaDghosh avatar Nov 02 '23 10:11 soumyaDghosh

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 avatar Nov 07 '23 15:11 Nutjob

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)

Nutjob avatar Nov 07 '23 15:11 Nutjob

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.

soumyaDghosh avatar Nov 07 '23 15:11 soumyaDghosh

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.

Nutjob avatar Nov 07 '23 15:11 Nutjob