Bug 312495 - Very slow "Send to" menu
Summary: Very slow "Send to" menu
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksnapshot
Classification: Applications
Component: send-to menu (show other bugs)
Version: 0.8.2
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
: 329655 334906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-02 17:47 UTC by Francesco Frassinelli
Modified: 2018-09-04 04:22 UTC (History)
5 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 Francesco Frassinelli 2013-01-02 17:47:16 UTC
When I click on "Send to" I have to wait for about ~15 seconds.

I'm using KDE 4.10 beta 2 on Fedora 18 x86_64, with 4 GB of RAM and a Core 2 Duo ULV CPU.

Reproducible: Always

Steps to Reproduce:
1. Click on "Send to"
Actual Results:  
Wait for more than 10 seconds and then the menu appears.

Expected Results:  
Menu should appear in less than a second.
Comment 1 Francesco Frassinelli 2013-01-03 15:10:11 UTC
Simple fix: display the "loading" disabled message like Gwenview does.
Comment 2 Christoph Feck 2014-01-06 16:57:18 UTC
*** Bug 329655 has been marked as a duplicate of this bug. ***
Comment 3 Kevin Funk 2014-04-23 09:07:42 UTC
This is slightly annoying, can we get a fix for this?
Comment 4 Christoph Feck 2014-05-16 20:59:39 UTC
*** Bug 334906 has been marked as a duplicate of this bug. ***
Comment 5 Gregor Mi 2014-11-02 10:37:32 UTC
review request for the fix: https://git.reviewboard.kde.org/r/120920/
Comment 6 Gregor Mi 2014-12-14 10:36:21 UTC
Git commit fd7352cd9bcf0d28b707bf2a83b772b80a13359c by Gregor Mi.
Committed on 14/12/2014 at 10:30.
Pushed by gregormi into branch 'frameworks'.

Cash retrieval of SendTo menu items

refactoring: move the SendTo menu filling logic from KSnapshot to new class KSnapshotSendToActions

main.cpp: create 'window' on the stack to correctly call
KSnapshotSendToActions's dtor
but when the SendTo menu is clicked a second time it opens at once

REVIEW: 120920

M  +2    -1    CMakeLists.txt
M  +15   -68   ksnapshot.cpp
M  +2    -31   ksnapshot.h
A  +153  -0    ksnapshotsendtoactions.cpp     [License: LGPL (v2+)]
A  +100  -0    ksnapshotsendtoactions.h     [License: LGPL (v2+)]
M  +4    -5    main.cpp

http://commits.kde.org/ksnapshot/fd7352cd9bcf0d28b707bf2a83b772b80a13359c
Comment 7 Gregor Mi 2014-12-19 11:34:55 UTC
Since some time the SendTo menu became pretty fast (less than a second) on Version 0.8.2, Using KDE Development Platform 4.14.3 on my maschine, altough nothing related was changed on ksnapshot in this branch. In rare cases the menu is still slow, though.

Can someone confirm that the menu is faster now?
Comment 8 Gregor Mi 2014-12-19 11:39:26 UTC
I just found out that the SendTo menu opening time depends on the size of the current picture. For small screenshots the menu is fast (opens immediately). For large screenshots it is slower.
Comment 9 richlv 2016-01-25 17:50:30 UTC
in kde5, spectacle (replacement for ksnapshot) has local apps right in the menu, while all the online things are split out in "online services" menu branch, which is not loaded until accessed.

that seems like a good solution to me (and any issues with it probably should be reported as separate bugs).

i propose closing this bugreport.
Comment 10 Gregor Mi 2016-01-25 18:07:13 UTC
@ https://bugs.kde.org/show_bug.cgi?id=312495#c9 that is a good thing. However, in spectacle, the "Online services" menu stays empty after showing the "Please wait..." item. Any idea if there is something missing to make the menu work?
Comment 11 richlv 2016-01-25 18:26:57 UTC
yeah, it worked for me a few days ago, and today i spotted the menu being empty - that prompted me to add "probably should be reported as separate bugs" ;)

one suspicion i have is that it might be going through the entries one by one, and right now kde apps don't have internet connectivity for me - if spectacle would try to connect to those online services their request would time out, and that would take a long time with many entries. that would surely be something to improve, but indeed in a separate bugreport.
Comment 12 Gregor Mi 2016-01-25 18:54:57 UTC
For a timeout the "Please wait..." is shown far too short time for me. Anyway, would you care to open a bug and reference it here? Otherwise I would do it, please give me signal on that.

I suggest to keep this issue open until the spectacle issue is resolved.
Comment 13 richlv 2016-01-25 18:56:27 UTC
sure, go ahead with a new bugreport - i don't use online services currently, somebody more interested could do a better job :)
Comment 14 Gregor Mi 2016-01-25 20:11:10 UTC
posted here: https://bugs.kde.org/show_bug.cgi?id=358557
Comment 15 Andrew Crouthamel 2018-09-04 04:22:11 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years and I will be closing this bug. Spectacle is the replacement for ksnapshot now. Please test again and file a new bug for Spectacle if you still have issues. Thank you!