#10 100% CPU load when unfocused

Closed
opened 4 years ago by gavr123456789 · 8 comments

This is exactly as in the title. I can record a video if you can't reproduce.

Open window with GtkFlow. (May be you need spawn some more nodes)
Then unfocus window.

This is exactly as in the title. I can record a video if you can't reproduce. Open window with GtkFlow. (May be you need spawn some more nodes) Then unfocus window.
grindhold commented 3 years ago
Owner

Got around debugging a bit more.

The problem has something to do with fading animations in GtkButtons. The Problem arises if there is at least one node that contains at least one button.

A workaround that helps somewhat is deactivating Animations from the application side with

Vala:

Gtk.Settings.get_default().gtk_enable_animations = false

Python

Gtk.Settings.get_default().set_property("gtk-enable-animations", False)

I'll nevertheless try to fix this at its roots.

Got around debugging a bit more. The problem has something to do with fading animations in GtkButtons. The Problem arises if there is at least one node that contains at least one button. A workaround that helps somewhat is deactivating Animations from the application side with Vala: ``` Gtk.Settings.get_default().gtk_enable_animations = false ``` Python ```Python Gtk.Settings.get_default().set_property("gtk-enable-animations", False) ``` I'll nevertheless try to fix this at its roots.
activey commented 3 years ago

Hey, is this still a thing? I'm really considering going with your lib but still I'd like to stick to animated gtk stuff ;)

Hey, is this still a thing? I'm really considering going with your lib but still I'd like to stick to animated gtk stuff ;)
grindhold commented 3 years ago
Owner

unfortunately this issue still exists. maybe it suffices disallowing animations of elements that are children of Gtk.NodeViews for your usecase. i was not able to determine the root cause of this issue.

unfortunately this issue still exists. maybe it suffices disallowing animations of elements that are children of `Gtk.NodeView`s for your usecase. i was not able to determine the root cause of this issue.
activey commented 3 years ago

Hmm, thats interesting. I will take a closer look at it :)

Hmm, thats interesting. I will take a closer look at it :)
activey commented 3 years ago

Just thinking - did fix introduced in #20 change anything here?

Just thinking - did fix introduced in #20 change anything here?
grindhold commented 3 years ago
Owner

it seems unlikely, but nevertheless when i tried with examples/colors.py (spawn Operation nodes, because you need at least one button in a node to trigger the bug) the problem seems to have vanished.

@gavr123456789 can you confirm that the current master does not trigger the problem anymore? maybe @activey can try as well? :)

i am currently on Gtk3 3.24.24-1

it seems unlikely, but nevertheless when i tried with `examples/colors.py` (spawn Operation nodes, because you need at least one button in a node to trigger the bug) the problem seems to have vanished. @gavr123456789 can you confirm that the current master does not trigger the problem anymore? maybe @activey can try as well? :) i am currently on Gtk3 3.24.24-1
activey commented 3 years ago

I have not experienced any cpu usage issues, everything works pretty well, checked it against cpu usage graph and its all good.

I have not experienced any cpu usage issues, everything works pretty well, checked it against cpu usage graph and its all good.
grindhold commented 3 years ago
Owner

good news. i was still able to recreate the bug under different conditions but as of a1e5234 it is fixed for good :)

good news. i was still able to recreate the bug under different conditions but as of `a1e5234` it is fixed for good :)
Sign in to join this conversation.
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.