Bug 427865 - kde-init5 crash in ThumbnailProtocol::get() each time when pc start
Summary: kde-init5 crash in ThumbnailProtocol::get() each time when pc start
Status: RESOLVED DUPLICATE of bug 430862
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-17 13:56 UTC by Eric
Modified: 2021-03-17 23:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kde-init5 crash each time when pc start (17.21 KB, text/vnd.kde.kcrash-report)
2020-10-17 13:56 UTC, Eric
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric 2020-10-17 13:56:33 UTC
Created attachment 132473 [details]
kde-init5 crash each time when pc start

SUMMARY
kde-init5 crash each time when pc start 

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
Comment 1 Nate Graham 2020-10-21 03:46:04 UTC
#6  ThumbnailProtocol::get (this=0x7ffc72a9e890, url=...) at /usr/src/debug/kio-extras5-20.08.2-1.1.x86_64/thumbnail/thumbnail.cpp:356
#7  0x00007f81461a0c16 in KIO::SlaveBase::dispatch (this=0x7ffc72a9e890, command=67, data=...) at /usr/src/debug/kio-5.75.0-1.1.x86_64/src/core/slavebase.cpp:1193
#8  0x00007f8146197a86 in KIO::SlaveBase::dispatchLoop (this=0x7ffc72a9e890) at /usr/src/debug/kio-5.75.0-1.1.x86_64/src/core/slavebase.cpp:325
Comment 2 Stefan Brüns 2020-10-22 02:33:16 UTC
From the BT: __len=331776

Thats e.g. 256 * 324 * 4 (RGBA32). Probably the SHM segment was only allocated for a size of 256x256 (which is the largest cached size), while the actually requested size was actually larger.

For neither dolphin nor the filewidget this should be a problem, as both disable caching when requesting sizes larger than 256x256.

Are you using any third party folderviews or preview widgets?
Comment 3 David Faure 2020-10-22 22:27:04 UTC
Git commit 2df4b465b391999e82c3a7f667a0e9292ad2a6c3 by David Faure, on behalf of Stefan Brüns.
Committed on 22/10/2020 at 22:27.
Pushed by dfaure into branch 'master'.

[PreviewJob] Allocate sufficient memory for SHM segment

cacheWidth/Height is clamped to 256x256 when some of the the thumbnails
are saved, while the unsaved thumbnails are requested with the original
(larger) size.

Dolphin and the filewidget disable caching for the large previews, and
the iconviews are limited to 256x256, so typically this does not happen,
but when the PreviewJob is run without disabling caching using
`setScaleType`, the thumbnailer slave will write out-of-bounds.

M  +2    -1    src/widgets/previewjob.cpp

https://invent.kde.org/frameworks/kio/commit/2df4b465b391999e82c3a7f667a0e9292ad2a6c3
Comment 4 Bug Janitor Service 2020-11-06 04:33:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Eric 2020-11-07 14:05:21 UTC
After reinstall, i think the bugs is when i raise the resolution 100x to 300x (hidpi)
Comment 6 Stefan Brüns 2020-11-07 16:07:21 UTC
Please at least mention which versions of KDE Frameworks you are using.
Comment 7 Eric 2020-11-07 19:19:52 UTC
KDE Frameworks 5.75.0
Comment 8 Nate Graham 2021-03-17 23:45:16 UTC

*** This bug has been marked as a duplicate of bug 430862 ***