Bug 179994 - Clock applets not working
Summary: Clock applets not working
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 09:15 UTC by Salvo "LtWorf" Tomaselli
Modified: 2009-01-18 23:16 UTC (History)
4 users (show)

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


Attachments
/home/jon/.kde4.2/share/config/plasmoidviewer-appletsrc (599 bytes, text/plain)
2009-01-18 09:06 UTC, Jon Severinsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2009-01-08 09:15:27 UTC
Version:           4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221)) (using Devel)
OS:                Linux
Installed from:    Compiled sources

Every clock applet that should show a text with the time, (digital, fuzzy) shows nothing, just some blank space.
And the analog clock is always at 00:00.
The system's cock is working properly and from the control panel, where i select the format of date and time, i can see the correct time.
Comment 1 Marco Martin 2009-01-08 18:47:48 UTC
hmm, seems some kind of binary incompatibility with the data engine.
probably a recompile of the whole kde is needed.
can you try it and see if the problem persists?
Comment 2 Aaron J. Seigo 2009-01-08 19:26:25 UTC
yes, this will happen if the engine doesn't load; which implies the engine isn't loading. which implies a broken install.

as marco says, please rebuilt the time engine in kdebase.
Comment 3 Salvo "LtWorf" Tomaselli 2009-01-09 00:20:22 UTC
Hem... I've installed from the unofficial repository kde42.debian.net, i didn't compile it. So all i can do now is send this bugreport to them.
Comment 4 Salvo "LtWorf" Tomaselli 2009-01-10 18:53:31 UTC
Hem.. i've found out that if i login and insert a clock, it works. But if i remove it and insert it again it doesn't. It works only the 1st time i insert it.
The thing i was doing was:
1: add to the desktop
2: oh it works
3: remove from desktop
4: add to the bar
5: oh it doesn't work
6: try again and again

But if i logout, something is reset and it works.
Comment 5 Aaron J. Seigo 2009-01-15 06:04:01 UTC
can't reproduce with the given steps.

removed all my clocks, add a new one after the last was removed, still works.

try `plasmoidviewer digital-clock` from a konsole window and see if that works; if it doesn't provide the output you see on the konsole. if it does work...

from a konsole window quit plasma: kquitapp plasma. then start it again and see what output you get on the konsole when you add a non-functional clock.
Comment 6 Salvo "LtWorf" Tomaselli 2009-01-15 08:38:01 UTC
From the viewer the applet works. I've tried twice and it works.

This is the output i have when i add a new clock (that doesn't work):
plasma(22411)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 27)
plasma(22411)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasma(22411)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 27)
plasma(22411)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
QGraphicsLayout::addChildLayout: layout already has a parent
QGraphicsLayout::addChildLayout: layout already has a parent
Comment 7 Jon Severinsson 2009-01-17 19:56:21 UTC
I have the same problem. In my setup I have two digital clocks (one clock per panel, one panel per monitor, two monitors), and after installing KDE 4.1.96 from the gentoo ebuilds both was just blank space.

I tried `plasmoidviewer digital-clock` and it worked. Multipple times. Until I changed the settings. Then it adjusted to the new settins but stopped ticking (never changed the displayed time for several minutes). Restarting the application would result in just black space. Removing ~/.kde4/share/config/plasmoidviewer-appletsrc would make it work again. Until I changed the settings...

So I got an idea, exited plasma (`kquitapp plasma`) and remove the [Containments][XX][Applets][XX][Configuration] entries refering to my digital clocks in ~/.kde4/share/config/plasma-appletsrc and restarted plasma. Didn't quite work as I had hoped though, one of the clocks show the time (though not configured as I'd like it ofcourse) and the other one is blank.

