Bug 387846 - Consumes 2x 90% CPU time, even when idle
Summary: Consumes 2x 90% CPU time, even when idle
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: 17.08.3
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-12 22:23 UTC by iGadget
Modified: 2018-01-17 21:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iGadget 2017-12-12 22:23:10 UTC
Right after starting the KDEnlive 17.08.3 (or 2, both are affected) AppImage, the process "kdenlive --config kdenlive-appimagerc" (which is started twice) starts consuming close to 90% cpu, while I'm not even working on a project or have loaded any content. So that's two high-intensive CPU processes just for an idling KDEnlive.

Not sure if I should have filed this under the component 'User Interface', but the other options seemed even less fitting to me. Perhaps a component 'kdenlive core' should be added?
Comment 1 iGadget 2017-12-13 13:14:57 UTC
Just tested with 17.12.0 AppImage - same result.
Comment 2 iGadget 2017-12-15 12:29:12 UTC
(In reply to iGadget from comment #1)
> Just tested with 17.12.0 AppImage - same result.

Apparently this was a pre-17.12.0 version. Tested again with the 'official' 17.12.0, but the problem remains.
Comment 3 skoupad-bugzilla 2017-12-15 14:10:53 UTC
Recently I had a similar problem that was related to a KDE bug. But this one I think is related to audio. Can you try this? When you see high CPU usage, go to:

Settings > Playback > Audio Driver

and change it to something else, like ALSA (It defaults to Automatic) and click Apply or OK. Does it stop High CPU usage?
Comment 4 Jean-Baptiste Mardelle 2017-12-19 07:53:13 UTC
Hi. I also noticed a high CPU usage on idle in all Kdenlive AppImages. I was able to pinpoint it to the SDL/Alsa pipeline. Adding Pulseaudio to the AppImage build did fix the problem for me. I am uploading an updated AppImage (17.12.0b) that contains this fix. Can you test if this solves the CPU usage for you and if sound still works correctly ?

AppImage link:
https://files.kde.org/kdenlive/release/kdenlive-17.12.0b-x86_64.AppImage.mirrorlist
Comment 5 skoupad-bugzilla 2017-12-19 15:05:38 UTC
(In reply to Jean-Baptiste Mardelle from comment #4)
> Hi. I also noticed a high CPU usage on idle in all Kdenlive AppImages. I was
> able to pinpoint it to the SDL/Alsa pipeline. Adding Pulseaudio to the
> AppImage build did fix the problem for me. I am uploading an updated
> AppImage (17.12.0b) that contains this fix. Can you test if this solves the
> CPU usage for you and if sound still works correctly ?
> 
> AppImage link:
> https://files.kde.org/kdenlive/release/kdenlive-17.12.0b-x86_64.AppImage.
> mirrorlist

I gave it a quick look and it seems that the high CPU usage is gone.
Comment 6 iGadget 2017-12-19 19:29:18 UTC
Yes, 17.12.0b doesn't have the problem any more. Checked on 2 separate systems. Great job guys!
Comment 7 Christoph Feck 2018-01-02 15:44:40 UTC
Any work left for this ticket?
Comment 8 Christoph Feck 2018-01-17 21:40:50 UTC
No response, assuming it is fixed.