Bug 350679 - Entries in Places, Recent Saved and Search For disappears after waking up from hibernation
Summary: Entries in Places, Recent Saved and Search For disappears after waking up fro...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: places (show other bugs)
Version: 16.12.2
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-27 19:48 UTC by andreas.davour
Modified: 2018-04-11 17:50 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
comparison of how dolphin looks, and the expected looks (255.45 KB, image/png)
2015-07-27 19:50 UTC, andreas.davour
Details
dolphin-disappearing-places-error.txt (15.41 KB, text/plain)
2015-10-31 22:31 UTC, andreas.davour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andreas.davour 2015-07-27 19:48:32 UTC
v4.14.9

After waking up from hibernation, dolphin window is greyed out for a long time, and when it comes back most of the entries from Places have gone!

Reproducible: Always

Steps to Reproduce:
1. Put system to Sleep
2. Wake up system
3. Go to virtual desktop with dolphin

Actual Results:  
Most entries are gone from Places. See Screenshot.

Expected Results:  
Dolphin should have showed Places just as before hibernation

As I prepared the screenshot showing the behaviour, I found that the file picker in ksnapshot also showed the left hand side with folders and Places wrongly. Is this a fault in a general kde library somewhere?
Comment 1 andreas.davour 2015-07-27 19:50:44 UTC
Created attachment 93769 [details]
comparison of how dolphin looks, and the expected looks

Just found odd thing as I prepared this screen shot. If I open a new window in Dolphin, it looks ok again. See the rightmost dolphin window for the ok state, the leftmost as the faulty one.

Also, in this picture can be seen the wonky file picker for ksnapshot.
Comment 2 Emmanuel Pescosta 2015-07-27 19:52:22 UTC
Thanks for the bug report!

This bug should be fixed with the following package versions: 
* kde-baseapps >= 15.04.1 
* kdelibs >= 4.14.8 
* KIO >= 5.10 (if you have KF5 installed)

Can you please check your package versions?
Comment 3 andreas.davour 2015-07-27 20:11:24 UTC
These are the packages I have installed. 

kde-baseapps-15.04.2-1.fc21.x86_64
kdelibs-4.14.9-2.fc21.x86_64

