Description:

This plasmoid shows proccess information like top program.
Last changelog:

7 years ago

Version 0.4
+ fixed random crash in dataengine

Version 0.3
+ libproc dependency added to cmake


Version 0.2
+ initial version
+ add support for kde 4.3.0
+ transparent background
+ grey-black-white color scheme by default

aray

6 years ago

System - KDE 4.5.1 on Kubuntu 10.10 beta (updated till date).

When trying to compile I am getting the following error :

"ERROR: Could not find libproc devel package
(proc/readproc.h;proc/sysinfo.h).

In ubuntu: sudo apt-get install libproc-dev

-- Configuring incomplete, errors occurred!"

Trying to install the above package is giving error as "E: Unable to locate package lilbproc-dev"

Please help so that I can install this plasmoid.

Report

AlexeyTyapkin

6 years ago

Contact kubuntu developers about libproc package. In archlinux it is packaged as procps.
# pacman -Q -o /usr/include/proc/readproc.h
/usr/include/proc/readproc.h is owned by procps 3.2.8-1

Report

lordlukas

6 years ago

the same here

Report

aray

6 years ago

System - KDE 4.5.1 on Kubuntu 10.10 beta (updated till date).

When trying to compile I am getting the following error :

"ERROR: Could not find libproc devel package
(proc/readproc.h;proc/sysinfo.h).

In ubuntu: sudo apt-get install libproc-dev

-- Configuring incomplete, errors occurred!"

Trying to install the above package is giving error as "E: Unable to locate package lilbproc-dev"

Please help so that I can install this plasmoid.

Report

CaCO3

7 years ago

Thank you very much!
I was looking for something like that for a long time.
I had to modify it a bit, so it fitted into my sidebar.

After I installed the right devel-libs, it compiled without errors on debian.

Report

masyam83

7 years ago

I've a random crash (~once a week, PC is always on) of kdeinit4 on ubuntu karmic.
I've send report to bugs.kde.org, and they've told me that it's a bug of toplike widget (line #7 in stack trace).

There is a link to my bug report:
https://bugs.kde.org/show_bug.cgi?id=215034

And today I've another crash with very similar stack trace:

Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb78ca700 (LWP 1914))]

Thread 2 (Thread 0xab864b70 (LWP 1915)):
#0 0x00a4b422 in __kernel_vsyscall ()
#1 0x00152e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0099a78d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3 0x001c4e67 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4 0x00b7c922 in ?? () from /usr/lib/libQtNetwork.so.4
#5 0x001c3e32 in ?? () from /usr/lib/libQtCore.so.4
#6 0x0014e80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0x0098d7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb78ca700 (LWP 1914)):
[KCrash Handler]
#6 0x00933f43 in strlen () from /lib/tls/i686/cmov/libc.so.6
#7 0x01aaff66 in top_like::updateSourceEvent (this=0x93f7aa8, source=...) at /home/masyaman/Downloads/Plasmoids/toplike/data_engine/top_like.cpp:72
#8 0x01446a56 in ?? () from /usr/lib/libplasma.so.3
#9 0x0144831f in Plasma::DataEngine::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasma.so.3
#10 0x01aae302 in top_like::qt_metacall (this=0x93f7aa8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbf9a99b8) at /home/masyaman/Downloads/Plasmoids/toplike/build/data_engine/top_like.moc:60
#11 0x002ca263 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#12 0x002caec2 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x014445e3 in Plasma::DataContainer::updateRequested(Plasma::DataContainer*) () from /usr/lib/libplasma.so.3
#14 0x01473c50 in ?? () from /usr/lib/libplasma.so.3
#15 0x002c43bf in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#16 0x025a0f54 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x025a867c in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x0110ebfa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#19 0x002b46cb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#20 0x002e17ce in ?? () from /usr/lib/libQtCore.so.4
#21 0x002df0e0 in ?? () from /usr/lib/libQtCore.so.4
#22 0x00a84e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x00a88720 in ?? () from /lib/libglib-2.0.so.0
#24 0x00a88853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0x002df02c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x02641be5 in ?? () from /usr/lib/libQtGui.so.4
#27 0x002b2c79 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0x002b30ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x002b553f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#30 0x025a0dd7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#31 0x06c6e80d in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#32 0x0804dde1 in _start ()

