Bug 182818 - Lancelot not displaying favorites or applications after reboot
Summary: Lancelot not displaying favorites or applications after reboot
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-lancelot (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
: 184632 185442 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-02 04:38 UTC by Todd
Modified: 2009-03-09 21:36 UTC (History)
6 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 Todd 2009-02-02 04:38:24 UTC
Version:            (using KDE 4.2.0)
Installed from:    SuSE RPMs

After upgrading to KDE 4.2 Lancelot has been behaving strangely.  When I first start up my computer, the "favorites" area and the "applications" area are both completely blank.  The titles are both there, but the contents are missing.  The rest of the categories are still there, only those two are missing.  If I resize lancelot they re-appear, but then disappear again after the next reboot.
Comment 1 Ivan Čukić 2009-02-02 09:44:00 UTC
Hi do you use the Qt 4.4.4 snapshot by any chance?
Comment 2 Todd 2009-02-02 16:58:31 UTC
I'm not sure, it says I am using Qt4.4.3+20090201, which I guess is a snapshot.
Comment 3 Ivan Čukić 2009-02-02 18:36:40 UTC
There already are reported problems with the Qt's snapshot (and confirmed by me). I'm waiting the final release to see whether they will fix the issue, or I will have to.
Comment 4 Markos Chandras 2009-02-12 19:52:23 UTC
Yes this issue exists on Gentoo Linux too. Every user that uses qt-4.5.0_rc1 has this weird behavior with lancelot

I would have been nice to have a patch to deal with this now until the final release of Qt-4.5
Comment 5 Ivan Čukić 2009-02-12 19:58:35 UTC
It will be fixed in trunk soon since trunk now depends on Qt 4.5.

The interesting thing is that Lancelot behaves differently under 4.5 if compiled with 4.4 compared to the behaviour when compiled under 4.5. So the first thing you should (or your distro) do is to compile the program using the same version of the library you use for execution.

With that said, it doesn't yet behave as it should even when compiling against 4.5.
Comment 6 Ivan Čukić 2009-02-14 17:55:08 UTC
Marking as FIXED as of revision 926094 (in trunk). Please test this (don't forget to restart lancelot and not plasma-desktop after compiling)
Comment 7 Robet Piasek 2009-02-14 22:46:16 UTC
(In reply to comment #6)
> Marking as FIXED as of revision 926094 (in trunk). Please test this (don't
> forget to restart lancelot and not plasma-desktop after compiling)
> 

Your patch fixed it. But there is still a second problem:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3258 piasekr   20   0  440m  31m  18m R   99  0.8   0:25.42 lancelot

It happens on qt-4.5_rc1
Comment 8 Ivan Čukić 2009-02-14 22:52:27 UTC
Ok, I'll see about that. Thanks
Comment 9 Rahul Jain 2009-02-14 23:00:32 UTC
The patch works, thanks. But I can confirm that lancelot now uses 99 - 100% of CPU resources. :)
Comment 10 Ivan Čukić 2009-02-15 11:43:03 UTC
The interesting thing is that the last patches had nothing to do with the CPU usage. The code that produced that when using Qt 4.5 was introduced a long time ago.

Fortunately, I found a way to fix this without reverting the patch in question which was essential. So, as of revision 926398, it should be smooth sailing again.

Thanks for your reports!
Comment 11 Robet Piasek 2009-02-15 16:17:37 UTC
(In reply to comment #10)
> The interesting thing is that the last patches had nothing to do with the CPU
> usage. The code that produced that when using Qt 4.5 was introduced a long time
> ago.
> 
> Fortunately, I found a way to fix this without reverting the patch in question
> which was essential. So, as of revision 926398, it should be smooth sailing
> again.
> 
> Thanks for your reports!
> 

You're genius :)

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
22235 piasekr   20   0  439m  30m  18m S    4  0.8   0:01.32 lancelot

Thank you very much for your work!
Comment 12 Ivan Čukić 2009-02-15 18:06:39 UTC
Heh, thanks :)
Comment 13 Ivan Čukić 2009-02-17 14:00:02 UTC
*** Bug 184632 has been marked as a duplicate of this bug. ***
Comment 14 Ivan Čukić 2009-02-24 15:34:27 UTC
*** Bug 185442 has been marked as a duplicate of this bug. ***
Comment 15 Markos Chandras 2009-03-09 01:22:40 UTC
This patch doesnt seem to work anymore for 4.2.1 package
Comment 16 Ivan Čukić 2009-03-09 02:53:11 UTC
It is fixed in trunk, which is the current development version - the 4.3. So, the patch does work.

Ask your distribution to backport the patch for 4.2.
Comment 17 Markos Chandras 2009-03-09 12:30:22 UTC
We did backport the patch for 4.2.0 packages and lancelot worked fine back then. But now(4.2.1), this patch makes lancelot useless as it consumes 100% cpu

Anyway, nevermind, we ll take a look on this
Comment 18 Ivan Čukić 2009-03-09 12:42:25 UTC
Sorry, I haven't noticed that you're a Gentoo guy :)

The 100% CPU problem was resolved in the r926398
Comment 19 Markos Chandras 2009-03-09 12:51:27 UTC
Hehe

I ve read the revisions, but we encounter both problems . 100% CPU + doesn't switch the menu when we press a categories' button.

The patch we apply is this

http://bugs.gentoo.org/attachment.cgi?id=182135

This patch as I said, worked smoothly on 4.2.0 but not anymore on 4.2.1 , even thought it applies fine .

I need to take a deeper look there
Comment 20 Ivan Čukić 2009-03-09 13:02:51 UTC
If it helps, just to point out that there were no commits to Lancelot in 4.2 branch since 4.2.0. (I'm lying, there was one commit, but is totally unrelated to this problem)

So, I suppose that this is induced by the patches that Plasma received in 4.2 branch that differ from the ones in 4.3 or something.

Anyway, thanks for trying. I would appreciate it if you notify me of any progress so that I could pass the patch to other distros, if they want to incorporate it.
Comment 21 Markos Chandras 2009-03-09 13:09:00 UTC
Yes ok, as you said this should be a regression on 4.2.1 package . I ll try to work on this

Thanks
Comment 22 Robet Piasek 2009-03-09 20:29:41 UTC
Hi Markos,

This patch works ok with 4.2.1. There are some other issues with lancelot (window doesn't scale correctly when you want to make it bigger/smaller, adding favorites messes up lancelot window), but none of them is related to high cpu usage any more.

I will contact you in priv to discuss it further.

Rob
Comment 23 Markos Chandras 2009-03-09 21:36:38 UTC
Ok re-building kdeplasma-addons seems to fixed it ( for me at least ). I ll wait a confirmation from our users on gentoo bug.

Thanks and sorry for bothering you :)