$ rpm -qa | grep -i kio
kio_msits-14.12.3-1.fc21.x86_64
kio-upnp-ms-1.0.0-6.20111102git.fc21.x86_64
audiocd-kio-libs-14.12.3-1.fc21.x86_64
kio_mtp-0.75-10.20141221gitc418634.fc21.x86_64
audiocd-kio-14.12.3-1.fc21.x86_64
Comment 4 Emmanuel Pescosta 2015-10-10 14:04:00 UTC
Can you still reproduce the problem? (never happened to me :/)
Comment 5 andreas.davour 2015-10-10 16:11:36 UTC
(In reply to Emmanuel Pescosta from comment #4)
> Can you still reproduce the problem? (never happened to me :/)

Sadly, yes. Happens all the time. It's getting to be so annoying Dolphin is no longer my go to solution, and I'm beginning to think I need to drop it. 

I managed to get the odd file picker problem solved by making the file
/home/<username>/.kde/share/apps/kfileplaces/bookmarks.xml immutable but dolphin still acts up. Quite annoying.

If you can figure out something to trace, test or otherwise debug I'm all ears, as I'm at my wits end.
Comment 6 Emmanuel Pescosta 2015-10-15 19:15:17 UTC
(In reply to Koraq from comment #5)

> I managed to get the odd file picker problem solved by making the file
> /home/<username>/.kde/share/apps/kfileplaces/bookmarks.xml immutable but
> dolphin still acts up. Quite annoying.

This looks like a mix of old vs. new places syncing.
Dolphin and the file picker should save the places in /home/<username>/.local/share/user-places.xbel instead of bookmarks.xml.

> If you can figure out something to trace, test or otherwise debug I'm all
> ears, as I'm at my wits end.

You could check which process changes the user-places.xbel file after wake up with auditctl.
Comment 7 andreas.davour 2015-10-15 20:26:37 UTC
>________________________________
> From: Emmanuel Pescosta via KDE Bugzilla <bugzilla_noreply@kde.org>
>To: Koraq@yahoo.com 
>Sent: Thursday, October 15, 2015 9:15 PM
>Subject: [dolphin] [Bug 350679] Entries in Places, Recent Saved and Search For disappears after waking up from hibernation
> 
>
>https://bugs.kde.org/show_bug.cgi?id=350679
>
>--- Comment #6 from Emmanuel Pescosta <emmanuelpescosta099@gmail.com> ---
>(In reply to Koraq from comment #5)
>
>> I managed to get the odd file picker problem solved by making the file
>> /home/<username>/.kde/share/apps/kfileplaces/bookmarks.xml immutable but
>> dolphin still acts up. Quite annoying.
>
>This looks like a mix of old vs. new places syncing.
>Dolphin and the file picker should save the places in
>/home/<username>/.local/share/user-places.xbel instead of bookmarks.xml.


Hmm. I didn't knew there were two places, and a new and old place. That was illuminating. That makes me wonder if that is set in a config file somewhere?

>> If you can figure out something to trace, test or otherwise debug I'm all
>> ears, as I'm at my wits end.
>
>You could check which process changes the user-places.xbel file after wake up

>with auditctl.

I had not thought of that. Good idea.


sudo auditctl -a always,exit -F path=/home/ante/.kde/share/apps/kfileplaces/bookmarks.xml -F perm=wa
sudo auditctl -a always,exit -F path=/home/ante/.local/share/user-places.xbel -F perm=wa

$ sudo ausearch -f /home/ante/.kde/share/apps/kfileplaces/bookmarks.xml
<no matches>


$ sudo ausearch -f /home/ante/.local/share/user-places.xbel
----
time->Thu Oct 15 22:15:27 2015
type=CONFIG_CHANGE msg=audit(1444940127.728:873): auid=1000 ses=1 op="updated_rules" path="/home/ante/.local/share/user-places.xbel" key=(null) list=4 res=1
----
time->Thu Oct 15 22:18:29 2015
type=CONFIG_CHANGE msg=audit(1444940309.547:933): auid=1000 ses=1 op="updated_rules" path="/home/ante/.local/share/user-places.xbel" key=(null) list=4 res=1

$ id
uid=1000(ante) gid=1000(ante) groups=1000(ante),10(wheel),982(vboxusers) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

I'm not sure that made me much more clear on what is happening.
Comment 8 Emmanuel Pescosta 2015-10-16 10:03:30 UTC
Thanks for testing it!

You can add -i to ausearch to get a nicer output ;)

> I'm not sure that made me much more clear on what is happening.

Do the places disappear after *every* wake up? 

Maybe try:
1. Enable auditing for bookmarks.xml and user-places.xbel
2. Add a new place in Dolphin  (ausearch should show this)
3. Hibernate and wake up
4. Check if the places were resetted in Dolphin
5. Run ausearch
Comment 9 andreas.davour 2015-10-31 22:31:02 UTC
Created attachment 95245 [details]
dolphin-disappearing-places-error.txt

Back again. I had very little time to attend to this bug, but once again delved into it.
Enabed auditing, Added a place, suspended, woke up.
I attach the ausearch output. I can not say I understand it. The first part of adding a place I do not see at all. Odd enough is that this time the newly added place stayed as all others went away!
Yes, this happens every suspend/wake up cycle.
I just recently updated dolphin, and now run 
dolphin-15.04.3-1.fc21.1.x86_64
dolphin-libs-15.04.3-1.fc21.1.x86_64
But that seems to have made no difference.
I understand one part of the ausearch output, and that is that both bookmarks.xml and the user-places files seems to be updated or manipulated.
-andreas -- "My son has spoken the truth, and he has sacrificed more than either the president of the United States or Peter King have ever in their political careers or their American lives. So how they choose to characterize him really doesn't carry that much weight with me." -- Edward Snowden's Father
 
      From: Emmanuel Pescosta via KDE Bugzilla <bugzilla_noreply@kde.org>
 To: Koraq@yahoo.com 
 Sent: Friday, October 16, 2015 12:03 PM
 Subject: [dolphin] [Bug 350679] Entries in Places, Recent Saved and Search For disappears after waking up from hibernation
   
https://bugs.kde.org/show_bug.cgi?id=350679

--- Comment #8 from Emmanuel Pescosta <emmanuelpescosta099@gmail.com> ---
Thanks for testing it!

You can add -i to ausearch to get a nicer output ;)

> I'm not sure that made me much more clear on what is happening.

Do the places disappear after *every* wake up? 

Maybe try:
1. Enable auditing for bookmarks.xml and user-places.xbel
2. Add a new place in Dolphin  (ausearch should show this)
3. Hibernate and wake up
4. Check if the places were resetted in Dolphin
5. Run ausearch
Comment 10 Nate Graham 2017-09-03 01:10:31 UTC

*** This bug has been marked as a duplicate of bug 356045 ***
Comment 11 Nate Graham 2017-09-03 01:11:50 UTC
Oops sorry, that change was meant for another bug.
Comment 12 Nate Graham 2017-09-03 01:17:04 UTC
Is this still happening with recent (KDE Plasma 5-ish) versions of Dolphin?
Comment 13 andreas.davour 2017-09-03 13:26:29 UTC
The Places sidebar still seems to be missing some items, but they seem to be gone more randomly, as I can not reproduce it now and don't remember when they went away.

The file picker now works fine. The odd issues with /home/<username>/.kde/share/apps/kfileplaces/bookmarks.xml seems to have been a thing of the past.

I guess it kind of works now. Let's close this for now.
Comment 14 Julian Steinmann 2018-04-11 17:50:22 UTC
I'll close this then, please open new bugs if you still experience problems with disappearing items.