osu icon indicating copy to clipboard operation
osu copied to clipboard

Cannot move osu!lazer to second monitor (macOS)

Open etekweb opened this issue 2 years ago • 1 comments

Type

Crash to desktop

Bug description

Overview

I have two displays: one built into my MacBook Pro (2015, 13" Retina), and an external 1920x1080 monitor. In previous versions of osu!lazer, I was able to launch the game and have it run on either monitor. I typically prefer to play on my external monitor.

After updating to the latest version, the game launched on my built-in MBP display. However, I cannot move it to the second display.

What I Tried

  • Changed the display option in osu! to the second display using the dropdown (Graphics -> Layout -> Display -> 1: HP VH240a (1920x1080)). This simply re-entered fullscreen on the built-in display. No visible difference in game.
  • Switched to another workspace, opened Mission Control, and dragged the osu! window to the other display's workspace list. Then swiped over to osu! on external monitor. This displayed the game, but at the scaled-down resolution from the built-in display.
  • If I, from this state, select the second monitor using the dropdown, the game will crash to desktop. (Note: this also occurs if I restart and skip step 1, or if I had already selected 1920x1080 mode when switching)
    • Update: If I switch to windowed mode on primary, then move the window over to secondary, then use the macOS green fullscreen button in the top left, I can effectively get fullscreen on the second monitor. However, the game still thinks it is in windowed mode at this point. If I switch to borderless, the game crashes again.
  • After trying this a few times, it sometimes will begin to crash immediately upon trying to load the game, though this can be worked around by unplugging the external monitor.

Desired Outcome

Game can be played on external monitor. Ideally by selecting it from the dropdown in settings.

Screenshots or videos

https://user-images.githubusercontent.com/43519802/176986480-4e793a91-95ff-48a8-8536-6b12e5d70be9.mp4

Version

2022.630.0-lazer

Logs

database.log network.log performance.log runtime.log macos-crash-report.txt

etekweb avatar Jul 02 '22 04:07 etekweb

The crash at least is due to https://github.com/ppy/osu-framework/issues/5190.

Root cause for it not working is likely related to:

2022-07-02 04:14:50 [verbose]: SDL error log [debug]: Couldn't find the display where the window is attached to.
2022-07-02 04:14:50 [verbose]: SDL error log [debug]: Couldn't find the display where the window is attached to.

For now your best option is to run windowed, move the window to your second display then press the green button on the window titlebar to maximise the window.

peppy avatar Jul 02 '22 04:07 peppy

This problem emerges again on version 2023.419.0. (and strangely, it happened despite that I've disconnected the external screen) Fallback to version 2023.403.1 solves my problem.

nyngwang avatar Apr 25 '23 18:04 nyngwang