lhirlimann
(Ludovic Hirlimann)
June 1, 2022, 8:31am
1
Since I’ve upgraded to Fedora36, foliate
won’t open .epub
files anymore. The issue is documented upstream at glib2 2.72.0 causes "Empty response" · Issue #878 · johnfactotum/foliate · GitHub .
Solution involves resetting ~/.local/share/mime/mime.cache
, is there a command line tool for that? Is there a way to reset and do a diff to see what changed?
Shall I raise a Bugzilla issue for fedora ?
grumpey
(Joe Walker)
June 1, 2022, 9:19am
2
remove the file and then`update-mime-database ~/.local/share/mime.
It looks like isn’t always fixing the issue,
opened 06:41AM - 23 Mar 22 UTC
bug
**Describe the bug**
Opening any epub causes foliate to show "Could not open fi… le" with this output:
```
(com.github.johnfactotum.Foliate:16547): Gjs-WARNING **: 23:22:45.931: JS ERROR: Error: Empty Response
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:623:57
_handleAction@resource:///com/github/johnfactotum/Foliate/js/epubView.js:886:22
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:617:18
main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/foliate:9:17
```
**To Reproduce**
Open any epub with glib2 2.72.0
**Version:**
This is with Arch Linux's foliate 2.6.4-1 and glib2 2.72.0-1. Downgrading to Arch's glib2 2.70.4-2 fixes the issue. Honestly, I have no idea why. From past foliate issues, I assumed some other gtk package was involved (eg webkit2gtk 2.36.0-1 to 2.34.6-1, gjs 2:1.70.2-1 to 2:1.70.1-2, js78 78.15.0-4 to 78.15.0-3) but those downgrades don't fix it; only the glib2 downgrade has any effect.
I’m not sure about generating a diff since it is a binary file.