Report

AlexeyTyapkin

7 years ago

I've released bug fix version. Please try.

Report

masyam83

7 years ago

I've a random crash (~once a week, PC is always on) of kdeinit4 on ubuntu karmic.
I've send report to bugs.kde.org, and they've told me that it's a bug of toplike widget (line #7 in stack trace).

There is a link to my bug report:
https://bugs.kde.org/show_bug.cgi?id=215034

And today I've another crash with very similar stack trace:

Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb78ca700 (LWP 1914))]

Thread 2 (Thread 0xab864b70 (LWP 1915)):
#0 0x00a4b422 in __kernel_vsyscall ()
#1 0x00152e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0099a78d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3 0x001c4e67 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4 0x00b7c922 in ?? () from /usr/lib/libQtNetwork.so.4
#5 0x001c3e32 in ?? () from /usr/lib/libQtCore.so.4
#6 0x0014e80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0x0098d7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb78ca700 (LWP 1914)):
[KCrash Handler]
#6 0x00933f43 in strlen () from /lib/tls/i686/cmov/libc.so.6
#7 0x01aaff66 in top_like::updateSourceEvent (this=0x93f7aa8, source=...) at /home/masyaman/Downloads/Plasmoids/toplike/data_engine/top_like.cpp:72
#8 0x01446a56 in ?? () from /usr/lib/libplasma.so.3
#9 0x0144831f in Plasma::DataEngine::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasma.so.3
#10 0x01aae302 in top_like::qt_metacall (this=0x93f7aa8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbf9a99b8) at /home/masyaman/Downloads/Plasmoids/toplike/build/data_engine/top_like.moc:60
#11 0x002ca263 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#12 0x002caec2 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x014445e3 in Plasma::DataContainer::updateRequested(Plasma::DataContainer*) () from /usr/lib/libplasma.so.3
#14 0x01473c50 in ?? () from /usr/lib/libplasma.so.3
#15 0x002c43bf in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#16 0x025a0f54 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x025a867c in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x0110ebfa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#19 0x002b46cb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#20 0x002e17ce in ?? () from /usr/lib/libQtCore.so.4
#21 0x002df0e0 in ?? () from /usr/lib/libQtCore.so.4
#22 0x00a84e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x00a88720 in ?? () from /lib/libglib-2.0.so.0
#24 0x00a88853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0x002df02c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x02641be5 in ?? () from /usr/lib/libQtGui.so.4
#27 0x002b2c79 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0x002b30ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x002b553f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#30 0x025a0dd7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#31 0x06c6e80d in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#32 0x0804dde1 in _start ()

Report

styrsven

7 years ago

Actually, it looks like ubuntu has a patch for libproc that makes freeproc and read_cmdline functions public. So it doesn't look like this plasmoid is compilable on anything else than ubuntu.

Report

AlexeyTyapkin

7 years ago

May be, I've compiled it on kubuntu.

Report

solanum

7 years ago

Agreed. libproc is provided by procps on Mandriva and the compile fails with the same error when I try.

I knew the rise of Ubuntu was going to be a problem for the rest of us!!

Report

dragon48

7 years ago

im using opensuse 64bit
no libproc for opensuse????

Report

lestek

7 years ago

...
[100%] Building CXX object data_engine/CMakeFiles/plasma_engine_top_like.dir/top_like.o
In file included from /usr/include/c++/4.4/ext/hash_map:59,
from /home/lestek/Dokumenty/instalki/toplike/data_engine/top_like.h:10,
from /home/lestek/Dokumenty/instalki/toplike/data_engine/top_like.cpp:1:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
Linking CXX shared module ../lib/plasma_engine_top_like.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libproc.a(readproc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libproc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_engine_top_like.so] Error 1
make[1]: *** [data_engine/CMakeFiles/plasma_engine_top_like.dir/all] Error 2
make: *** [all] Error 2

