https://bugs.kde.org/show_bug.cgi?id=453876

            Bug ID: 453876
           Summary: kf.plasma.core: findInCache with a lastModified
                    timestamp of 0 is deprecated
           Product: frameworks-plasma
           Version: 5.94.0
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: libplasma
          Assignee: plasma-b...@kde.org
          Reporter: trav...@redhat.com
                CC: beedellrokejulianlockh...@gmail.com,
                    kdelibs-b...@kde.org, m...@ratijas.tk, n...@kde.org,
                    notm...@gmail.com, plasma-b...@kde.org,
                    rdie...@gmail.com, yosukematsum...@gmail.com
        Depends on: 442011
  Target Milestone: ---

Clone to track the specific error message from
https://api.kde.org/frameworks/plasma-framework/html/theme_8cpp_source.html#l00280

+++ This bug was initially created as a clone of Bug #442011 +++


SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
SUMMARY

In some cases (exact reproducible steps not found yet), Plasma will fail to
display any application icon on Fedora Kinoite.

On Fedora Kinoite, all files in /usr are set with the UNIX timestamp of 0.
Running plasmashell in a terminal will show that line repeatedly:

kf.plasma.core: findInCache with a lastModified timestamp of 0 is deprecated

Updating the timestamps on those files and running kbuildsyscoca5 temporarily
fixes the issue.

This is most likely due to a confusion in:
https://api.kde.org/frameworks/plasma-framework/html/theme_8cpp_source.html#l00280
where lastModified is here truly 0 and not left to the default value.

An option would be to use 1 instead when looking at a file with a 0 timestamp
in the calling code but I have not found where this function is called yet.

STEPS TO REPRODUCE
1. Clean icon cache
2. Set an application icon file, desktop entry, etc. timestamp to UNIX time 0
3. plasma-shell --replace

OBSERVED RESULT

Lots of:
kf.plasma.core: findInCache with a lastModified timestamp of 0 is deprecated

Application has no icon.

EXPECTED RESULT

Applications has an icon.

SOFTWARE/OS VERSIONS
Fedora Linux 35 & Rawhide
Linux/KDE Plasma: 5.22.4
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This is similar to https://bugs.kde.org/show_bug.cgi?id=429196 but I could not
get this working with the same workaround.


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=442011
[Bug 442011] kf.plasma.core: findInCache with a lastModified timestamp of 0 is
deprecated
-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to