ppy / osu

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

osu!lazer black screen #17552

Closed kli75962 closed 12 months ago

kli75962 commented 2 years ago

Type

Crash to desktop

Bug description

osu!lazer will black screen sometimes, need to ctrl f4 to reopen it

Screenshots or videos

No response

Version

2022.327.0-lazer

Logs

database.log network.log performance.log runtime.log updater.log

peppy commented 2 years ago

Can you provide more details on your operating environment (platform, gpu) and also whether this only happens in fullscreen mode?

kli75962 commented 2 years ago

win10 on desktop computer, NVIDIA Geforce GTX 1660 SUPER, I only play osu on fullscreen since the input latency so I don't know if it happens on another screen mode

kli75962 commented 2 years ago

it only happens on the menu, in-game is totally fine

peppy commented 2 years ago

When it happens do sounds from the game still play as usual (ie. if you hit escape or arrow keys, can you hear that the game is still functioning)?

As a first step, can you confirm that your graphics card drivers are up-to-date?

kli75962 commented 2 years ago

yes the game is still functioning, I haven't updated to the newest version on 22/3 yet

kli75962 commented 2 years ago

I will update now [update] still happen after I update my graphics card drivers

andy840119 commented 2 years ago

image

It happened on my PC also(windows 11 with R7-2700X and R9-280X graphic card, RTX-3090 also got the same issue). But seems it only happened in the release build.

Also, seems it only happened in the release build(for more than two weeks I remember). I cannot make the screen blank in the debug build of Lazer.

Also, the blank screen never happened while developing my ruleset. But it usually happened in the released Lazer on my PC.

[update] Seems it only happened in the release build of the Lazer client. I cannot reproduce the blank screen with debug build of Lazer, or debug/release build of the visual test Windows with several tries.

smoogipoo commented 2 years ago

Does resizing the window fix it?

andy840119 commented 2 years ago

Resize windows not fix it(Not very sure, I need to check that again). I can try if change the refresh rate or change to full-screen can fix that after 3 or 4 days

[update]

pscr00ge commented 2 years ago

updating, ive got black backgrounds on Default backgrounds (ugly, not season bgs) and on song selection screen. the most interesting part is that i was still able to see ui and still was able to move around in menu and play with ultra lag spikes if i didnt hit circles sliders spinners in session before

platform:android

pscr00ge commented 2 years ago

database.log network.log performance.log runtime.log logs if you want eat them, dunno if these logs contains these glitches

smoogipoo commented 2 years ago

@pscr00ge Your issue's different because you're on Android, and I have a suspicion you are suspending/backgrounding the app, is this the case?

2022-04-02 20:02:13 [error]: osuTK.Graphics.GraphicsContextException: Failed to swap buffers for context 1869378080 current. Error: BAD_SURFACE
2022-04-02 20:02:13 [error]: at osuTK.Platform.Egl.EglContext.SwapBuffers () [0x00041] in <d14e0ddeba9c4ce7aaaa9213c3d63316>:0
2022-04-02 20:02:13 [error]: at osuTK.Graphics.GraphicsContext.SwapBuffers () [0x00000] in <d14e0ddeba9c4ce7aaaa9213c3d63316>:0
2022-04-02 20:02:13 [error]: at osuTK.Android.AndroidGameView.SwapBuffers () [0x0001a] in <ad754a1d77a04e1aa2d11b9bd1285774>:0
2022-04-02 20:02:13 [error]: at osu.Framework.Platform.OsuTKWindow.SwapBuffers () [0x00000] in <ea743036e3ab473386cdb4067bcb5a26>:0
2022-04-02 20:02:13 [error]: at osu.Framework.Platform.GameHost.Swap () [0x00006] in <ea743036e3ab473386cdb4067bcb5a26>:0
2022-04-02 20:02:13 [error]: at osu.Framework.Platform.GameHost.DrawFrame () [0x00171] in <ea743036e3ab473386cdb4067bcb5a26>:0
2022-04-02 20:02:13 [error]: at osu.Framework.Threading.GameThread.processFrame () [0x000b9] in <ea743036e3ab473386cdb4067bcb5a26>:0
cow03haha commented 2 years ago

i got this problem too, black screen but game still running, i have try resize window but not work platform: windows 11 cpu: i7-9750h gpu: nvidia gtx 1650

network.log performance.log runtime.log updater.log database.log

and this is my game setting

