Bug 490922 - Tellico loads all images into memory even when one entry is selected.
Summary: Tellico loads all images into memory even when one entry is selected.
Status: RESOLVED FIXED
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 3.5.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-28 12:12 UTC by Pratch Hemapanpairo
Modified: 2024-12-19 03:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pratch Hemapanpairo 2024-07-28 12:12:22 UTC
SUMMARY
Tellico loads all images into memory even when one entry is selected.

STEPS TO REPRODUCE
1. Open a Tellico collection.
2. Select one entry (any entry) in the collection).

OBSERVED RESULT
After Step (1), Tellico acts very normal. Menus and buttons all react promptly. After Step (2) however, Tellico memory consumption skyrocketed (in my case, with 10000+ records, to the GBs). Trying accessing a collection I stored remotely via SSHFS showed high volume of incoming traffic, indicating image loading is underway. I tried again after renaming the image directory (thus making the image unloadable), and Tellico was fast again, confirming my suspicion.

EXPECTED RESULT
Tellico should only load the image associated with the selected entry/entries, not all images associated with the collection.

SOFTWARE/OS VERSIONS
Linux: Ubuntu 24.04 (Kernel 6.8.0-39, GNOME 46, Wayland Windowing System): Last updated 2024.07.27
Qt Version: 5.15.13
Tellico Version: 3.5.3 (See additional information)

ADDITIONAL INFORMATION
- This behavior is previously observed (and expected) only when all entries are selected. When working with large collections, I have to be careful not to press Ctrl+A. Now it is present even if one entry is selected.
- The behavior is first observed on v3.5.3. I tried updating to v3.5.5 but the problem was still there. So I tries downgrading to v3.2.3 (The one that used to run perfectly on Ubuntu 20.04), surprisingly, the problem followed me down there as well. This looks like a problem within some of Tellico's dependencies, but I have no way to confirm this hunch.
Comment 1 Robby Stephenson 2024-08-13 22:36:55 UTC
Do you have the icon view visible? If so, then Tellico needs to load all the images to show the covers.
Comment 2 Pratch Hemapanpairo 2024-08-15 11:16:43 UTC
(In reply to Robby Stephenson from comment #1)
> Do you have the icon view visible? If so, then Tellico needs to load all the
> images to show the covers.

In short: No.

I have been limiting myself to "column view" and keeping a good distance from "icon view" since the collection reached higher thousands. In an older version, selecting multiple entries in the "column view" used to trigger "icon view" in the "entry view" area. This behaviour has been done away with (to my RAM's relief).
Comment 3 Robby Stephenson 2024-08-16 01:52:46 UTC
(In reply to Pratch Hemapanpairo from comment #2)
> (In reply to Robby Stephenson from comment #1)
> > Do you have the icon view visible? If so, then Tellico needs to load all the
> > images to show the covers.
> 
> In short: No.

Thanks. I believe the issue is due to assumptions within Tellico about what data files are considered local and which are not. I'll continue to investigate. Thanks for reporting.