johnfactotum / foliate

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

Book Cannot Be Opened: Error The I/O read operation failed #1222

Closed HosseinOJ closed 8 months ago

HosseinOJ commented 8 months ago

Describe the bug The latest version 3.0.1 installed from Snap cannot open files, throwing "The I/O read operation failed" error.

To Reproduce Steps to reproduce the behavior:

  1. Go to application main page
  2. Click on 'Open'
  3. Select a file and open
  4. See error in the main page "Book Cannot Be Opened"
  5. Click on 'Details'
  6. See detailed error "Error: The I/O read operation failed"

Expected behavior it does not open ebooks.

Screenshots If applicable, add screenshots to help explain your problem.

Version:

Additional context It seems Snap does not have sufficient permission. Taken from syslog: "audit: type=1400 audit(1705247889.759:1869): apparmor="DENIED" operation="open" profile="snap.foliate.foliate" name="/proc/zoneinfo" pid=41348 comm="PressureMonitor" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0"

johnfactotum commented 8 months ago

Does it only happen with the Snap package? What about Flatpak or deb? Is the file on a removable media? Or a network/remote location?

HosseinOJ commented 8 months ago

Here is the new info: The issue happened only when I installed the package from Graphical Snap package manager. I removed it, then installed it via Snap CLI and it works smoothly. I have not tried the other installation methods e.g. deb package, Flatpak etc.