Ruleset = mania
Skin = 36a28288-0e40-420e-944e-da42391fd986
BeatmapDetailTab = Local
BeatmapDetailModsFilter = False
ShowConvertedBeatmaps = False
DisplayStarsMinimum = 0.0
DisplayStarsMaximum = 10.1
SongSelectGroupingMode = All
SongSelectSortingMode = Title
RandomSelectAlgorithm = RandomPermutation
ChatDisplayHeight = 0.4
BeatmapListingCardSize = Normal
ToolbarClockDisplayMode = Full
Username = cow03haha
Token = Token
AutomaticallyDownloadWhenSpectating = False
SavePassword = True
SaveUsername = True
ExternalLinkWarning = True
PreferNoVideo = False
ShowOnlineExplicitContent = False
NotifyOnUsernameMentioned = True
NotifyOnPrivateMessage = True
VolumeInactive = 0.25
MenuVoice = True
MenuMusic = True
AudioOffset = 0.0
MenuCursorSize = 1.0
GameplayCursorSize = 1.0
AutoCursorSize = False
MouseDisableButtons = False
MouseDisableWheel = False
ConfineMouseMode = DuringGameplay
ShowFpsDisplay = True
ShowStoryboard = True
BeatmapSkins = True
BeatmapColours = True
BeatmapHitsounds = True
CursorRotation = True
MenuParallax = True
Prefer24HourTime = False
PositionalHitsounds = True
PositionalHitsoundsLevel = 0.2
DimLevel = 0.8
BlurLevel = 0.0
LightenDuringBreaks = True
HitLighting = True
HUDVisibilityMode = Always
ShowProgressGraph = True
ShowHealthDisplayWhenCantFail = True
FadePlayfieldWhenHealthLow = True
KeyOverlay = False
AlwaysPlayFirstComboBreak = True
FloatingComments = False
ScoreDisplayMode = Standardised
IncreaseFirstObjectVisibility = True
GameplayDisableWinKey = True
ReleaseStream = Lazer
Version = 2022.515.0-lazer
ShowFirstRunSetup = False
ScreenshotFormat = Jpg
ScreenshotCaptureMenuCursor = False
SongSelectRightMouseScroll = False
Scaling = Off
ScalingSizeX = 0.8
ScalingSizeY = 0.8
ScalingPositionX = 0.5
ScalingPositionY = 0.5
UIScale = 1.0
UIHoldActivationDelay = 200.0
IntroSequence = Triangles
MenuBackgroundSource = Skin
SeasonalBackgroundMode = Sometimes
DiscordRichPresence = Full
EditorWaveformOpacity = 0.25
bdach commented 2 years ago

NVIDIA card owners reporting this should start by (a) checking device driver updates, and (b) checking if disabling shadowplay does anything.

cow03haha commented 2 years ago

NVIDIA card owners reporting this should start by (a) checking device driver updates, and (b) checking if disabling shadowplay does anything.

i try to update driver and disable nvidia in-game overlay, still got black screen btw, I observe that osu only black screen when not playing(browse beatmaps...etc)

圖片

appleneko2001 commented 2 years ago

Hi everyone! I have same problem that might related with this. I recorded my screen how it happen (not accurate reproduce because it doesn't often appears). https://youtu.be/Zhks_xIsweA My PC specs: Graphics card: NVIDIA GeForce GTX 1050Ti Driver Ver. 512.59 Processor: AMD Ryzen 5 3600

Game ver. 2022.523.0

Logging: logs.zip PS: sometimes the game will crash with error window but sometimes just got black screen.

appleneko2001 commented 2 years ago

Hi everyone! I have same problem that might related with this. I recorded my screen how it happen (not accurate reproduce because it doesn't often appears). https://youtu.be/Zhks_xIsweA My PC specs: Graphics card: NVIDIA GeForce GTX 1050Ti Driver Ver. 512.59 Processor: AMD Ryzen 5 3600

Game ver. 2022.523.0

Logging: logs.zip PS: sometimes the game will crash with error window but sometimes just got black screen.

It wont crash anymore after I change multi thread to single thread looks like

UknTatsu commented 1 year ago

Hi guys, not sure if this will help, but I have the same problem of osu!lazer showing just a black screen. I did find out though that opening the normal version of osu! before launching osu!lazer seems to make it work. However, closing normal osu! will make osu!lazer crash.

RephlexZero commented 1 year ago

Can confirm that on linux I also experience this issue, basically a fresh endeavouros install, amdcpu nvidiagpu with latest drivers. Opening osu stable beforehand seems to allow lazer to not have this black window bug.

k3-cat commented 1 year ago

I got the exactly same issue with Windows 11 (build 22623.1037) cpu: i7-11800H gpu: RTX-3060 (laptop)

logs show no abnormal signs.

k3-cat commented 1 year ago

I think this problem is due to multithread (as @appleneko2001's method do works).

Multithread always cause some extra problems, and sadly currently there seems has no successful sign that prove multithread UI works.

appleneko2001 commented 1 year ago

But I don't think multithread should be removed, there have a good reason to use multithreading. I thought ppy want to make osu stable running even framerate are pretty low, or multicore optimizations.

Anyway the workaround for this scenario is use single thread, but its not a solution (my opinion). Interesting point is recently my game wont black screen anymore while using multithreading (latest version, 2022.1228.0).

peppy commented 1 year ago

Please wait for the new renderer which will likely fix this.

peppy commented 12 months ago

Closing as should-be-resolved.

Please feel free to reply in this thread if you can still reproduce an issue.