Bug 960195

Summary: Dolphin freezes opening files from shared (Samba) resources or by preview files from archives
Product: [openSUSE] openSUSE Distribution Reporter: Krasimir Ivanov <kiv>
Component: KDE ApplicationsAssignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: kiv, wbauer
Version: Leap 42.1   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE 42.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Krasimir Ivanov 2015-12-23 21:42:57 UTC
When I open a Samba share by Dolphin it works as expected - I can manipulate files and open them.
But if I open some file there (for example some pdf file) this file can be open by the appropriate program (in this case - by Okular) and immediately after it Dolphin freezes (hangs).

Same happens when I open some archive (for example - a ZIP file) and try to preview some of the files inside.

This problem is available only in Dolphin.
When I do the same using Krusader or PCManFM they can open same files on same shares or in same archives without any problems.

This version of Dolphin is 15.08.3.

Even other file managers like Krusader or PCManFM could be used this bug in Dolphin is very annoying as I need to open same shares with different file managers in order to check which file I need.

Please inform how to overcome this problem if some work around is known about it.
Comment 1 Wolfgang Bauer 2015-12-23 21:51:02 UTC
Sounds like a duplicate of Bug#924764 or the upstream https://bugs.kde.org/show_bug.cgi?id=353037.

Do you get an error dialog after you close the other application? (Okular or Ark e.g.)
Pressing OK there should unfreeze dolphin.
Comment 2 Krasimir Ivanov 2015-12-24 12:14:54 UTC
I just make a try again.
Unfortunately now I am out from our office so can not test with Samba shares.
Because of this I decide to check Dolphin behaviour with ZIP archives.

I open in Dolphin a ZIP archive where are archived some PDF files.
The archive get open and the internal of the ZIP was presented well in Dolphin.

Then I try to open one of them.
Okular had open the file perfectly and I could work in Okular with this PDF file without any trouble.
But unfortunately immediately after Okular had open the file Dolphin freeze (hang). It means that any interaction with Dolphin get impossible. Only close, minimize and maximize buttons of the window of Dolphin stay operable.
I keep waiting to see what will happen.

But noting visible happen for a long time.
So I close the Ocular and wait a long time. But nothing happened.

Then I click the mouse on the Close button (x) of the Dolphin window.
Then I have got a message windows where is stated some thing like "this application does not respond...".
Then I closed this window and then a error window pop up with the message:
"KDEInit could not start “/usr/lib64/libexec/kf5/kioexec“".
This window have only a OK button.
So I pressed it.
Then this window get closed.
Then Dolphin get out from freeze state and I could interact with Dolphin again.

I believe this behaviour of Dolphin has nothing to do with LibreOffice, because in my case it happens with many other files and not only with LibreOffoce files.
Also this wrong behaviour is available only with Dolphin 15.08.3 in OpenSUSE Leap 42.1 in my 64 bit installation.
(I had made a clean installation, so any interference from previous installations could be excluded).
I have checked same shares and same archives with openSUSE 13.2 and Dolphin from it and every thing worked fine.
So I am pretty sure the reason for the troubles must be my openSUSE Leap 42.1
Comment 3 Krasimir Ivanov 2015-12-24 12:30:34 UTC
I do not have debug packages but try following command - valgrind dolphin 2> log.txt

And this log.txt consists of following information:
=8984== Memcheck, a memory error detector
==8984== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==8984== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==8984== Command: dolphin
==8984==
"Trying to convert empty KLocalizedString to QString."
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Отказан достъп
==8984== Warning: set address range perms: large range [0x3a048000, 0x17a048000) (defined)
QString::arg: Argument missing: Предишна седмица, вторник
Comment 4 Wolfgang Bauer 2015-12-24 12:35:28 UTC
(In reply to Krasimir Ivanov from comment #2)
> Then I closed this window and then a error window pop up with the message:
> "KDEInit could not start “/usr/lib64/libexec/kf5/kioexec“".
> This window have only a OK button.
> So I pressed it.
> Then this window get closed.
> Then Dolphin get out from freeze state and I could interact with Dolphin
> again.

So this is a duplicate.

> I believe this behaviour of Dolphin has nothing to do with LibreOffice,
> because in my case it happens with many other files and not only with
> LibreOffoce files.

No it isn't specific to LibreOffice, it happens with all files on remote shares or other places opened via some KIO slave, but not when you open them in KDE applications that support Samba shares directly.

And it's a general KF5 problem, not even related to dolphin.

> I have checked same shares and same archives with openSUSE 13.2 and Dolphin
> from it and every thing worked fine.

13.2 uses KDE4, and a KDE4 based dolphin.
The problem doesn't exist in KDE4.

> So I am pretty sure the reason for the troubles must be my openSUSE Leap 42.1

No, it is a problem in KF5, fixed in 5.17.0.
An update for Leap 42.1 will be released too, but I cannot tell you when exactly.

*** This bug has been marked as a duplicate of bug 924764 ***
Comment 5 Krasimir Ivanov 2015-12-24 13:25:07 UTC
OK
Every thing is clear to me now.

Thank you very much for your prompt answers and the patience in resolving my bug report.
Thanks to all people who worked to fix this!

With best regards,