| Summary: |
plasmoid fails to read values on initialization in the plasmoidviewer |
| Product: |
[Unmaintained] plasma4
|
Reporter: |
Nikita Melnichenko <open-development> |
| Component: |
general | Assignee: |
Plasma Bugs List <plasma-bugs-null> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
normal
|
CC: |
kde, notmart, panard
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Gentoo Packages | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
|
Version Fixed/Implemented In:
|
|
|
Sentry Crash Report:
|
|
| |
| Attachments: |
Testcase, javaxscript plasmoid.
|
Created attachment 59230 [details] Testcase, javaxscript plasmoid. Version: unspecified (using KDE 4.6.2) OS: Linux Plasmoid has different behavior when running on Plasma or Plasmoidviewer. readConfig works well, when we use Plasma, and returns default values, when we use Plasmoidviewer. This is only about initialization, because readConfig reads values within callbacks like OnClick fine. See the testcase. It a JS plasmoid, but I believe it's a general bug. Reproducible: Always Steps to Reproduce: 1. Run the testcase in the plasmoidviewer. 2. Click 'Test' button. 3. Rerun the testcase in the plasmoidviewer. Actual Results: Running a testcase: $ plasmoidviewer . plasmoidviewer(15378)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) plasmoidviewer(15378)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) Initial values: int = 0, string = [] plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: clicked plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: Before-write values: int = 1, string = ok After-write values: int = 1, string = ok plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: $ plasmoidviewer . plasmoidviewer(15378)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) plasmoidviewer(15378)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) Initial values: int = 0, string = [] plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: plasmoidviewer(15378)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: Expected Results: On the second run output should be: Initial values: int = 1, string = ok BTW, I'm not sure if Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0) is good. Please fix it, cause it's really hard to debug plasmoids. I have to either restart the Plasma or do a lot of clicks to add and remove plasmoids (that's BTW is not sufficient, cause I can't test restarts). With this bug plasmoid only works properly on Plasma. :( There was no such a bug in the KDE SC 4.4.5.