mixxxdj / mixxx

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

Strange focus (and controller initialization) behavior after launch on macOS when external monitors are attached #10735

Open mixxxbot opened 2 years ago

mixxxbot commented 2 years ago

Reported by: fwcd Date: 2022-05-21T00:50:19Z Status: New Importance: Undecided Launchpad Issue: lp1974962 Tags: controllers, gui, macos Attachments: [Demo of the focus issue](https://bugs.launchpad.net/bugs/1974962/+attachment/5591669/+files/Demo of the focus issue), [Mixxx Logfile](https://bugs.launchpad.net/bugs/1974962/+attachment/5591888/+files/Mixxx Logfile)


After launching Mixxx on macOS the application seems to be in a strange state:

Tabbing out of Mixxx and back in fixes the aforementioned issues, this launch behavior is of course still non-ideal. Any ideas?

I have attached a video showcasing the issue.

Mixxx: 2.3.2 OS: macOS 12.3.1 Arch: ARM64 (M1 Pro)

mixxxbot commented 2 years ago

Commented by: fwcd Date: 2022-05-21T00:50:19Z Attachments: [Demo of the focus issue](https://bugs.launchpad.net/mixxx/+bug/1974962/+attachment/5591669/+files/Demo of the focus issue)

mixxxbot commented 2 years ago

Commented by: fwcd Date: 2022-05-21T14:01:57Z


The issue only seems to occur when external monitors are attached.

Edit: From experimenting around it seems to only occur when Mixxx is opened on an external monitor, not in general when external monitors are present. Also this doesn't seem to be limited to ARM/M1 Macs, it occurs on Intel Macs too.

mixxxbot commented 2 years ago

Commented by: Swiftb0y Date: 2022-05-21T17:12:12Z


Can you also post the logfile from when this issue occurs? https://github.com/mixxxdj/mixxx/wiki/Finding%20the%20Mixxx.log%20file Thanks.

mixxxbot commented 2 years ago

Commented by: fwcd Date: 2022-05-22T01:44:45Z Attachments: [Mixxx Logfile](https://bugs.launchpad.net/mixxx/+bug/1974962/+attachment/5591888/+files/Mixxx Logfile)


Sure! This is the log for a launch of Mixxx (on an external monitor) that produces this issue.

fwcd commented 2 years ago

This seems to be a Qt bug, possibly limited to macOS, that occurs when using Qt 5.12.4 (the version we currently use), not on Qt 5.12.12, however. That is, the bug must have been fixed somewhere between Qt 5.12.4 and 5.12.12.

A Mixxx build for arm64 macOS using Qt 5.12.12 can be found here: https://github.com/fwcd/m1xxx/actions/runs/3210912252.

Unfortunately, the waveform performance issues already occur in Qt 5.12.12, so we can't just upgrade to 5.12.12. We may either have to backport the corresponding patches or bisect the Qt releases for a version that fixes the issue and doesn't have the performance issues yet.