Bug 352891 - Icons randomly disappear; "QIODevice::seek (QBuffer): The device is not open" when using KSharedDataCache
Summary: Icons randomly disappear; "QIODevice::seek (QBuffer): The device is not open"...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kiconthemes
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-18 20:53 UTC by Jarosław Staniek
Modified: 2016-02-08 07:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarosław Staniek 2015-09-18 20:53:26 UTC
Using kexi (built locally calligra.git master) with kf5 master 5.13.0, Qt 5.5.1 (built against 5.4.2), xcb windowing system. Run within a local prefix in Plasma 4 session.

XDG_CACHE_HOME=/home/jarek/dev/inst5/.cache5
XDG_CONFIG_DIRS=/home/jarek/dev/inst5/etc/xdg:/etc/xdg:/etc/xdg
XDG_CONFIG_HOME=/home/jarek/dev/inst5/.config5
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/home/jarek/dev/inst5/share:/usr/share:/usr/share:/usr/share
XDG_DATA_HOME=/home/jarek/dev/inst5/.local5/share

When I run kexi I get Icons to randomly disappear. Half of them appear ok, other are not found.
On mouse-over they appear: see http://i.imgur.com/Gf4ZJ6l.png for example menu.

When I remove cache (/home/jarek/dev/inst5/.cache5/*) and re-run kbuildsycoca5 (should it run automatically?) I get all the icons when I run kexi. Then for subsequent runs the issue reappears.

More info, no idea if related:
- The same with Kate, see http://i.imgur.com/amCEnDW.png
- After each (proper) closing of kexi  I get something like:
kdeinit5: PID 3260 terminated.
- during the running I get many lines like:QIODevice::seek (QBuffer): The device is not open
- OS: openSUSE 3.11.10-29-desktop #1 SMP PREEMPT Thu Mar 5 16:24:00 UTC 2015 (338c513) x86_64 x86_64 x86_64 GNU/Linux

No apparent config changes on my side, this started to appear recently.


Reproducible: Always
Comment 1 Jarosław Staniek 2015-09-18 20:54:24 UTC
Most probably this belongs to some other place or component, please forgive me.
Comment 2 David Faure 2015-09-20 09:34:42 UTC
kf5 master this month is more 5.15 than 5.13.

I think you've hit bug 352854.

Can you upgrade the kservice framework again and tell me if the problem is gone?
Others reported that it fixed issues like the ones you describe.
Comment 3 Anthony Fieroni 2015-09-21 12:27:37 UTC
Same here, i update 5.14.0 to 5.14.3 and delete ~/.cache then kbuildsycoca5 --noincremental result is strange icon disapear and 'QIODevice::seek (QBuffer): The device is not open' in xsession-errors. Any tips to generate working chache?
Comment 4 Anthony Fieroni 2015-09-21 12:28:34 UTC
I update kservice from 5.14.0 to 5.14.3 missing above.
Comment 5 Jarosław Staniek 2015-09-21 12:39:11 UTC
Thanks so much David, I am cleaning my local installation and switching to packaged KF5 on opensuse. Will specifically build kservice by hand and see. On Windows I've rebuilt all KF5 and will test things.
Comment 6 Jarosław Staniek 2015-09-21 21:53:27 UTC
@David just built kservice (opensuse) by hand and icons seem to work. Will monitor things a few more days. Thanks!
Comment 7 David Faure 2015-09-22 07:13:21 UTC
The thing that surprises me is that ksycoca has nothing to do with icons
(apart from icons for apps, coming from desktop files, but Jaroslaw's screenshot is about an open-file icon).

So I can't help but wonder if the random aspect of the icon bug makes people draw wrong conclusions of a link between ksycoca and the icons-disappearing bug.

Which would explain why some people say "now it works" and some people say "it still doesn't work" -- it's because it's in fact random and completely unrelated.
Comment 8 David Faure 2015-09-22 07:17:09 UTC
BTW "kdeinit5: PID 3260 terminated." at the end of a program is completely normal and expected,e this is just kdeinit noticing that a process ended.

Boud said on kde-frameworks-devel that the "device is not open" warning came from
KIconLoaderPrivate::findCachedPixmapWithPath, which is about the icon cache in shared memory, KSharedDataCache.
I'll reassign accordingly.
Comment 9 Anthony Fieroni 2015-09-22 07:23:38 UTC
My issue is from calligra git.  Strange behavior of lastest beta.
Comment 10 Jarosław Staniek 2015-09-22 11:16:17 UTC
BTW, Any idea why PREFIX/share/kexi/icons/oxygen/32x32/places/ or PREFIX/share/kexi/icons/breeze/32x32/places/ and alike are not searched by Kexi?

No longer supported?

With kdelibs4 PREFIX/share/apps/kexi/icons/oxygen/ was searched at least.
Comment 11 David Faure 2015-09-22 11:32:19 UTC
Jaroslaw, one issue per bug report please, and questions on the list, otherwise bug reports become unreadable (plus the people who know about that question might not be here).
Comment 12 Jarosław Staniek 2015-09-24 20:35:22 UTC
Like me Boud also mentioned elsewhere, on second run of an app icons disappeared. Then removing PREFIX/lib64/plugins/platformthemes/KDEPlatformTheme.so makes the icons appear again.
Comment 13 Juan Palacios 2015-10-17 18:35:30 UTC
Probably related:
https://mail.kde.org/pipermail/kimageshop/2015-October/012917.html
Comment 14 Halla Rempt 2016-02-08 07:41:20 UTC
Yes, with the qimageio plugin fixed, this bug can be closed.