#698321 openshot: after opening, openshot needs 25% of CPU while doing nothing

#698321#5
Date:
2013-01-17 00:42:06 UTC
From:
To:
Dear Maintainer,

* What led up to the situation?
I started openshot from the commandline.

* What exactly did you do (or not do) that was effective (or
  ineffective)?
I started openshot from the commandline.

* What was the outcome of this action?
openshot started successfully, but needs about 30% of CPU on my 2 GHz Core 2
Duo, while doing nothing other than displaying the UI. Sometimes, video playback
is also sloppy (with mpeg2, 720x576).

* What outcome did you expect instead?
openshot does not use 30% of CPU but something like 1%, video plays smooth
all the time.

Besides, I looked into strace and saw many repeated lines of the form

pidof openshot was 15535, output of ls -lah /proc/15535/fd/:

Thanks,
Roland

#698321#10
Date:
2013-10-06 16:14:43 UTC
From:
To:
	Hi dear maintainer,

	I've got the same behavior as describe in this bug report:
- openshot started from command line
- 100% CPU usage for one core
- openshot application fully frozen. Not possible to click anywhere
- Need to use "xkill" in order to close application (ctrl+c does not work)
- console text messages are in attachment
- strace show continuously messages like :
<messages>
[pid  4371] read(14, "\0", 1)           = 1
[pid  4371] poll([{fd=14, events=POLLIN|POLLERR|POLLNVAL}], 1,
4294967295 <unfinished ...>
[pid  4373] <... futex resumed> )       = 0
[pid  4373] write(13, "\0", 1)          = 1
[pid  4371] <... poll resumed> )        = 1 ([{fd=14, revents=POLLIN}])
[pid  4373] futex(0x7fa2b45af000,
FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 0, {1381076849, 977362000},
ffffffff <unfinished ...>
[pid  4371] read(14, "\0", 1)           = 1
[pid  4371] futex(0x7fa2a8017504, FUTEX_CMP_REQUEUE_PRIVATE, 1,
2147483647, 0x7fa2a80174d8, 3086) = 1
[pid  4367] <... futex resumed> )       = 0
[pid  4371] poll([{fd=14, events=POLLIN|POLLERR|POLLNVAL}], 1,
4294967295 <unfinished ...>
[pid  4367] futex(0x7fa2a80174d8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  4367] futex(0x7fa2a801755c, FUTEX_CMP_REQUEUE_PRIVATE, 1,
2147483647, 0x7fa2a8017530, 3074) = 1
[pid  4372] <... futex resumed> )       = 0
[pid  4367] futex(0x7fa2a800578c, FUTEX_CMP_REQUEUE_PRIVATE, 1,
2147483647, 0x7fa2a8005760, 3098 <unfinished ...>
[pid  4372] futex(0x7fa2a8017530, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid  4368] <... futex resumed> )       = 0
[pid  4372] <... futex resumed> )       = 0
[pid  4368] futex(0x7fa2a8005760, FUTEX_WAIT_PRIVATE, 2, NULL
<unfinished ...>
[pid  4367] <... futex resumed> )       = 1
[pid  4372] poll([{fd=11, events=POLLIN|POLLOUT}], 1, 4294967295
<unfinished ...>
[pid  4367] futex(0x7fa2a8005760, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid  4372] <... poll resumed> )        = 1 ([{fd=11, revents=POLLOUT}])
[pid  4368] <... futex resumed> )       = 0
[pid  4372] writev(11, [{"\3\0\2\0~\0\200\3\16@\2\0~\0\200\3", 16},
{NULL, 0}, {"", 0}], 3 <unfinished ...>
[pid  4368] futex(0x7fa2a8005760, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid  4372] <... writev resumed> )      = 16
[pid  4368] <... futex resumed> )       = 0
[pid  4367] <... futex resumed> )       = 1
[pid  4367] futex(0x7fa2a8017504, FUTEX_WAIT_PRIVATE, 3087, NULL
<unfinished ...>
[pid  4372] poll([{fd=11, events=POLLIN}], 1, 4294967295) = 1 ([{fd=11,
revents=POLLIN}])
[pid  4372] recvfrom(11,
"\1\0\326\17\3\0\0\0!\0\0\0\1\0\1\1\377\377\377\377\0\0\0\0\0\0\2\0\n\0`\10"...,
4096, 0, NULL, NULL) = 76
[pid  4372] recvfrom(11, 0x7fa2a81735e4, 4096, 0, 0, 0) = -1 EAGAIN
(Resource temporarily unavailable)
[pid  4372] recvfrom(11, 0x7fa2a81735e4, 4096, 0, 0, 0) = -1 EAGAIN
(Resource temporarily unavailable)
[pid  4372] recvfrom(11, 0x7fa2a81735e4, 4096, 0, 0, 0) = -1 EAGAIN
(Resource temporarily unavailable)
[pid  4372] recvfrom(11, 0x7fa2a81735e4, 4096, 0, 0, 0) = -1 EAGAIN
(Resource temporarily unavailable)
[pid  4372] recvfrom(11, 0x7fa2a81735e4, 4096, 0, 0, 0) = -1 EAGAIN
(Resource temporarily unavailable)
</messages>

	I'm using KDE and Jack into a Debian Jessy/Testing

	In order to install openshot, I've to patch OpenShot package
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716759

	Thanks for your help.

	Best regards,

						Olivier