foliate icon indicating copy to clipboard operation
foliate copied to clipboard

Foliate won't load books

Open SubatomicCat opened this issue 4 years ago • 20 comments

Describe the bug Foliate flatpak won't load any books, spinner keeps rotating

To Reproduce Steps to reproduce the behavior:

  1. Open Foliate
  2. Click on any book
  3. See spinning wheel

Expected behavior Have book open up.

Screenshots

Screenshot from 2020-12-05 12-06-16

Version:

  • Foliate version: 2.5.0
  • OS/Distribution and version: Zorin 15.3 [Ubuntu 18.04 LTS based]
  • Desktop environment: GNOME 3.32
  • Installation method: Flatpak

Additional context I guess it is the same issue as #627, but I am not on Fedora.

SubatomicCat avatar Dec 05 '20 15:12 SubatomicCat

Does this happen with every book? Can you post the output when you run it from the terminal?

johnfactotum avatar Dec 05 '20 17:12 johnfactotum

Yes, it happens to every book. Whether I open it from file or the Foliate app.

Gtk-Message: 16:43:08.738: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:43:08.739: Failed to load module "canberra-gtk-module"
Portal call failed: Failed to start command: Failed to execute child process “dict” (No such file or directory)
Portal call failed: Failed to start command: Failed to execute child process “sdcv” (No such file or directory)
Gtk-Message: 16:43:19.179: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:43:19.182: Failed to load module "canberra-gtk-module"

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.368: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.369: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.373: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

(com.github.johnfactotum.Foliate:2): Gtk-CRITICAL **: 16:43:31.374: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Gtk-Message: 16:43:31.578: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:43:31.579: Failed to load module "canberra-gtk-module"

(com.github.johnfactotum.Foliate:2): Gjs-WARNING **: 16:43:42.772: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
  main@resource:///com/github/johnfactotum/Foliate/js/main.js:474:24
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  @/app/bin/com.github.johnfactotum.Foliate:9:17

SubatomicCat avatar Dec 05 '20 19:12 SubatomicCat

Have you tried updating your system as well as all the Flatpak runtimes? Can you post the output when you run it with G_MESSAGES_DEBUG=all or --verbose?

johnfactotum avatar Dec 15 '20 06:12 johnfactotum

Same issue happens on PostmarketOS Foliate version: 2.5.0 OS/Distribution and version: PostmarketOS edge [Alpine edge based] Desktop environment: Phosh 0.7.1 Installation method: Flatpak or apk and manual build from master (e613330db24a90ab13a12556a606d8ebd65d5fcc)

output of G_MESSAGES_DEBUG=all foliate (apk version)

(WebKitWebProcess:2): Gdk-WARNING **: 12:45:50.243: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Atk-CRITICAL **: 12:45:53.094: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:45:53.095: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:45:53.095: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:45:53.095: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Gdk-WARNING **: 12:46:05.779: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Gdk-WARNING **: 12:46:05.788: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Gdk-WARNING **: 12:46:06.044: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.627: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.628: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.628: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.628: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.648: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.648: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.649: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.649: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
CONSOLE SECURITY ERROR The Content Security Policy directive 'sandbox' is ignored when delivered via an HTML meta element.
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.665: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.666: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.666: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.666: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.695: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.695: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:09.695: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:09.695: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
CONSOLE SECURITY ERROR The Content Security Policy directive 'sandbox' is ignored when delivered via an HTML meta element.
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:10.235: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:10.236: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:10.236: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:10.236: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:10.384: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:10.385: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:10.385: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:10.385: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
CONSOLE SECURITY ERROR The Content Security Policy directive 'sandbox' is ignored when delivered via an HTML meta element.
(com.github.johnfactotum.Foliate:17943): Gjs-CRITICAL **: 12:46:10.807: JS ERROR: TypeError: entries is undefined
preview/</<@resource:///com/github/johnfactotum/Foliate/js/library.js:862:37
_init/<@resource:///com/github/johnfactotum/Foliate/js/opds.js:744:26
main@resource:///com/github/johnfactotum/Foliate/js/main.js:474:24
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
@/usr/bin/foliate:9:17
(WebKitWebProcess:2): Gdk-WARNING **: 12:46:12.593: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:15.556: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:15.557: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:15.557: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:15.557: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
CONSOLE SECURITY ERROR The Content Security Policy directive 'sandbox' is ignored when delivered via an HTML meta element.
(WebKitWebProcess:2): Gdk-WARNING **: 12:46:17.595: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:19.595: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:19.595: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:19.595: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:19.595: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
CONSOLE SECURITY ERROR The Content Security Policy directive 'sandbox' is ignored when delivered via an HTML meta element.
(com.github.johnfactotum.Foliate:17943): Gtk-WARNING **: 12:46:24.563: Attempting to add a widget with type GtkBox to a GtkMenuButton, but as a GtkBin subclass a GtkMenuButton can only contain one widget at a time; it already contains a widget of type GtkAlignment
(com.github.johnfactotum.Foliate:17943): Gtk-WARNING **: 12:46:27.527: Attempting to add a widget with type GtkBox to a GtkMenuButton, but as a GtkBin subclass a GtkMenuButton can only contain one widget at a time; it already contains a widget of type GtkAlignment
(WebKitWebProcess:2): Gdk-WARNING **: 12:46:29.076: Settings portal not found: Could not connect: Connection refused
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:31.623: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:31.623: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(WebKitWebProcess:2): Atk-CRITICAL **: 12:46:31.623: atk_state_set_contains_state: assertion 'ATK_IS_STATE_SET (set)' failed
(WebKitWebProcess:2): GLib-GObject-CRITICAL **: 12:46:31.623: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

