I keep .epub files in DT so that their contents are included in search results.
The problem is that some .epub files freeze DT for up to several minutes when they are selected.
This happens with something like 10% of epub files, and it’s consistent – problematic epub files are always problematic, and non-problematic epub files are always non-problematic.
The problem always clears up on its own after waiting long enough. At the end of the wait the .epub is always rendered correctly and can be browsed without further freezes. The only additional freeze occurs if the problematic .epub is unselected and then selected again.
DT always runs at exactly 100% CPU usage throughout the freeze.
The .epub files in question are technical books with relatively complicated rendering.
Screenshots (the first one should have a spinning beachball, which wasn’t captured):
Does the file contain a lot of pages & images? What’s its file size?
In case of search results the alternate view is used to highlight all occurrences but this might require some time as the complete document has to be loaded & rendered (contrary to the default view).
The best workaround currently is probably to convert it to PDF (e.g. via Calibre).
The .epub from the screenshots was 65 MB and had a lot of images and formatting. It froze DT for something like 5 minutes. It’s a paid book so I can’t post it here. None of the free books I have are nearly as bad. This one freezes DT for around 15 seconds when it is selected from search results: