osu icon indicating copy to clipboard operation
osu copied to clipboard

osu! freezes then crash on macOS

Open Naozumi520 opened this issue 2 years ago • 4 comments

Type

Crash to desktop

Bug description

So basically everytime I play it freezes and it only happens in game. However, I've never seen it occurred in the main menu. When I'm playing, the screen randomly gets stuck. It could be the beginning of the map, in the middle or even the song is finishing. It doesn't always happen, but it often happens like every time I open the game to play then it gets stuck.

I'm not sure if this is related to This issue and the behavior look different to me as the screen is getting stuck randomly.

I can't provide screenshots or video as I can't even record video because it's getting stuck also.

Screenshots or videos

No response

Version

2022.615.0

Logs

Here's the logs: database.log network.log performance.log runtime.log And this macOS log file as well: crash.txt

Naozumi520 avatar Jun 18 '22 14:06 Naozumi520

Game log attached looks like it comes from a normal execution without a crash. macOS log attached includes:

Graphics hardware encountered an error and was reset: 0x00000002

Not sure there's anything we can do about this without metal/veldrid/whatever else to not use opengl on mac.

bdach avatar Jun 18 '22 14:06 bdach

This could be related to https://github.com/ppy/osu/issues/8278? It's the same device model, hardware and symptoms.

naoey avatar Jun 20 '22 08:06 naoey

Happens to me as well, but on a mac pro, not a macbook like the one in #8278 and OP. Shortly after starting, the screen will freeze* and two minutes later the watchdog throws a kernel panic because it hasn't heard from windowserver in 120 seconds.

Here is the OS's panic log (zipped because github doesn't like ips files). I also found a number of gpurestart logs which were generated while osu!lazer was running (I haven't checked the exact time so not sure if it happened during or before the crash). All the gpurestart logs were generated while osu! was running, even though I ran other applications which use the GPU at other times, so it seems to be anomalous behavior relevant to osu!

*audio still works so I can confirm that the game is still running since I hear the "song failed" sound shortly after, it's just the display that freezes

Annonymus-v02 avatar Jul 11 '22 11:07 Annonymus-v02

@Annonymus-v02 if you're hitting the same thing as me, it's gl memory exhaustion. The AMD driver has a bug which causes this, and it's out of our control. You can monitor memory (and gl context count) via OpenGL Driver Monitor to check what's happening, but this is not something we can fix at our end.

We'll eventually support metal to resolve this, because there's basically zero chance apple will fix issues with GL at this point in the timeline.

peppy avatar Jul 11 '22 11:07 peppy

I'm using a MacBookPro16,1 and there is a compromise solution which works fine for me. Because it's a AMD driver fault so I tried to run it on the integrated UHD 630 and it solves the problem! The game doesn't freeze or crash any more, but it will run at a lower frame rate (which is still playable).

zwzheng45 avatar Nov 04 '22 20:11 zwzheng45