paper42 avatar Dec 28 '20 13:12 paper42

I get these errors on Manjaro/i3 using foliate from community repo:

(gjs:91983): GLib-GIO-DEBUG: 12:37:15.448: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
(com.github.johnfactotum.Foliate:91983): GLib-GIO-DEBUG: 12:37:15.555: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.555: watch_fast: "/system/locale/" (establishing: 0, active: 0)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.556: watch_established: "/system/locale/" (establishing: 1)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.566: watch_fast: "/com/github/johnfactotum/Foliate/" (establishing: 0, active: 0)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.566: watch_established: "/com/github/johnfactotum/Foliate/" (establishing: 1)
(com.github.johnfactotum.Foliate:91983): GLib-DEBUG: 12:37:15.719: unsetenv() is not thread-safe and should not be used after threads are created
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.867: watch_fast: "/com/github/johnfactotum/Foliate/" (establishing: 0, active: 1)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.868: watch_fast: "/com/github/johnfactotum/Foliate/view/" (establishing: 0, active: 0)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.868: watch_fast: "/com/github/johnfactotum/Foliate/" (establishing: 0, active: 2)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.869: watch_established: "/com/github/johnfactotum/Foliate/view/" (establishing: 1)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.883: watch_fast: "/com/github/johnfactotum/Foliate/" (establishing: 0, active: 3)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.904: watch_fast: "/com/github/johnfactotum/Foliate/view/" (establishing: 0, active: 1)
(com.github.johnfactotum.Foliate:91983): Foliate-DEBUG: 12:37:15.909: failed to get file info
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.919: watch_fast: "/com/github/johnfactotum/Foliate/" (establishing: 0, active: 4)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.919: watch_fast: "/com/github/johnfactotum/Foliate/window-state/" (establishing: 0, active: 0)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.919: watch_fast: "/com/github/johnfactotum/Foliate/view/" (establishing: 0, active: 2)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.919: watch_established: "/com/github/johnfactotum/Foliate/window-state/" (establishing: 1)
(com.github.johnfactotum.Foliate:91983): Foliate-DEBUG: 12:37:15.928: failed to get file info
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.936: watch_fast: "/com/github/johnfactotum/Foliate/library/" (establishing: 0, active: 0)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.937: watch_established: "/com/github/johnfactotum/Foliate/library/" (establishing: 1)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.941: watch_fast: "/com/github/johnfactotum/Foliate/library/" (establishing: 0, active: 1)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.947: watch_fast: "/com/github/johnfactotum/Foliate/" (establishing: 0, active: 5)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.947: watch_fast: "/com/github/johnfactotum/Foliate/window-state/" (establishing: 0, active: 1)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.947: watch_fast: "/com/github/johnfactotum/Foliate/view/" (establishing: 0, active: 3)
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:15.947: watch_fast: "/com/github/johnfactotum/Foliate/library/" (establishing: 0, active: 2)
(com.github.johnfactotum.Foliate:91983): GLib-DEBUG: 12:37:15.950: unsetenv() is not thread-safe and should not be used after threads are created
(com.github.johnfactotum.Foliate:91983): Gtk-DEBUG: 12:37:15.950: Connecting to session manager
(process:92013): GLib-GIO-DEBUG: 12:37:16.532: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(process:92013): GLib-GIO-DEBUG: 12:37:16.543: _g_io_module_get_default: Found default implementation networkmanager (GNetworkMonitorNM) for ?gio-network-monitor?
(process:92013): GLib-GIO-DEBUG: 12:37:16.553: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
(WebKitWebProcess:2): GVFS-DEBUG: 12:37:16.580: org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

