Bug 305179 - 100% CPU use in Inkscape when using the oxygen style
Summary: 100% CPU use in Inkscape when using the oxygen style
Status: CONFIRMED
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk2-engine (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-15 07:52 UTC by Médéric Boquien
Modified: 2021-03-10 06:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Médéric Boquien 2012-08-15 07:52:25 UTC
Under specific circumstances, inkscape/X take 100% of the CPU when using the oxygen style.

Reproducible: Always

Steps to Reproduce:
1. Create any kind of shape in inkscape. Say a rectangle.
2. Apply a filter on this shape from the FIlters menu
3. Open the filter editor Filters/filter editor
Actual Results:  
Inkscape/X take 100% of the CPU because it redraws constantly the upper right box in the editor where there are the  "Effect" and "Connections" columns along with a connections diagram.

Expected Results:  
No extra CPU is used compared to the default gtk style.
Comment 1 Ruslan Kabatsayev 2012-08-17 10:39:25 UTC
How did you determine that it redraws that box?
Comment 2 Médéric Boquien 2012-08-17 10:42:59 UTC
Hello,

I used the kwin "Show Paint" plugin.

Regards,

Médéric
Comment 3 Ruslan Kabatsayev 2012-08-17 11:23:51 UTC
OK, I can reproduce. It's because of our inner shadows hack. Meanwhile you can disable the hack by setting OXYGEN_DISABLE_INNER_SHADOWS_HACK env var to some value before running inkscape, if your performance drop is too severe to use it.
Comment 4 Hugo Pereira Da Costa 2012-08-29 09:32:56 UTC
can reproduce also
Now this is a heavily customized widget.
I suspect an actual bug in the widget itself.
As soon as we connect to the targetExpose event, even when doing nothing in there, the recursive painting occurs.
We'll likely have to dig into inkscape code to figure out more.
For the record:
widget is a gtkmm__GtkScrolledWindow, child is a gtkmm__GtkTreeView.
Now, the list on the left of the guilty widget has the same signature, and does not show the problem.

Will investigate further.
Comment 5 Justin Zobel 2021-03-09 23:58:32 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 6 Ruslan Kabatsayev 2021-03-10 06:39:38 UTC
Still reproducible with Oxygen-GTK 1.4.6-60-ga507b85c from Ubuntu 20.04 repo and Inkscape 0.92.5 from the same repo.