Report

AlexeyTyapkin

7 years ago

Are you using x86_64 bit linux?

Try to add following CMakeLists.txt:
IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fPIC" )
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} -fPIC" )
ENDIF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")

If it will helps let me know. I'll add it to next version

Report

lestek

7 years ago

I'm using x86_64 linux, Karrmic Koala 9.10, kde 4.3.2.

Now, after adding that code, make gives following output:

[ 50%] Built target plasma_engine_top_like_automoc
Linking CXX shared module ../lib/plasma_engine_top_like.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libproc.a(readproc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libproc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_engine_top_like.so] Error 1
make[1]: *** [data_engine/CMakeFiles/plasma_engine_top_like.dir/all] Error 2
make: *** [all] Error 2

Report

horchi

7 years ago

same here, with and without the change in CMakeLists.txt

Regards
horchi

Report

srog

7 years ago

Working nicely in the Kubuntu 9.10 RC. Thank you !

Report

TheRob

7 years ago

what am I missing?

rob@crappa ~/builds/toplike $ make
[ 0%] Built target plasma_applet_toplike_automoc
[ 50%] Built target plasma_applet_toplike
[ 50%] Built target plasma_engine_top_like_automoc
Linking CXX shared module ../lib/plasma_engine_top_like.so
CMakeFiles/plasma_engine_top_like.dir/top_like.o: In function `top_like::updateTopList()':
/home/rob/builds/toplike/data_engine/top_like.cpp:110: undefined reference to `freeproc'
CMakeFiles/plasma_engine_top_like.dir/top_like.o: In function `top_like::updateSourceEvent(QString const&)':
/home/rob/builds/toplike/data_engine/top_like.cpp:69: undefined reference to `read_cmdline'
collect2: ld returned 1 exit status
make[2]: *** [lib/plasma_engine_top_like.so] Error 1
make[1]: *** [data_engine/CMakeFiles/plasma_engine_top_like.dir/all] Error 2
make: *** [all] Error 2

Report

AlexeyTyapkin

7 years ago

libproc development lib
e.g.:
/usr/lib/libproc.a

Report

TheRob

7 years ago

hmmm, I have:
/lib/libproc-3.2.8.so
/lib/libproc.so

but no .a file...
gonna try and create a symlink...

thx

Report

AlexeyTyapkin

7 years ago

I think this doesn't help. Because *.a it is static library archive.

Tell me what linux distro do you use. I'll try to find out where is the issue. Or may be your distrib has something like libproc-static-devel.

Report

TheRob

7 years ago

Thx for helping.

distro is gentoo...
...package in gentoo that has libproc
file is called procps.

I can't find any packages that could have
the libproc.a file... ..or at least any kinda
devel package as gentoo is a source
based distro it should be able to compile
most the programs.

did a quick google about the libproc.a
file and came up empty.

I haven't installed any plasmoids in a while
but all your 3 seems to be top notch,
been wondering when we'll see some
desent cpu/mem plasmoids :)

Report

AlexeyTyapkin

7 years ago

Try to compile static procps devel package. I'll investigate why it doesn't want to compile with dynamic lib.

Report

TheRob

7 years ago

I rather not do that....

I guess I can live without this, it would
be nice tho... if you find out a way to compile
this with dynamic proc lib update it or
let me know :)

Thx for the help.

//Robert

Report

mreloads

7 years ago

I'm using Fedora 11.

Report

7 years ago

Version 0.4
+ fixed random crash in dataengine

Version 0.3
+ libproc dependency added to cmake


Version 0.2
+ initial version
+ add support for kde 4.3.0
+ transparent background
+ grey-black-white color scheme by default

Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 59%
59.00 Likes
41 Dislikes
Details
version
0.4
updated Nov 30 2009
added Oct 27 2009
downloads
page views 597