(WebKitWebProcess:2): GLib-GIO-DEBUG: 12:37:16.580: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
** (process:92007): DEBUG: 12:37:17.897: Error reading from socket: Error receiving message: Connection reset by peer
(com.github.johnfactotum.Foliate:91983): dconf-DEBUG: 12:37:25.637: unwatch_fast: "/system/locale/" (active: 1, establishing: 0)

martinbrylski avatar Jan 06 '21 11:01 martinbrylski

I have the same issue with Foliate 2.6.2 on Ubuntu 20.04, installed from Flatpak. It used to work fine, and I don’t know what change or updated caused this, but when I now try to open a book, I get the same behaviour.

frederik-elwert avatar Mar 30 '21 19:03 frederik-elwert

@frederik-elwert Can you post the logs?

To be honest this seems a bit mysterious to me.

In the past, there were bugs that caused this behavior, where the book is in fact opened, just no displayed. That does not seem to be the case here.

I can't reproduce this, and looking at the messages, it appears that it did not even finish loading JavaScript into the WebView. So it feels more like #504 and #627 where WebKit just refused to function for some reason.

johnfactotum avatar Mar 31 '21 01:03 johnfactotum

Sure. Is G_MESSAGES_DEBUG=all flatpak run com.github.johnfactotum.Foliate all you need? Or how do I obtain the logs you need?

Attached is the log I got. foliate.log

frederik-elwert avatar Mar 31 '21 19:03 frederik-elwert

@frederik-elwert From the messages, it seems that the file you were opening could not be found:

(com.github.johnfactotum.Foliate:2): Gjs-WARNING **: 21:31:53.209: JS ERROR: Gio.IOErrorEnum: Fehler beim Holen der Informationen für Datei »/home/frederik/2«: Datei oder Verzeichnis nicht gefunden
getFileInfoAsync/</<@resource:///com/github/johnfactotum/Foliate/js/utils.js:892:30
main@resource:///com/github/johnfactotum/Foliate/js/main.js:476:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/app/bin/com.github.johnfactotum.Foliate:9:17


(com.github.johnfactotum.Foliate:2): Gjs-WARNING **: 21:31:53.209: JS ERROR: Error: File not found.
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:623:57
open@resource:///com/github/johnfactotum/Foliate/js/epubView.js:1130:42
async*open@resource:///com/github/johnfactotum/Foliate/js/window.js:1033:20
_init@resource:///com/github/johnfactotum/Foliate/js/window.js:987:29
main/<@resource:///com/github/johnfactotum/Foliate/js/main.js:254:22
main@resource:///com/github/johnfactotum/Foliate/js/main.js:476:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/app/bin/com.github.johnfactotum.Foliate:9:17

In this case, you should be seeing an error page saying "File not found." Is that not what you're seeing?

johnfactotum avatar Apr 01 '21 02:04 johnfactotum

Ah, right, sorry. That's what I see when I first open the app, when it tries to open the last file. That must be from a previous attempt. Then I try to open a file through the file picker, and that's when I get the infinite spinner.

Previously, I also got the spinner on application launch when it was trying to open the last file and that did exist.

frederik-elwert avatar Apr 01 '21 05:04 frederik-elwert

I can reproduce the issue on mine, although it comes in a period where I should study rather than read e-books, so it is unexpectedly useful :D

Re-opening the app sometimes helps. Thank you for the awesome app

Portal call failed: Failed to start command: Kindprozess ?dict? konnte nicht ausgef?hrt werden (Datei oder Verzeichnis nicht gefunden)
Portal call failed: Failed to start command: Kindprozess ?sdcv? konnte nicht ausgef?hrt werden (Datei oder Verzeichnis nicht gefunden)
flatpak-spawn: Invalid byte sequence in conversion input
Try "flatpak-spawn --help" for more information.

cunidev avatar Apr 20 '21 07:04 cunidev

@cunidev That looks like https://github.com/flathub/org.gnome.Epiphany/issues/21.

johnfactotum avatar Apr 22 '21 10:04 johnfactotum

