This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kalarm consumes 100 %CPU

Tags: None
(comma "," separated)
User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Kalarm consumes 100 %CPU

Tue Aug 06, 2013 10:57 am
Hi, suddenly my kalarm went crazy and now when I add an alarm it
starts consuming CPU 100% and it doesn't stop. I have to delete the
alarm or kill kalarm. I restart kalarm and add any alarm and the
kalarm consumes 100% CPU.

If I use kalarm as another user there is no problem. So it seems that
it is a config or cache problem, but I can't find where the problem
is.

I tried several things

* Delete my /var/tmp/kdecache-<user>

* Delete all kalarm config files in ~/.kde:
share/config/akonadi_kalarm_resource_*
share/config/kalarmrc
share/apps/kalarm/*

* Delete all alarms

and the problem persists. Can you suggest me something else to try?

As a last resource I would try to delete my whole ~/.kde (or rename it
temporarily), but I should then reconfigure all my KDE.

SYSTEM: KDE 4.10.4-1 on Fedora 19, kernel 3.9.5-301, processor
i5-2450M.

TIA, Mario
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Kalarm consumes 100 %CPU

Tue Aug 06, 2013 11:35 am
couple of thing to try:

there is kalarmdrc and kalarmui.rc in share/config try renaming them

run:
Code: Select all
kbuildsycoca4 --noincremental  2> /dev/null


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Tue Aug 06, 2013 12:15 pm
@google01103: Hi, I don't have those files kalarmdrc, kalarmui.rc !!

I tried to rebuild the cache with kbuildsycoca4 but it doesn't fix the problem.

Thanks for your help!
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Kalarm consumes 100 %CPU

Tue Aug 06, 2013 12:34 pm
Mario Storti wrote:@google01103: Hi don't have those files kalarmdrc, kalarmui.rc !!

I tried to rebuilda cache with kbuildsycoca4 but it doesn't fix the problem.

Thanks for your help!

the kalarmui.rc is in apps not config so you had already deleted it
the kalarmdrc might be cruft from an older release as it's dated 2009

the kdecache-<user> should be cleaned with KDE not running


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Tue Aug 06, 2013 12:42 pm
google01103 wrote:the kalarmui.rc is in apps not config so you had already deleted it
the kalarmdrc might be cruft from an older release as it's dated 2009


I don't quite understand you. Neither kalarmui.rc, kalarmdrc, exist. I
looked at a newly created user, and after calling `kalarm' the files
aren't there for that user neither.
djarvie
KDE Developer
Posts
103
Karma
0
OS

Re: Kalarm consumes 100 %CPU  Topic is solved

Tue Aug 06, 2013 12:52 pm
Something else you could try would be to delete the KAlarm calendars from Akonadi. Run akonadiconsole (which you may have to install), and in the first tab, there should be at least three KAlarm calendars listed. Remove these and see whether that helps.


KAlarm author
User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Tue Aug 06, 2013 1:09 pm
djarvie wrote:Something else you could try would be to delete the KAlarm calendars from Akonadi. Run akonadiconsole (which you may have to install), and in the first tab, there should be at least three KAlarm calendars listed. Remove these and see whether that helps.


I has mentioned before, I tried already to delete the whole directory
~/.kde/share/apps/kalarm/, which includes these calendars

~/.kde/share/apps/kalarm/calendar.ics
~/.kde/share/apps/kalarm/template.ics
~/.kde/share/apps/kalarm/expired.ics
~/.kde/share/apps/kalarm/displaying.ics

It doesn't worked.

I launched akonadiconsole and in the first tab ("Agents") I see three
entries: "Active Alarms", "Archived Alarms", and "Alarm Templates". Do
you mean to delete those? (Screen capture
http://picpaste.com/akonadi.png) .
User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Tue Aug 06, 2013 4:08 pm
Mario Storti wrote:
djarvie wrote:Something else you could try would be to delete the KAlarm calendars from Akonadi. Run akonadiconsole (which you may have to install), and in the first tab, there should be at least three KAlarm calendars listed. Remove these and see whether that helps.


I has mentioned before, I tried already to delete the whole directory
~/.kde/share/apps/kalarm/, which includes these calendars

~/.kde/share/apps/kalarm/calendar.ics
~/.kde/share/apps/kalarm/template.ics
~/.kde/share/apps/kalarm/expired.ics
~/.kde/share/apps/kalarm/displaying.ics

It doesn't worked.

I launched akonadiconsole and in the first tab ("Agents") I see three
entries: "Active Alarms", "Archived Alarms", and "Alarm Templates". Do
you mean to delete those? (Screen capture
http://picpaste.com/akonadi.png) .


Well, I tried to delete the kalarm entries in "Akonadi Console" and the
problem persists. More ideas?
djarvie
KDE Developer
Posts
103
Karma
0
OS

Re: Kalarm consumes 100 %CPU

Wed Aug 07, 2013 12:00 pm
You say you tried to delete those entries - did you succeed? On the assumption that you did succeed, KAlarm should then have shown no alarms, and using View -> Calendars, should show no calendars either until you restart it. Did you restart KAlarm after that - does it still use 100% CPU even after restarting it?


KAlarm author
User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Wed Aug 07, 2013 3:21 pm
djarvie wrote:You say you tried to delete those entries - did you succeed? On the assumption that you did succeed, KAlarm should then have shown no alarms, and using View -> Calendars, should show no calendars either until you restart it. Did you restart KAlarm after that - does it still use 100% CPU even after restarting it?


I succeded in deleting those entries. The sequence is as follows

. I start with kalarm not running.

. Launch Akonadi Console

. Remove the 3 calendar entries

. Akonadi Console doesn't show any calendars

. Now launch kalarm

. Kalarm doesn't allow me to create entries, because I need to have a
calendar.

. Back to Akonadi Console, I create a new calendar "My Calendar"

. In Kalarm, it lets me add an entry.

. The CPU goes to 100%, laptop starts heating

. I delete the alarm

. CPU goes to normal values

Thank again!!
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Kalarm consumes 100 %CPU

Wed Aug 07, 2013 3:41 pm
what type of alarm?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Wed Aug 07, 2013 4:44 pm
google01103 wrote:what type of alarm?


The simplest on: 23:00hs, text "dshdgshgds", no recurrence.

I read somewhere that alarms with recurrence can cause problems, so
the first thing I tried was to delete all recurrent alarms, but that
dind't work.

So, as a summary: I have no alarms now, and when I set one alarm (the
simplest possible) CPU goes to 100%.
User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Wed Aug 07, 2013 10:22 pm
Wait, it seems that now it's running OK, i.e. NOT consuming 100%
CPU. I don't know what has changed. I will mark the problem as
solved, but I don't understand what happened.

Thanks to all who helped!
djarvie
KDE Developer
Posts
103
Karma
0
OS

Re: Kalarm consumes 100 %CPU

Thu Aug 08, 2013 8:19 am
Just to be sure, did you verify that it the kalarm process which was consuming 100% CPU, and not some other process?


KAlarm author
User avatar
Mario Storti
Registered Member
Posts
37
Karma
0

Re: Kalarm consumes 100 %CPU

Thu Aug 08, 2013 10:30 am
djarvie wrote:Just to be sure, did you verify that it the kalarm process which was consuming 100% CPU, and not some other process?


Confirmed that it was kalarm. When the problem is present I launch
`top' and I see kalarm consuming 100% CPU.

As I told before, the problem seems fixed now. I had some trouble in
recovering the system, since I had all my calendars deleted. But it
seems that now I have kalarm fully functional.

I'm a big fan of kalarm, though I do a rather basic usage of it.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]