pidgin-im-gnome-shell-extension icon indicating copy to clipboard operation
pidgin-im-gnome-shell-extension copied to clipboard

Search provider freezes gnome-shell on search request.

Open tioteath opened this issue 9 years ago • 5 comments

Looks like the search provider applies some global lock when used. Gnome shell freezes for about 5 seconds. Steps to reproduce:

  • Get a lot of contracts (~1000)
  • Enable search provider in extension preferences
  • Try to search something in overview mode
gnome-shell --version
GNOME Shell 3.14.2

tioteath avatar Jan 05 '15 19:01 tioteath

same here

jgeerds avatar Jun 10 '15 14:06 jgeerds

@muffinmad Have you any way of being notified by pidgin about modifications to the contact list? I suspect this bug is caused by the fact that you get the list of contacts from pidgin every time the search plugin is called. A cache should solve the issue, but contacts/statuses may stale if there is no way to asyncronously get modifications as they happen.

Another solution could be to get them with a timer every few seconds/minutes, but it is to be tested to not introduce micro-freezes of the whole shell. I have no idea if the gs API offers a way to create a background thread.

p91paul avatar Oct 06 '15 20:10 p91paul

This should work: https://developer.pidgin.im/doxygen/dev2.x.y/html/blist-signals.html#buddy-added

Jascha Geerds [email protected]

jgeerds avatar Oct 06 '15 21:10 jgeerds

Yes, blist-signals is the right way.

muffinmad avatar Oct 07 '15 05:10 muffinmad

But it doesn't solve the issue of blocking gnome-shell for the initial load of contacts, does it?

brianjmurrell avatar Feb 02 '18 20:02 brianjmurrell