ppy / osu

rhythm is just a *click* away!
https://osu.ppy.sh
MIT License
15.28k stars 2.27k forks source link

osu! freezes then crash on macOS #18759

Closed Naozumi520 closed 1 week ago

Naozumi520 commented 2 years ago

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

bdach commented 2 years ago

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.

naoey commented 2 years ago

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

Annonymus-v02 commented 2 years ago

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

peppy commented 2 years ago

@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.

zwzheng45 commented 1 year ago

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).

Joehuu commented 1 week ago

Closing as stale (this was before Metal was implemented).