Bug 430627 - Remounting of previously used shares on program start
Summary: Remounting of previously used shares on program start
Status: RESOLVED FIXED
Alias: None
Product: Smb4k
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Reinholdt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-20 15:56 UTC by kde-gato
Modified: 2021-09-28 16:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 3.1.1
Sentry Crash Report:


Attachments
Process mounthelper (20.56 KB, image/jpeg)
2020-12-20 15:56 UTC, kde-gato
Details
2021-09 smb4k 3.1.0 bug-report (4.43 KB, text/plain)
2021-09-11 10:12 UTC, kde-gato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde-gato 2020-12-20 15:56:44 UTC
Created attachment 134232 [details]
Process mounthelper

Hello!

I have recognized one issue which appears if I want to auto-mount more than only 1-2 shares. In my case I have in total 7 shares. For all shares I have added bookmarks and I have changed the settings to auto-mount all already mounted shares. Now if I choose the option to mount all bookmarks, Smb4k is mounting e.g. only 4-5 shares, but after that the program is hanging and not able to mount the remaining shares. The same happens also after a reboot of the system.

It seems to be an issue with the process "mounthelper". Every time if the above happens, process "mounthelper" goes up and stays/is hanging at 25% CPU usage, see attached screenshot. Only if I kill "mounthelper" + smb4k I am able to mount all shares again. To kill only smb4k does not help.

STEPS TO REPRODUCE
1. Add smb4k into autostart
2. Add bookmarks for more than 5-7 shares
3. Choose option "auto remount" in the settings (Remounting of previously used shares on program start)
4. Choose a few times mount / unmount all bookmarks
5. If alle shares are mounted, reboot the system
6. If Smb4k is hanging or if not all shares are mounted, check ksysguard (system monitor) by CPU usage, process "mounthelper" should be on the top.

OBSERVED RESULT
1. Not all shares are mounted
2. Smb4k is hanging
3. CPU usage goes up and is hanging at 25%

Smb4k version 3.0.71
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-58-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ m5-6Y57 CPU @ 1.10GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 515
Comment 1 Alexander Reinholdt 2020-12-28 09:12:41 UTC
Thank you for reporting this issue. My first tests could not reproduce your problem, but I will continue testing.

In addition, I will release Smb4K 3.0.80 soon, maybe you could try that one and tell me, if the problem still persists.
Comment 2 kde-gato 2020-12-28 13:29:10 UTC
Thanks for checking and taking care of this issue!

Yes, of course I can try to test it with the newer version. Shall I use smb4k-3.0.74.tar.xz version (the newest one) from https://sourceforge.net/projects/smb4k/files/Development/, correct?

I hope I will manage to install from a tar.xz file, but I will try :-)
Comment 3 Alexander Reinholdt 2021-01-11 20:23:50 UTC
I tried to reproduce your problem with the latest development version, but I was not successful. Could you please try Smb4K 3.0.80 and check, if your problem is still there?
Comment 4 kde-gato 2021-09-11 10:12:11 UTC
Created attachment 141469 [details]
2021-09 smb4k 3.1.0 bug-report

2021-09 smb4k 3.1.0 bug-report
Comment 5 kde-gato 2021-09-11 10:13:08 UTC
Sorry for the late reply. I run now smb4k 3.1.0 and issue is still there. I started smb4k through the terminal to collect some additional details and my comments what I did. Maybe it gives more helpful for you to find/fix the issue. I hope it is fine that it is from a German CLI.

Sometimes I even have to kill the process "mounthelper" (as root) even tow times as it appears again after the first kill.


In this case I needed 3 tries to mount my shares:
gato@x1-tab:~$ smb4k
kf.coreaddons: no metadata found in "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/desktop.so" "Die Metadaten des Plugins '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/desktop.so' konnten nicht bestimmt werden"
kf.coreaddons: no metadata found in "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/applications.so" "Die Metadaten des Plugins '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/applications.so' konnten nicht bestimmt werden"
kf.auth: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Beendet

comments:
1. start of smb4k
2. smb4k shows 2 of 7 shares mounted
3. sgain smb4k is hanging and root process "mounthelper" is/stays at 25% CPU usage
4. kill process "mounthelper" (as root)
5. kill process "smb4k"

--------------------------------------------------------

gato@x1-tab:~$ smb4k
kf.coreaddons: no metadata found in "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/desktop.so" "Die Metadaten des Plugins '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/desktop.so' konnten nicht bestimmt werden"
kf.coreaddons: no metadata found in "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/applications.so" "Die Metadaten des Plugins '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/applications.so' konnten nicht bestimmt werden"
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
kf.auth: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Beendet

comments:
1. start of smb4k
2. smb4k shows 2 of 7 shares mounted
3. again smb4k is hanging and root process "mounthelper" is/stays at 25% CPU usage
4. kill process "mounthelper" (as root)
5. kill process "smb4k"
6. 6 of 7 shares are mounted and accessable in Dolphin

--------------------------------------------------------

gato@x1-tab:~$ smb4k
kf.coreaddons: no metadata found in "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/desktop.so" "Die Metadaten des Plugins '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/desktop.so' konnten nicht bestimmt werden"
kf.coreaddons: no metadata found in "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/applications.so" "Die Metadaten des Plugins '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/applications.so' konnten nicht bestimmt werden"
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
Neither size nor group specified!
Neither size nor group specified!

comments:
1. start of smb4k
2. smb4k shows 7 of 7 shares
3. all 7 shares are mounted and accessable in Dolphin
4. process "mounthelper" does not appear in this case
Comment 6 Alexander Reinholdt 2021-09-27 18:41:33 UTC
Thank you for the extra information. With Smb4K 3.1.0, I could reproduce the problem. Meanwhile, I rewrote parts of the mounthelper utility and the problem does not occur anymore so far.

The fix will be in Smb4K 3.1.1 which will be released shortly.
Comment 7 Alexander Reinholdt 2021-09-28 16:00:59 UTC
This problem is fixed in version 3.1.1. Please reopen this bug or file a new report, if the problem should reoccur.