Bug 502335 - Lost book covers
Summary: Lost book covers
Status: REPORTED
Alias: None
Product: tellico
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.5.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-02 20:46 UTC by Alexandre Delahaye
Modified: 2025-09-01 07:13 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 Alexandre Delahaye 2025-04-02 20:46:37 UTC
SUMMARY

Tellico keeps "losing" some book covers that I had manually added to the book description. For example, I created a new book entry 2 weeks ago, and I realized today that the book cover has disappeared from the description. This bug seems relatively frequent (about 30 % of my book covers were lost in the last couple of months) but random, at least I haven't been able to identify a pattern.

This issue only affects covers, and not other book properties. I always import covers in jpeg format.

STEPS TO REPRODUCE

I can't provide a procedure to reproduce the bug as it seems to appear randomly. The general steps are quite simple:

1. Manually create a book and add a cover in jpeg format
2. Normally use Tellico for several days/weeks/months

OBSERVED RESULT
Book doesn't have its cover anymore

EXPECTED RESULT
Book keeps its cover

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: wasn't able to find that, not shown in Tellico Help menu
KDE Plasma Version: same
KDE Frameworks Version: same
Qt Version: 5.15.2

ADDITIONAL INFORMATION
-
Comment 1 Robby Stephenson 2025-04-12 21:37:29 UTC
Hi,

(In reply to menoetios from comment #0)
> SUMMARY
> 
> Tellico keeps "losing" some book covers that I had manually added to the
> book description. For example, I created a new book entry 2 weeks ago, and I
> realized today that the book cover has disappeared from the description.
> This bug seems relatively frequent (about 30 % of my book covers were lost
> in the last couple of months) but random, at least I haven't been able to
> identify a pattern.

That's disconcerting. I'm sorry that's happened.

> This issue only affects covers, and not other book properties. I always
> import covers in jpeg format.

Without reproducible pattern or more info, it will be difficult to try to figure out what's happening. Thank you for reporting the issue. Let me ask some follow-up questions:
1. Thank you for the version info, Tellico 3.5.3 and Qt 5.12. That let's me rule out anything related to Qt6
2. How do you add the covers? Do you scan them? Do you add and use the "Save link only" option? Or simply the "Select image..." button?
3. What is your configuration for storing the images? In the Config dialog, General settings, it is either in the data file, in common directory, or directory relative to file
4. Does Tellico ever show an error dialog saying it can't find an image? If you run it from the command-line, is there any debug output?

Thank you for your help.
Comment 2 Alexandre Delahaye 2025-04-30 11:22:08 UTC
Hi Robby,

Sorry for the late response. To answer your questions:

2. I usually add the covers manually, with the "Select image" button. Sometimes I also add books using the "Internet search" menu with the cover being already included.

3. The images are stored in the data file. 

4. When I run Tellico from the command line, I get a lot of lines similar to: 

***ImageFactory::imageById() - not found: "6364b36648b7fed6128fa758ae2f1bf5.jpeg"
Null image for entry: "<book title>" "6364b36648b7fed6128fa758ae2f1bf5.jpeg"


I haven't faced the issue again since I created the bug report, so I can't really add new information. But I'm starting to wonder if at some point I may have inadvertently closed Tellico before the data file was completely saved... I always try to wait until the saving is fully done before closing, but maybe I've been too hasty once or twice. If I use the "Store images in common application directory" instead of data file, would that help avoiding this kind of problem?
Comment 3 Robby Stephenson 2025-06-01 21:00:00 UTC
(In reply to Alexandre Delahaye from comment #2)
> 3. The images are stored in the data file. 
> 
> 4. When I run Tellico from the command line, I get a lot of lines similar
> to: 
> 
> ***ImageFactory::imageById() - not found:
> "6364b36648b7fed6128fa758ae2f1bf5.jpeg"
> Null image for entry: "<book title>" "6364b36648b7fed6128fa758ae2f1bf5.jpeg"

Thanks for the additional information, that's helped me narrow down where I'm looking. The error does indicate that images referenced in the data file are not being found.

> I haven't faced the issue again since I created the bug report, so I can't
> really add new information. But I'm starting to wonder if at some point I
> may have inadvertently closed Tellico before the data file was completely
> saved... I always try to wait until the saving is fully done before closing,
> but maybe I've been too hasty once or twice. If I use the "Store images in
> common application directory" instead of data file, would that help avoiding
> this kind of problem?

If you close Tellico without saving, there should be a warning dialog, and yes, the saving should finish before closing, but your experience makes me wonder if there's an issue there. Saving the images in the common directory is much faster, especially when you have many images, and so the saving is likely to be faster, as well, which could avoid the problem, but I'm not quite sure yet. I'll keep trying to reproduce it.