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

Foliate crashes upon adding OPDS url #1353

Open alazyworkaholic opened 1 month ago

alazyworkaholic commented 1 month ago

Foliate crashes upon adding OPDS url

To Reproduce

  1. Open Calibre, start its content server listening on port 26657 (requiring a user password or not).
  2. Verify you download a valid "atom.opds" by visting http://localhost:26657/opds from a web browser (firefox).
  3. Install foliate
  4. Open foliate
  5. Click on "+ Add Catalog" in left pane.
  6. Insert http://localhost:26657/opds then press enter.
  7. foliate crashes

Expected behavior I expect foliate to show a books from my Calibre library, or at least tell me why it can't

Screenshots N/A

Version:

Additional context Caliber server logs:

calibre server listening on [::]:26657
OPDS feeds advertised via BonJour at: 192.168.42.74 port: 26657

Starting foliate from the terminal returns this upon crashing:

alazy@i7:~$ /usr/local/bin/foliate
bwrap: setting up uid map: Permission denied

** (com.github.johnfactotum.Foliate:1598498): ERROR **: 23:04:54.304: Failed to fully launch dbus-proxy: Child process exited with code 1
Trace/breakpoint trap (core dumped)
johnfactotum commented 1 month ago

Can you provide the backtrace?

alazyworkaholic commented 1 month ago

Can you provide the backtrace?

How? I barely know what that means, but I'll follow your instructions.

johnfactotum commented 1 month ago

To get a backtrace, you need to run Foliate with the gdb command. See for example https://blogs.gnome.org/mcatanzaro/2021/09/18/creating-quality-backtraces-for-crash-reports/ for more details.

This kind of crashes often signals a bug in GJS, GTK, or WebKitGTK, though.

alazyworkaholic commented 1 month ago

I managed to produce this: core.foliate.2526.many.numbers.gz Does it help? Note I had to zstd -d X.zst --stdout | gzip -9 > Y.gz to upload it.