Bug 364637 - Error messages (QML and others)
Summary: Error messages (QML and others)
Status: RESOLVED FIXED
Alias: None
Product: kinfocenter
Classification: Applications
Component: Energy Information (show other bugs)
Version: 5.6.95
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-22 15:09 UTC by Laurent Bonnaud
Modified: 2020-01-22 12:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.19.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Bonnaud 2016-06-22 15:09:55 UTC
Hi,

when I start kinfocenter from a terminal and click on "Energy Information", I see the following error messages in the terminal:

org.kde.kcoreaddons: Error loading plugin "kcm_energyinfo" "The shared library was not found." 
Plugin search paths are ("/usr/lib/x86_64-linux-gnu/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/ComboBox.qml:564: TypeError: Cannot read property '__dropDownStyle' of null
QQmlExpression: Expression file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:460:43 depends on non-NOTIFYable properties:
    Solid::Battery::serial
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:119:9: QML ColumnLayout: Binding loop detected for property "width"
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml:64: TypeError: Cannot read property 'x' of undefined

This is with this Neon package:

Package: kinfocenter
Version: 4:5.6.5+p16.04+git20160616.1441-0

and the application itself reports:

Version 5.7.90
KDE Frameworks 5.24.0
Qt 5.6.0 (built against 5.6.0)
The xcb windowing system

Reproducible: Always
Comment 1 wincak 2017-11-27 17:14:35 UTC
I can confirm these issues are still a problem, just the plugin search path is different on my Manjaro. Missing plugin seems to be breaking energy information statistics - cannot confirm this 100%.

org.kde.kcoreaddons: Error loading plugin "kcm_energyinfo" "The shared library was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
...

The library kcm_energyinfo.so is actually in /usr/lib/qt/plugins/kcms. After symlinking library to /usr/lib/qt/plugins the first error message disappears, but I still can't see any statistics.

Energy consumption statistics 0.1
KDE Frameworks 5.40.0
Qt 5.9.2 (built against 5.9.2)
KDE Plasma version 5.11.3
The xcb windowing system
Comment 2 Harald Sitter 2020-01-17 17:39:23 UTC
Is this still reproducible on newer plasmas?
Comment 3 wincak 2020-01-17 18:36:31 UTC
Yes, I still see this on current Neon - with the same search paths as in the original report - which was also Neon.
(However battery statistics work for me now as expected, so that was probably an unrelated issue.)

org.kde.kcoreaddons: Error loading plugin "kcm_energyinfo" "The shared library was not found." 
Plugin search paths are ("/usr/lib/x86_64-linux-gnu/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set

Operating System: KDE neon 5.17
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2
Kernel Version: 4.15.0-74-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-3520M CPU @ 2.90GHz
Memory: 7,5 GiB of RAM
Comment 4 Harald Sitter 2020-01-22 12:29:08 UTC
Upon inspection none of them are actually errors but warnings. The one that actually says error when it clearly isn't should be fixed by https://phabricator.kde.org/D26791