Whether or not `plasmoidviewer digital-clock` works as expected or not the output is identical (exept for the pid ofcourse):
$ plasmoidviewer digital-clock
plasmoidviewer(31622)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 27)
plasmoidviewer(31622)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(31622)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 27)
plasmoidviewer(31622)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
QGraphicsLayout::addChildLayout: layout already has a parent
QGraphicsLayout::addChildLayout: layout already has a parent
Comment 8 Richard Bos 2009-01-17 23:10:22 UTC
Same problem for me.  I have 2 clock configured.  A digital clock (the
standard one, I think, with date and time zone) in the bottom panel.
A have a analogue clock on the right side.  They were both working fine
on 4.1.87.  After installing 4.1.96 the clock stop ticking...
The analogue is still visible but all fingers (including the one for
seconds) are pointing to 12:00 hours.  The digital on the bottom panel
is not visible, but the context menu pops up when I ask for it.

I removed plasma-appletsrc, which was created new upon login.  Still no
joy, the clock is not counting :(

This is with opensuse rpms.
Comment 9 Salvo "LtWorf" Tomaselli 2009-01-17 23:28:50 UTC
Guess it is not just a wrong compiling if it happens on different distro
Comment 10 Aaron J. Seigo 2009-01-18 03:01:42 UTC
> Guess it is not just a wrong compiling if it happens on different distro

both OpenSuse and Kubuntu managed to forget to include the rss engine in their packages, breaking RSSNow and News. so ... it's not exactly a firm way to tell if it's a packaging issue or not.

this, however is interesting:

"Removing
~/.kde4/share/config/plasmoidviewer-appletsrc would make it work again. Until I
changed the settings..."

could you attach a copy of plasmoidviewer-appletsrc that *doesn't* work? thanks.
Comment 11 Salvo "LtWorf" Tomaselli 2009-01-18 08:26:13 UTC
[Containments][1]
activity=
desktop=-1
formfactor=0
geometry=0,0,200,100
immutability=1
location=0
plugin=
screen=-1
zvalue=0

[Containments][1][Applets][2]
geometry=0,0,180.722891566265,100
immutability=1
plugin=digital-clock
zvalue=0

[Containments][1][Applets][2][Configuration][PopupApplet]
DialogHeight=286
DialogWidth=256
Comment 12 Jon Severinsson 2009-01-18 09:06:38 UTC
Created attachment 30374 [details]
/home/jon/.kde4.2/share/config/plasmoidviewer-appletsrc

Attatching a non-working plasmoidviewer-appletsrc. Note that it contains the default settings, all I did to create it was open the settings dialog and click on "OK".
Comment 13 Richard Bos 2009-01-18 10:41:18 UTC
Perhaps is has to do with the widget-style?  I don't see the clock e.g., but
my son, on the same computer, uses a different theme and he has one, and it is
ticking fine.
Comment 14 Salvo "LtWorf" Tomaselli 2009-01-18 15:00:48 UTC
I've tried with all my themes. No results...
Comment 15 Aaron J. Seigo 2009-01-18 21:20:50 UTC
defaultTimezone=Lokal <-- yeah, that's not going to work.

this is obviously due to the recent i18n changes in the config dialog. grr.
Comment 16 Aaron J. Seigo 2009-01-18 21:38:08 UTC
SVN commit 913137 by aseigo:

be careful to use the untranslated version of "Local" since sources in engines are not translated (for the same reasons we don't translate keys in config files ;)
BUG:179994


 M  +18 -7     clockapplet.cpp  
 M  +1 -0      clockapplet.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=913137
Comment 17 Aaron J. Seigo 2009-01-18 21:46:03 UTC
SVN commit 913141 by aseigo:

be careful to use the untranslated version of "Local" since sources in engines are not translated (for the same reasons we don't translate keys in config fil
es ;)
CCBUG:179994


 M  +18 -7     clockapplet.cpp  
 M  +1 -0      clockapplet.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=913141
Comment 18 Richard Bos 2009-01-18 23:16:46 UTC
>defaultTimezone=Lokal <-- yeah, that's not going to work.
>this is obviously due to the recent i18n changes in the config dialog. grr.

I changed this locally and this made the digital in the bottom panel
work again, yeah :)

But the analogue one, is still pointing at 12:00 hours :(
I logged in and out again.  I removed the analogue clock which is in my
case located in an automatically hiding right panel, and added it back
again.  It does not help.
It also does not work when I add the clock to the "desktop"/background.
I hope that this one can be fixed too.