-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flamegraph is not repainted correctly when zooming out #624
Comments
What qt version are you using? I tried with 6.7 and 5.15 but I couldn't reproduce the issue. |
5.15.12 |
In QT 5.15.12 the background of the flamegraph is not cleared correctly which creates phantom entries. This problem does not exists in 5.15.10 and after 5.15.13. fix: #624
thanks, this seems to be a problem only in 5.15.12 |
Seems like this issue is back in 5.15.14 |
@lievenhey can you investigate please? |
I just tried an appimage build with qt 5.15.14 and I don't see this issue. |
This replicates 100% for me. Built hotspot eb3b7b2, with KDDockWidget 82e397cb8d71875c01432ff253becece5f0c8955. I'm running this in docker, drawing on both a linux X and Xquartz on macOS. Happens when one hits back or forward, either with the on screen button, or with keyboard shortcuts. @milianw do you have any hints about a hack I could do to mitigate this even if dirty, in the short term? Or pointers about where the problem might be. I can do some testing since I replicate effortlessly. |
no, you would have to debug the or check and see if you can improve it by messing with this hack:
or try something like this:
but generally, without being able to reproduce I don't know how to help you. maybe it's just time to update the appimages to use qt6 and then this will fix it too 🤷 |
I just used I should add that it uses software rendering since wayland-egl can't access |
okay, finally managed to reproduce it |
Apparently when running X11 the flamgraph doesn't clear the background correctly. This patch resets the background brush which clears the background correctly. fixes: #624
Apparently when running X11 the flamgraph doesn't clear the background correctly. This patch resets the background brush which clears the background correctly. fixes: #624
@jeff-dagenais can you try https://github.com/KDAB/hotspot/actions/runs/11857808074/artifacts/2193338354 ? That at least fixed it on my docker setup. |
@lievenhey can you try with my patch above and see if that fixes the issue in your setup too, now that you can reproduce the issue? |
@lievenhey @milianw I applied 1264007#diff-567435b9d6ea19886df5ebde56b6f5299ce0b560b56a24b204e855d291390ffbR1194 to my own source and docker build and it totally fixes it. I don't know what's happening exactly, but if this isn't too costly, it's totally sustainable for my use case. To give more clues, I do know that a slight resize of the window when it's got garbage at the top will fully clear it the bad background. Also, when scrolling the flamegraph view up and down, the stale background pixels do move along with the good flamegraph pixels. The bad background clears and becomes normal only where scrolling made the top part disappear under the top border and brought back into view. (nit: See the "Flame &Graph" there...) |
Describe the bug
See the attached video. It is easier to see the problem than describe it:
2024-04-25.15-23-53.mp4
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Regions are cleared properly
Version Info (please complete the following information):
6.6.19-1
6.7-1
master
(self compiled)0.191-1
The text was updated successfully, but these errors were encountered: