Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548008 - dev-qt/qt-creator-3.4.0[systemd] eats 100% CPU
Summary: dev-qt/qt-creator-3.4.0[systemd] eats 100% CPU
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Davide Pesavento
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 13:16 UTC by Cyril
Modified: 2015-08-30 18:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril 2015-04-28 13:16:00 UTC
When compiled with systemd USE flag, qt-creator use journald for output.
Running a project, poll fd on events=POLLIN in infinite loop, causing one cpu core to 100% .
Recompiling qt-creator without "systemd" solves the problem. 

Reproducible: Always

Steps to Reproduce:
1.USE="systemd" emerge qt-creator
2.run qt-creator
3.open a project
4.wait 1 min, qt-creator eat CPU
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2015-04-28 16:36:13 UTC
Is systemd-journald running?
Comment 2 Cyril 2015-04-29 15:36:30 UTC
yes it's running

systemctl status systemd-journald
● systemd-journald.service - Journal Service
   Loaded: loaded (/usr/lib64/systemd/system/systemd-journald.service; static; vendor preset: enabled)
   Active: active (running) since mer. 2015-04-29 17:25:04 CEST; 10min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Main PID: 110 (systemd-journal)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-journald.service
           └─110 /usr/lib/systemd/systemd-journald

avril 29 17:25:04 gentoocyril systemd-journal[110]: Runtime journal is using 8.0M (max allowed 396.1M, trying to leave 594.1M free of 3.8G available → current limit 396.1M).
avril 29 17:25:04 gentoocyril systemd-journal[110]: Runtime journal is using 8.0M (max allowed 396.1M, trying to leave 594.1M free of 3.8G available → current limit 396.1M).
avril 29 17:25:04 gentoocyril systemd-journal[110]: Journal started
avril 29 17:25:04 gentoocyril systemd-journal[110]: Missed 85 kernel messages
avril 29 17:25:04 gentoocyril systemd-journal[110]: Permanent journal is using 584.1M (max allowed 4.0G, trying to leave 4.0G free of 65.6G available → current limit 4.0G).
avril 29 17:25:04 gentoocyril systemd-journal[110]: Time spent on flushing to /var is 178.270ms for 768 entries.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2015-04-29 22:44:05 UTC
Well, this needs to go upstream as I don't think it's gentoo-specific.
Comment 4 Martin Gysel (bearsh) 2015-08-30 18:10:06 UTC
upstream patch available:
https://bugreports.qt.io/browse/QTCREATORBUG-14356
https://codereview.qt-project.org/#/c/115484/

works for me...
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2015-08-30 18:14:55 UTC
I know, that patch is in 3.5.0 which I will bump asap.