Bug 343620 - Places get deleted if device could not be mounted by KDE
Summary: Places get deleted if device could not be mounted by KDE
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: panels: places (show other bugs)
Version: 4.14.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-31 10:38 UTC by Ruman Gerst
Modified: 2018-05-06 17:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 14.12.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruman Gerst 2015-01-31 10:38:30 UTC
I usually have some places to my document folders on my external HDD. Sometimes I forget to mount the HDD before accessing the folder. Under certain circumstances (see steps to reproduce), dolpin deletes folders from the places panel.



Reproducible: Always

Steps to Reproduce:
1. Open dolphin, click on the document folder in the places panel
2. Dolphin shows a error that the folder is not existing in /media/username/External HDD/documents (that's OK)
3. I mount the HDD by using the tray menu
4. Because of some USB bugs of my motherboard (too lazy to do BIOS update), the external HDD loses connection while mounting (see dmesg log)

Actual Results:  
The document folder disappears from panel, other folders pointing to the external HDD are still there

Expected Results:  
Nothing should happen until I refresh the folder manually.

Dolphin log after:

1) Doing the steps, I described above
2) Plugging-out and plugging in the external HDD and mounting the device properly. I also readded the missing document folders to the panel.

$ dolphin
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
dolphin(4059) KSambaSharePrivate::findSmbConf: KSambaShare: Could not find smb.conf! 
dolphin(4059) KDirWatch::removeDir: doesn't know "" 
"/org/freedesktop/UDisks2/drives/Toshiba_External_USB_3_2e0_20121008050770" has new interfaces: ("org.freedesktop.UDisks2.Drive") 
"/org/freedesktop/UDisks2/block_devices/sdc" has new interfaces: ("org.freedesktop.UDisks2.Block", "org.freedesktop.UDisks2.PartitionTable") 
"/org/freedesktop/UDisks2/block_devices/sdc2" has new interfaces: ("org.freedesktop.UDisks2.Block", "org.freedesktop.UDisks2.Filesystem", "org.freedesktop.UDisks2.Partition") 
dolphin(4059) KDirWatch::removeDir: doesn't know "" 


dmesg log from USB device connection fail and reconnecting properly:

[   41.070496] usb 3-6: 3:1: cannot get freq at ep 0x84
[   41.073489] usb 3-6: 3:1: cannot get freq at ep 0x84
[   41.083554] usb 3-6: 3:1: cannot get freq at ep 0x84
[   41.086553] usb 3-6: 3:1: cannot get freq at ep 0x84
[   51.344729] traps: QXcbEventReader[2254] general protection ip:7f7bbd864355 sp:7f7baa92bc20 error:0 in libc-2.19.so[7f7bbd7e5000+1ba000]
[ 3470.392194] threaded-ml[3758]: segfault at 102412d20 ip 00007fe0642daa36 sp 00007fe055827b98 error 4 in libc-2.19.so[7fe064189000+1ba000]
[ 3486.064714] usb 3-6: 3:1: cannot get freq at ep 0x84
[ 3486.067737] usb 3-6: 3:1: cannot get freq at ep 0x84
[ 4037.731432] usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
[ 4037.748930] usb 4-2: New USB device found, idVendor=0480, idProduct=d010
[ 4037.748932] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4037.748933] usb 4-2: Product: External USB 3.0
[ 4037.748934] usb 4-2: Manufacturer: Toshiba
[ 4037.748935] usb 4-2: SerialNumber: 20121008050770
[ 4037.749485] usb-storage 4-2:1.0: USB Mass Storage device detected
[ 4037.751149] scsi7 : usb-storage 4-2:1.0
[ 4045.227442] scsi 7:0:0:0: Direct-Access     Toshiba  External USB 3.0 0201 PQ: 0 ANSI: 6
[ 4045.227718] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 4045.245828] sd 7:0:0:0: [sdc] 3907029164 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 4045.253839] sd 7:0:0:0: [sdc] Write Protect is off
[ 4045.253841] sd 7:0:0:0: [sdc] Mode Sense: 2f 00 00 00
[ 4045.261842] sd 7:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 4045.335937]  sdc: sdc2
[ 4045.394983] sd 7:0:0:0: [sdc] Attached SCSI disk
[ 4048.752924] EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: (null)
Comment 1 Emmanuel Pescosta 2015-02-19 19:10:09 UTC
Git commit 2a79feaea0088730bbf4fd4b65baa1c4a91b84b9 by Emmanuel Pescosta.
Committed on 19/02/2015 at 19:05.
Pushed by emmanuelp into branch 'Applications/14.12'.

Sync bookmark manager only if the change was done by the current process

Adoption of http://commits.kde.org/kdelibs/2b5c6e42fc8114c6854ce490b9cdd4356be683d9

FIXED-IN: 14.12.3
Related: bug 310080
REVIEW: 122640

M  +0    -20   dolphin/src/panels/places/placesitemmodel.cpp
M  +8    -13   dolphin/src/panels/places/placesitemmodel.h
M  +5    -0    dolphin/src/panels/places/placespanel.cpp

http://commits.kde.org/kde-baseapps/2a79feaea0088730bbf4fd4b65baa1c4a91b84b9
Comment 2 Emmanuel Pescosta 2015-02-19 19:28:24 UTC
Sorry this was the wrong bug, reopened.
Comment 3 Julian Steinmann 2018-04-19 15:19:37 UTC
Does this still happen with newer versions of Dolphin?
Comment 4 Julian Steinmann 2018-05-06 09:37:14 UTC
Please update the report if you are able to test this bug again. If we do not get a response in the next two weeks, I'll close this bug.
Comment 5 Ruman Gerst 2018-05-06 17:36:06 UTC
Oh sorry, I forgot that I submitted this bug (and I sometimes don't get mails). Seems to work for me with the current version. Thank you!