It does. But the "dict" and "sdcv" part is Foliate-only I guess?

I cannot imagine why Epiphany would call an external dictionary command on host machine...

cunidev avatar Apr 22 '21 10:04 cunidev

The parts where it says that dict and sdcv are not found are harmless. Those would occur in any case as long as those commands are not accessible on the host.

The main problem here is flatpak-spawn: Invalid byte sequence in conversion input. It's known (at least according to the issue I linked) that running WebKitGTK 2.32 in Flatpak would crash with this error when running with mixed locales. If you are using mixed locales and are running WebKitGTK 2.32, it's probably the same issue. You may also try disabling the sandbox WEBKIT_FORCE_SANDBOX=0 as a workaround.

In generally, whenever you get stuck at the spinner, there can only be two kinds of issues:

  • Some error occurred within the WebView. If this is the case, it's a programmer's error on Foliate's part.
  • Or, the whole WebKit process crashed for some reason. This can be due to any number of reasons, but not usually something that Foliate can control.

Now, Foliate doesn't handle the second case. So when the WebKit process crashes it's basically stuck. So what it should do is connecting to the web-process-terminated signal (see https://github.com/johnfactotum/foliate/issues/707#issuecomment-818363642) so it'll at least show an error page.

johnfactotum avatar Apr 22 '21 11:04 johnfactotum

Thanks a lot for the information! I manage to run Foliate anyway by re-opening it one or two times usually, which is interesting

cunidev avatar Apr 22 '21 11:04 cunidev

I can report that WEBKIT_FORCE_SANDBOX=0 worked for me.

My locale:

LANG=de_DE.UTF-8
LANGUAGE=de_DE:en

frederik-elwert avatar Apr 22 '21 12:04 frederik-elwert

I have the same issue, I tried with the Flatpak, Snap and .deb I'm using Ubuntu 21.04 All my system is up-to-date (Flatpaks, APT, Snaps).

Robertschv avatar Aug 01 '21 22:08 Robertschv

On my end this seems related to application window focus. If I just launch the app and try to have it load the last active book then it will just sit there spinning. Often forever, sometimes just for a long time.

If, however, I switch to a different application while it is loading the book it will complete almost instantly in the background.

Something something async and/or timers?

In either scenario there's nothing out of the ordinary in the debug log,

AngryAnt avatar Jun 18 '22 09:06 AngryAnt

@AngryAnt this is also what's happenning in this bug report: https://github.com/johnfactotum/foliate/issues/879

tomicakorac avatar Jul 20 '22 17:07 tomicakorac

Version 2.6.4 also not opening books (installed from AUR). Running with --verbose says nothing of value, no errors, just says loading items.

nPHYN1T3 avatar Aug 26 '22 00:08 nPHYN1T3

On Linux Mint 22 MATE 64-bit, with v2.64 deb, running from terminal

com.github.johnfactotum.Foliate --verbose 'direct epub file path'

prints nothing when loading a "forever spinner" validated epub, like a translated copy of "Ascendance of a Bookworm" Part 5 Volume 2.

The lack of any, or too little, output for verbose may well be another bug; if this bug is in an async task, then the async tasks probably needs to somehow log debug messages too, to help pin-down where the issue is. The ability to force a debug dump of internal state, like the parser position(s), from a GUI menu item or a too-long timeout, may also be helpful for the developer(s).

rwperrott avatar Dec 06 '22 01:12 rwperrott

prints nothing

Do you mean that it doesn't print anything useful? If it literally does not print a single line at all, that would indeed be a bug.

The ability to force a debug dump of internal state, like the parser position(s), from a GUI menu item or a too-long timeout, may also be helpful for the developer(s).

Well, there's one trick that one can use to access the WebView, as well as its devtools, when stuck at the spinner: use GTK inspector (Ctrl + Shift + I or D), and hide the spinner and set the opacity of the webview to 1. Then you can right click on the webview > Inspect Element.

johnfactotum avatar Dec 06 '22 07:12 johnfactotum

I still have this same problem. On a Librem5 running PureOS that is totally current when it comes to updates and upgrades. Any chance it will be solved?

wimdows avatar Apr 23 '23 20:04 wimdows

There's a lot of totally different bugs going on here. Some of them are already resolved. Others lack information. And the v2.x versions won't be worked on anymore. So I think this issue should be closed as there's nothing useful to be done here.

johnfactotum avatar Jun 01 '23 17:06 johnfactotum