High CPU Load on Xorg for Hello World Program
Steps to reproduce
- On Ubuntu 18.04, amd64.
- Compile a simple GTK3 Hello World Program. Using
gcc `pkg-config --cflags gtk+-3.0` -o example-1 example-1.c `pkg-config --libs gtk+-3.0`
- Run
top
in a terminal. - Run the
example-1
. - Hover Mouse back and forth over Button. The button is animated to show some on-hover effect. The CPU load of Xorg goes to 100%. Clicking on the Button takes some time until the program exits. Keeping the mouse still (i.e. not triggering the animation of the button reduces CPU load to normal)
The same behaviour is experienced with the Button Boxes
example from gtk3-demo
. Actually, any GTK3-Application has this issue (e.g. Nautilus or Remmina)
Current behavior
The CPU load of Xorg goes high (100%). The Button reaction takes some time (like 1second).
Expected outcome
Animation should be smooth, rection should be virtually immediate.
Version information
- GTK3-Version: Compiled from source, gtk3-24.18, glib 2.60.7.
- Operating System: Ubuntu 18.04
- GTK3 compiled with
./configure --prefix=... && make && make install