johnfactotum / foliate

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

Consistent crash upon expanding the annotation type menu #1351

Open yue-dongchen opened 2 months ago

yue-dongchen commented 2 months ago

Describe the bug The annotation dialogue cannot be dismissed. The application then crashes.

To Reproduce Steps to reproduce the behavior: (see below for screen recording)

  1. Invoke the annotation dialogue (click on an existing annotation, or select and create a new one).
  2. Click on the annotation type selector menu. Irrelevant whether you switch to another annotation type (i.e. colours/underline) or collapse the menu without switching.
  3. Click outside the annotation dialogue and observe that it cannot be dismissed.
  4. Click either of the top-right two buttons (delete, "more options"), or press the "escape" key.
  5. The app crashes.

Expected behavior That the app does not crash, regardless of whether the annotation type has been changed (in both cases a crash occurs).

Screen recording (12 s, 1.8 MB) Screencast from 2024-07-07 22-26-56.webm

Version:

Additional context

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-WARNING **: 22:30:40.510: 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:860:63
activate@resource:///com/github/johnfactotum/Foliate/library.js:386:18
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
johnfactotum commented 1 month ago

Can you get a backtrace? This is likely a GTK bug.

yue-dongchen commented 1 month ago

Thanks for the reply. I will try.

ouyama-sa commented 2 weeks ago

I am having the same issue: here's the terminal output.

I am on Arch Linux, GNOME v46.4 on Wayland. My installation was from the official Arch repository, foliate 3.1.1-1.

Screencast from 2024-08-20 12-13-45.webm