Bug 469127 - EPUB's do not open without Internet connection
Summary: EPUB's do not open without Internet connection
Status: RESOLVED FIXED
Alias: None
Product: Arianna
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Carl Schwan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-29 06:03 UTC by ningirsu enlil
Modified: 2023-05-14 22:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ningirsu enlil 2023-04-29 06:03:39 UTC
SUMMARY

STEPS TO REPRODUCE
1. Open Arianna
2. Select any epub in the list 
3. Open it to read

OBSERVED RESULT
Blank page, without internet connection, opens fine when internet is connected. 

EXPECTED RESULT
Epub's in my documents folder should open fine without internet connection after installation and opening the app for the first time when it searches for epub's in the computer and displays list of epub's .

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux\
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Comment 1 ningirsu enlil 2023-04-29 06:54:22 UTC
Without Internet connection :Just a blank page with below error .
"
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
qml: WEB: Not allowed to load local resource: file:///home/username/filename.epub 1 
qml: WEB: Uncaught ReferenceError: setStyle is not defined 1 
qml: Book error JSZip lib not loaded
qrc:/content/ui/EpubViewerPage.qml:336: Error: Cannot assign to non-existent property "file"
"

With Internet connection:File opens fine. 

Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
qml: WEB: Not allowed to load local resource: file:///home/username/filename.epub 1 
qml: WEB: Uncaught ReferenceError: setStyle is not defined 1 
qml: WEB: margin 40 1400 297 qrc:/content/ui/epub-viewer.js
Comment 2 Harry K 2023-05-11 13:10:03 UTC
Could not reproduce in latest build of Arianna. Epubs opened ok with or without internet connection.
Comment 3 ningirsu enlil 2023-05-14 04:50:15 UTC
(In reply to Harry K from comment #2)
> Could not reproduce in latest build of Arianna. Epubs opened ok with or
> without internet connection.

Ensure Network Connection shows disconnected status. 
Clear /home/username/.cache folder. 
Reboot if required. 
Thanks.
Comment 4 Carl Schwan 2023-05-14 22:03:10 UTC
Git commit ed02f36e38d20a362a6634046b992be1075ee18f by Carl Schwan.
Committed on 14/05/2023 at 21:57.
Pushed by carlschwan into branch 'master'.

Fix using arianna without internet

This should also minimally improve the speed

M  +4    -0    .reuse/dep5
A  +15   -0    src/content/ui/jszip.min.js
M  +2    -2    src/content/ui/main.html
M  +1    -0    src/resources.qrc

https://invent.kde.org/graphics/arianna/commit/ed02f36e38d20a362a6634046b992be1075ee18f