Bug 403011 - kinfocenter crashes when clicking on some tabs, if kirigami is not available
Summary: kinfocenter crashes when clicking on some tabs, if kirigami is not available
Status: RESOLVED FIXED
Alias: None
Product: kinfocenter
Classification: Applications
Component: Energy Information (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-08 22:35 UTC by shevegen
Modified: 2020-01-20 16:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.18.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shevegen 2019-01-08 22:35:08 UTC
I compiled kinfocenter from this URL:

https://download.kde.org/stable/plasma//5.14.5/kinfocenter-5.14.5.tar.xz

Compilation worked fine.

I then started it - starting was fine.

I then clicked on the first tab called "About System". This worked fine,
no problem.

I then clicked on the second tab called "Memory". This also worked fine.

I then clicked on "Energy Information" and the moment I clicked this,
the kinfocenter application crashed.

On the commandline (I started it from the commandline) I can see this:

---

org.kde.kcoreaddons: Error loading plugin "kcm_energyinfo" "The shared library was not found." 
Plugin search paths are ("/usr/lib64/plugins", "/Programs/Qt/5.12.0/plugins", "/usr/lib64/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.Disconnected"
Error connecting to wakeup data changes via dbus
QQmlComponent: Component is not ready
<Unknown File>:2:1: module "org.kde.kirigami" is not installed
Segmentation fault

---

I believe the error is that I have not installed kirigami. I will
try this next, but either way I believe that this application
should NOT segfault like that.

Clicking on the next tab also crashes the application.

org.kde.kcoreaddons: Error loading plugin "kcm_fileindexermonitor" "The shared library was not found." 
Plugin search paths are ("/usr/lib64/plugins", "/Programs/Qt/5.12.0/plugins", "/usr/lib64/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
QQmlComponent: Component is not ready
<Unknown File>:2:1: module "org.kde.kirigami" is not installed
Segmentation fault

By the way on a side note, the message  "kcm_fileindexermonitor"
"The shared library was not found." is not super useful to me.

Can you guys also give the name of the shared library? It would
make it easier for me to find where it is since I register the
components locally; but this is an aside. I believe there should
be a prior check whether kirigami is available or not; and if not
then I would recommend displaying this in a widget somehow. Could
be a simple text, or with some red colours or something if you
want to get fancy - I believe showing the problem is better than
segfault. 

My host system:

  Operating System:                  GNU/Linux
  Os Bit Type:                       x86_64
  CPU Model:                         AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G, 2 cores
  CFLAGS in use:                     -O2 -fPIC -fno-strict-overflow -Wno-error
  RAM:                               15313688 kB RAM (14954.8 MB) (14.6 Gig)
  Gcc Version:                       8.2.0
  Glibc Version:                     2.23
  Linux Kernel:                      4.4.14
  Binutils Version:                  2.31.51.20190105
Using Qt version 5.12.0 in /Programs/Qt/5.12.0/lib
Comment 1 Harald Sitter 2020-01-20 16:34:15 UTC
Git commit ced4536e510e54796e3f9069273f665d9f8218dd by Harald Sitter.
Committed on 20/01/2020 at 16:32.
Pushed by sitter into branch 'Plasma/5.18'.

find org.kde.kirigami as runtime dependency

Summary:
without it the energy and indexer modules won't work.
FIXED-IN: 5.18.0

Test Plan: org.kde.kirigami listed as runtime dep and reported missing when not installed

Reviewers: broulik, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26789

M  +2    -0    CMakeLists.txt

https://commits.kde.org/kinfocenter/ced4536e510e54796e3f9069273f665d9f8218dd