mixxxdj / mixxx

Mixxx is Free DJ software that gives you everything you need to perform live mixes.
http://mixxx.org
Other
4.41k stars 1.27k forks source link

Qt bug on macOS: high CPU usage when scrolling library #12970

Open foss- opened 6 months ago

foss- commented 6 months ago

Bug Description

This is a long time problem in Qt on macOS: When scrolling the library up and down continuously, CPU usage goes to 99 %:

2024-03-15 Mixxx high CPU

100 % reproducible.

macOS 13.6.5 Mixxx 2.5-alpha-255-g2d2d5f304b (main) Qt 6.5.3

This is not a new problem, it has been going on for as long Mixxx was available on macOS. This needs to be resolved in Qt, but it is fair to have this issue in the Mixxx repo, to keep track of things.

Open https://bugreports.qt.io/browse/QTBUG-123343 reported against 6.6.2

Resolved https://bugreports.qt.io/browse/QTBUG-73117 resolved 2022-06-14 6.4, 6.3, 6.2

Other software affected by the bug: https://github.com/strawberrymusicplayer/strawberry/issues/542#issuecomment-1998484252

Version

any

OS

macOS 13.6.5

ronso0 commented 6 months ago

Dupe of your own report #11603 ?

Some questions came to mind before I discovered #11603: Please clarify: does it occur when a) scrolling by dragging the scrollbars b) moving the track selection with Up/Down keys (or with [Libary],MoveUp/Down c) regardless of a/b if the cover column AND library cover art (in the sidebar) are hidden

If it's the b), increasing the track select delay as proposed in #12881 would at least be valid workaround until someone has a solution for the root cause.

foss- commented 6 months ago

https://github.com/mixxxdj/mixxx/issues/11603 is probably another symptom of the same problem.

So since the description here is more accurate and 11603 only describes a symptom I'd rather set https://github.com/mixxxdj/mixxx/issues/11603 to duplicate of this issue here.

a) also happens when dragging scrollbar b) using arrow keys also puts the CPU at 101 % c) even with cover art in left bottom and library column not showing when scrolling via mouse, scrollbar or arrow keys, CPU goes to 100 %

m0dB commented 6 months ago

Can you try if this makes a difference?

https://github.com/m0dB/mixxx/tree/no-elide

foss- commented 5 months ago

Sorry for the very late reply, was overwhelmed with work and life. Could you link a build to test or instruct where to find a testable build?