[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2017-10-04 Thread Ben Cooksley
https://bugs.kde.org/show_bug.cgi?id=367728

Ben Cooksley  changed:

   What|Removed |Added

Version|1.3-svn |1.x

-- 
You are receiving this mail because:
You are watching all bug changes.

[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2017-07-15 Thread Rolf Pedersen
https://bugs.kde.org/show_bug.cgi?id=367728

Rolf Pedersen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Version Fixed In||2.0.10
 Resolution|--- |FIXED

--- Comment #9 from Rolf Pedersen  ---
Somewhat recently, my high-CPU problem with kaffeine appears to have been
resolved.  I suspect this is mostly due to my move to the development branch,
"Cauldron", of Mageia, what will soon be released as Mageia 6.  Here, we are
using plasma 5, while I was in plasma 4, before.  Some information from the
gui:

Kaffeine
Version 2.0.10

KDE Frameworks 5.32.0
Qt 5.6.2 (built against 5.6.2)
The xcb windowing system

The rpm in use and installation date (I noticed your recent source edits to
mitigate CPU usage but this build came before):

[rolf@z170i ~]$ rpm -qa --last | grep kaffeine
kaffeine-handbook-2.0.10-1.mga6.noarchSun 02 Jul 2017 05:34:52 AM PDT
kaffeine-2.0.10-1.mga6.x86_64 Sun 02 Jul 2017 05:34:51 AM PDT

This official Mageia package is working more smoothly than ever and I have not
seen the CPU usage problem I was struggling with.  Thanks for all your work
with this program, one of my "must haves".

-- 
You are receiving this mail because:
You are watching all bug changes.

[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2017-02-16 Thread Rolf Pedersen
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #8 from Rolf Pedersen  ---
(In reply to Mauro Carvalho Chehab from comment #7)
> (In reply to Rolf Pedersen from comment #6)
> 
> > Still, if I have kaffeine tune and display an ATSC channel, htop reports it
> > uses more than 2 of 4 cores on the i5-6500 CPU @ 3.20GHz (> 200% cpu across
> > several processes).  If I stop the playback, htop shows kaffeine relaxes to
> > one process at 100% and stays there for the few minutes I watched.  If I
> > close kaffeine and start it without opening Digital TV, it doesn't even show
> > up on the first page of htop.  Here, I'm only using to record, so I can
> > workaround, probably, but it doesn't seem healthy, overall, to me.
> 
> There were a task at EPG handling that had a high performance impact. I
> solved it by implementing an algorithm that it is a lot faster than the
> previous one.
> See bug #371579.
> 
> Could you please test if the issue was solved?
> 
> Could you please test again, against upstream version?

Yes, I just noticed how your beast of a machine was (also) crippled in the
kaffeine-git news feed and immediately wondered if the commit would help with
my usage problem ;)  I will pull and build, use it for a while, then report
back.
Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2017-02-16 Thread Mauro Carvalho Chehab
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #7 from Mauro Carvalho Chehab  ---
(In reply to Rolf Pedersen from comment #6)

> Still, if I have kaffeine tune and display an ATSC channel, htop reports it
> uses more than 2 of 4 cores on the i5-6500 CPU @ 3.20GHz (> 200% cpu across
> several processes).  If I stop the playback, htop shows kaffeine relaxes to
> one process at 100% and stays there for the few minutes I watched.  If I
> close kaffeine and start it without opening Digital TV, it doesn't even show
> up on the first page of htop.  Here, I'm only using to record, so I can
> workaround, probably, but it doesn't seem healthy, overall, to me.

There were a task at EPG handling that had a high performance impact. I solved
it by implementing an algorithm that it is a lot faster than the previous one.
See bug #371579.

Could you please test if the issue was solved?

Could you please test again, against upstream version?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2016-10-04 Thread Rolf Pedersen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #6 from Rolf Pedersen  ---
(In reply to Mauro Carvalho Chehab from comment #4)
> (In reply to Rolf Pedersen from comment #3)
> > However, after building and executing kaffeine,
> >  
> > Aug 24 18:24:13 z170i audit[8335]:  auid=4294967295 uid=501
> > gid=501 ses=4294967295 pid=8335 comm="kaffeine"
> > exe="/home/rolf/kaffeine/kaffeine/src/kaffeine" sig=11
> > Aug 24 18:24:13 z170i kernel: kaffeine[8335]: segfault at 7fbcbe0b90f0 ip
> > 7fbc9ab3814c sp 7ffeb3683e30 error 7 in
> > libQtGui.so.4.8.7[7fbc9a983000+a1e000]
> 
> That's weird! why is it trying to use QT4? It seems that there's something
> wrong on your environment.

I didn't give up!  Although it might be a bit messy to talk about kaffeine-2 in
this bug, I think I found a solution to the qt4 problem here:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1328466

"Running a Qt5 application using libvlc crashes that application, apparently
because of outdated/non-existing VLC cache (backtrace attached below).

Running "/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/" as root fixes the
crash; apparently the Qt4 GUI is being loaded during introspection, causing a
symbol clash crash.

According Project Neon packagers, it's a bug in the VLC package as that command
should be run after installing to make sure the cache actually reflects what is
installed."

What I tried, after locating the proper files in
vlc-2.2.4-1plf-plf2014.1.x86_64 on ROSA Desktop Fresh R8 release 2014.1 for
x86_64 is

sudo /usr/lib64/vlc/vlc-cache-gen -f /usr/lib64/vlc/plugins/

Right after that, the kaffeine-2.0.5 built from a git pull this morning
launched, I was able to configure it, and it's working for me, so far.  (The
same build segfaulted as previously before vlc built the cache.)

Still, if I have kaffeine tune and display an ATSC channel, htop reports it
uses more than 2 of 4 cores on the i5-6500 CPU @ 3.20GHz (> 200% cpu across
several processes).  If I stop the playback, htop shows kaffeine relaxes to one
process at 100% and stays there for the few minutes I watched.  If I close
kaffeine and start it without opening Digital TV, it doesn't even show up on
the first page of htop.  Here, I'm only using to record, so I can workaround,
probably, but it doesn't seem healthy, overall, to me.

Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2016-09-15 Thread Rolf Pedersen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #5 from Rolf Pedersen  ---
Hi, yes.  Kaffeine built, cmake showed everything was available, there were no
errors with make, except:

..
[ 95%] Linking CXX executable kaffeine
[ 95%] Built target kaffeine
Scanning dependencies of target doc-kaffeine-1
[ 97%] Generating kaffeine.1
Warn: AUTHOR sect.: no personblurb|contrib for Burkhard Lück   kaffeine
Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib   kaffeine
Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb   kaffeine
Note: Writing kaffeine.1
[ 97%] Built target doc-kaffeine-1
Scanning dependencies of target doc-index-cache-bz2
[100%] Generating index.cache.bz2
[100%] Built target doc-index-cache-bz2

I have tried resetting the vlc config, per a bug with similar symptoms. 
Probably, this problem of mine is because I'm trying to run kaffeine2 in kde4? 
Plasma 5 is very immature and buggy where I'm currently living, ROSA R8, but
I've got an installation of that desktop on the machine and I'll try this
build, there.

Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2016-09-15 Thread Mauro Carvalho Chehab via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #4 from Mauro Carvalho Chehab  ---
(In reply to Rolf Pedersen from comment #3)
> However, after building and executing kaffeine,
>  
> Aug 24 18:24:13 z170i audit[8335]:  auid=4294967295 uid=501
> gid=501 ses=4294967295 pid=8335 comm="kaffeine"
> exe="/home/rolf/kaffeine/kaffeine/src/kaffeine" sig=11
> Aug 24 18:24:13 z170i kernel: kaffeine[8335]: segfault at 7fbcbe0b90f0 ip
> 7fbc9ab3814c sp 7ffeb3683e30 error 7 in
> libQtGui.so.4.8.7[7fbc9a983000+a1e000]

That's weird! why is it trying to use QT4? It seems that there's something
wrong on your environment.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2016-08-24 Thread Rolf Pedersen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #3 from Rolf Pedersen  ---

> If you were compiling libdvbv5 from its source, there was a bug on it, due to
> some recent features that are under development.
>
> I just added a fix there for it. In such case, please update libdvbv5 from its
> git tree and recompile/reinstall it. This should solve the issue with kaffeine
> 2.x.

I followed the instructions in README.md of the kaffeine git source:

Compiling libdvbv5 (as normal user):

wget https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.10.0.tar.bz2
tar xvf v4l-utils-1.10.0.tar.bz2
cd v4l-utils
./bootstrap.sh && ./configure && make

Installing the library (as root):

make install

which, it seems to me, built a lot more than libdvbv5.  So, I don't know where
is the git source, whether the instructions to build are the same.

Furthermore, I found I had a ROSA package installed that had libdvdv5 in it,
afaict:

rolf@z170i ~ $ rpm -ql lib64v4l0
/usr/lib64/libdvbv5.so.0
/usr/lib64/libdvbv5.so.0.0.0
/usr/lib64/libv4l1.so.0
/usr/lib64/libv4l1.so.0.0.0
/usr/lib64/libv4l2.so.0
/usr/lib64/libv4l2.so.0.0.0
/usr/lib64/libv4l2rds.so.0
/usr/lib64/libv4l2rds.so.0.0.0
/usr/lib64/libv4lconvert.so.0
/usr/lib64/libv4lconvert.so.0.0.0

I did sudo make uninstall in the v4l-utils sources, re-installed lib64v4l0, got
a fresh copy of kaffeine

git clone git://anongit.kde.org/kaffeine.git

then

cmake .
make

>From cmake:

-- The following OPTIONAL packages have not been found:

 * KF5DocTools (required version >= 5.11.0)

-- Looking for include file /home/rolf/kaffeine/kaffeine/include/frontend.h
-- Looking for include file /home/rolf/kaffeine/kaffeine/include/frontend.h -
found
-- Checking for module 'libdvbv5'
--   Found libdvbv5, version 1.8.1
-- Found Libdvbv5: /usr/lib64/libdvbv5.so (found version "1.8.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rolf/kaffeine/kaffeine

However, after building and executing kaffeine,

Aug 24 18:24:13 z170i audit[8335]:  auid=4294967295 uid=501 gid=501
ses=4294967295 pid=8335 comm="kaffeine"
exe="/home/rolf/kaffeine/kaffeine/src/kaffeine" sig=11
Aug 24 18:24:13 z170i kernel: kaffeine[8335]: segfault at 7fbcbe0b90f0 ip
7fbc9ab3814c sp 7ffeb3683e30 error 7 in
libQtGui.so.4.8.7[7fbc9a983000+a1e000]
Aug 24 18:24:14 z170i systemd-coredump[8338]: Process 8335 (kaffeine) of user
501 dumped core.

Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2016-08-24 Thread Mauro Carvalho Chehab via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #2 from Mauro Carvalho Chehab  ---
(In reply to Rolf Pedersen from comment #0)
> When Mageia 5 updated to kaffeine-1.3, I started having problems with
> kaffeine exiting by itself, usually during unattended scheduled recordings,
> and I found kaffeine was no longer running, my recordings were incomplete,
> when I looked.  On the occasion or two I monitored the machine, I saw that
> /tmp filled completely.

Unfortunately, we're not maintaining Kaffeine 1.x upstream anymore. Too much
changes since 1.3. There were a similar bug for Kaffeine 1.3. Migrating to
Kaffeine 2.x solved it.

> I have tried building kaffeine-2 on ROSA, including libdvbv5,
> 
> $ cmake .
> $ make
> 
> When I 'run command' or from a custom icon, it doesn't start.  When I invoke
> it from terminal, I only see:
> 
> rolf@z170i ~/kaffeine/kaffeine (master) $ src/kaffeine 
> Segmentation fault (core dumped)

If you were compiling libdvbv5 from its source, there was a bug on it, due to
some recent features that are under development.

I just added a fix there for it. In such case, please update libdvbv5 from its
git tree and recompile/reinstall it. This should solve the issue with kaffeine
2.x.

> I tried running as root:

Not need to run it as root, except if you have broken permissions for the
devices under /dev/dvb. In such case, the best would be to fix the permissions,
instead of running it as root.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kaffeine] [Bug 367728] kaffeine-1.3 is killed by kernel: Out of memory: Kill process 22386 (kaffeine)

2016-08-24 Thread Rolf Pedersen via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367728

--- Comment #1 from Rolf Pedersen  ---
"2. Recording two programs simultaneously seems to trigger this behavior more
reproducibly."

rolf@z170i ~ $ rpm -q kaffeine
kaffeine-1.3.1-3-rosa2014.1.x86_64

2016-08-22, kaffeine was killed by this kernel process while two simultaneous
2-hour programs were being recorded after 1 hour 22 minutes:

rolf@z170i ~ $ sudo journalctl | grep kaffeine -A 2

--
Aug 22 21:22:43 z170i kernel: [22386]   501 22386  4589199  39105798780
 20   378664 0 kaffeine
Aug 22 21:22:43 z170i kernel: [24688]   501 24688   342993 5325 346
  4 3657 0 vlc
Aug 22 21:22:43 z170i kernel: [16557] 0 1655712953  205  30
  30 0 sshd
--
Aug 22 21:22:43 z170i kernel: Out of memory: Kill process 22386 (kaffeine)
score 935 or sacrifice child
Aug 22 21:22:43 z170i kernel: Killed process 22386 (kaffeine)
total-vm:18356796kB, anon-rss:15638972kB, file-rss:0kB, shmem-rss:3344kB
Aug 22 21:22:43 z170i kernel: oom_reaper: reaped process 22386 (kaffeine), now
anon-rss:0kB, file-rss:0kB, shmem-rss:3344kB
Aug 22 22:01:01 z170i audit[32498]:  pid=32498 uid=0
auid=4294967295 ses=4294967295 msg='op=PAM:accounting
grantors=pam_access,pam_unix acct="root" exe="/usr/sbin/crond" hostname=?
addr=? terminal=cron res=success'
Aug 22 22:01:01 z170i audit[32498]:  pid=32498 uid=0
auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_rootok
acct="root" exe="/usr/sbin/crond" hostname=? addr=? terminal=cron res=success'
--

Last night, 2016-08-23, a solitary 2-hour recording made it to about 1 hour 58
minutes before kaffeine ran out of memory:

--
Aug 23 21:58:52 z170i kernel: [24858]   501 24858  4557346  38316318691
 21   411371 0 kaffeine
Aug 23 21:58:52 z170i kernel: [ 2511] 0  251112953  131  28
  3   73 0 sshd
Aug 23 21:58:52 z170i kernel: [ 2513]   501  251312953  147  27
  3   55 0 sshd
--
Aug 23 21:58:52 z170i kernel: Out of memory: Kill process 24858 (kaffeine)
score 925 or sacrifice child
Aug 23 21:58:52 z170i kernel: Killed process 24858 (kaffeine)
total-vm:18229384kB, anon-rss:15323012kB, file-rss:0kB, shmem-rss:3512kB
Aug 23 21:58:52 z170i kernel: oom_reaper: reaped process 24858 (kaffeine), now
anon-rss:0kB, file-rss:0kB, shmem-rss:3512kB
Aug 23 22:01:01 z170i audit[20033]:  pid=20033 uid=0
auid=4294967295 ses=4294967295 msg='op=PAM:accounting
grantors=pam_access,pam_unix acct="root" exe="/usr/sbin/crond" hostname=?
addr=? terminal=cron res=success'
Aug 23 22:01:01 z170i audit[20033]:  pid=20033 uid=0
auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_rootok
acct="root" exe="/usr/sbin/crond" hostname=? addr=? terminal=cron res=success'

Not to throw around terms  I don't understand but, taken together with at least
one occasion where I was able to observe the gradual filling of /tmp, "memory
leak" comes to my mind.

Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.