osu icon indicating copy to clipboard operation
osu copied to clipboard

Sometimes crash when fail a map

Open BlubBubb opened this issue 4 years ago • 16 comments

Windows 10, PC Intel core i5 4570, Ram 16 gb DDR3

Reproduction steps : Play a map and then fail the map sometimes it will crash the game

performance.log performance-audio.log performance-draw.log performance-input.log performance-update.log runtime.log updater.log database.log network.log

BlubBubb avatar Mar 10 '22 21:03 BlubBubb

Just to confirm, is this an osu!lazer issue? The logs you posted are from osu!lazer.

Can you provide your skin? You can export it via the in-game settings -> export selected skin.

smoogipoo avatar Mar 11 '22 04:03 smoogipoo

Relevant log portions:


2022-03-10 20:34:58 [verbose]: 📺 OsuScreenStack#330(depth:7) entered SoloPlayer#419
2022-03-10 20:35:36 [error]: An unhandled error has occurred.
2022-03-10 20:35:36 [error]: System.IndexOutOfRangeException: Index was outside the bounds of the array.
2022-03-10 20:35:36 [error]: at osu.Framework.Utils.ConvexPolygonClipper`2.Clip(Span`1& buffer)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Sprites.SpriteDrawNode.BlitOpaqueInterior(Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Sprites.SpriteDrawNode.DrawOpaqueInterior(Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.DrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.Containers.CompositeDrawable.CompositeDrawableDrawNode.DrawOpaqueInteriorSubTree(DepthValue depthValue, Action`1 vertexAction)

2022-03-10 20:35:36 [error]: An unhandled error has occurred.
2022-03-10 20:35:36 [error]: NUnit.Framework.AssertionException
2022-03-10 20:35:36 [error]: at osu.Framework.Logging.ThrowingTraceListener.Fail(String message)
2022-03-10 20:35:36 [error]: at System.Diagnostics.TraceInternal.Fail(String message)
2022-03-10 20:35:36 [error]: at osu.Framework.Graphics.OpenGL.GLWrapper.Reset(Vector2 size)
2022-03-10 20:35:36 [error]: at osu.Framework.Platform.GameHost.DrawFrame()
2022-03-10 20:35:36 [error]: at osu.Framework.Threading.GameThread.processFrame()

Looks like something very low level, super weird.

peppy avatar Mar 11 '22 08:03 peppy

This is the one I mainly use

-Oozora Subaru [- Oozora Subaru] (RaTcHeTOwO).zip

BlubBubb avatar Mar 11 '22 17:03 BlubBubb

It looks like the second exception occurred because of the first seemingly interrupting the entire drawing flow, leaving shaders bound and fail the shaders_stack.Count == 0 assert next frame in GLWrapper.Reset.

Was thinking that should be handled more gracefully, but if it can only happen from other major issues, then I suppose it's fine?

frenzibyte avatar Mar 12 '22 04:03 frenzibyte

@frenzibyte You're correct that that's the case. I've seen it happen before but didn't investigate, however the fix would be to make the DrawNode crash immediately rather than going through the whole process and eventually getting back to a GLWrapper.Reset().

smoogipoo avatar Mar 14 '22 08:03 smoogipoo

Facing similar issue, I'm pretty sure it only happens on maps with videos (from my testing so far)

Running Osu!(lazer)

Windows 11 32GB DDR5 @5200Mhz Intel i7 12700k @ stock speeds RTX 3080 Ti database.log network.log performance.log runtime.log updater.log

I have experienced this during a normal game sessions but I forced it by turning on auto retry and insta-fail on a map that has a video and leaving it on for about 15 minutes. The freeze occur just as i lose the map, and Osu will be stuck for like 15-30 seconds before just crashing/closing without any error message.

This is the map in question https://osu.ppy.sh/beatmapsets/915385#osu/1913574 It has also happened on other maps that has videos.

edit: added some images of associated error message from Event Viewer 1 2 3

nol-and avatar Apr 16 '22 03:04 nol-and

@nol-and that is a different issue. please try updating your graphics drivers and disabling shadowplay if you have it enabled.

bdach avatar Apr 16 '22 08:04 bdach

@bdach My computer is newly formatted, and have the newest graphics drivers installed on it. I've also disabled shadowplay, and any overlay or recording software that I can. The only exception is the Xbox Game Bar overlay which Windows 11 won't let me remove, but it shouldn't be recording AFAIK.

Is it possible Xbox Game Bar is the problem? If not, do you know of any ways for me to test further?

nol-and avatar Apr 16 '22 15:04 nol-and

if it only happens on maps with videos you could also try disabling hardware video acceleration in settings.

bdach avatar Apr 16 '22 15:04 bdach

I tested on a map without video for a while which did not result in a crash. I also tried using windowed borderless instead of exclusive fullscreen and did not get crash for either video or nonvideo maps. Windowed borderless makes it hard for me to play consistently unfortunately.

If i turn of hardware video acceleration the game occasionally (micro?)stutters which makes it unplayable for me.

Appreciate your help, but will probably play on the normal client for now.

I'm willing to test out other ideas if you have any.

nol-and avatar Apr 16 '22 16:04 nol-and

@Neon095 Please link your skin.

smoogipoo avatar May 11 '22 09:05 smoogipoo

Sentry issue: OSU-A

ppy-sentryintegration avatar May 13 '22 03:05 ppy-sentryintegration

My skin is this one: https://mega.nz/folder/GdN1TYRQ#cqk1gYYbsykIioKeJ5bk5Q/file/iIMzFKZK

Neon095 avatar May 15 '22 10:05 Neon095

Unfortunately I can't repro this with either of the above skins :( Are either of you able to reproduce this reliably on the same beatmaps/with the same skin?

smoogipoo avatar May 16 '22 07:05 smoogipoo

This is going to be a shot in the dark, but interestingly, all of the beatmaps I've seen this failure on (event 1, event 2, event 3, and this):

  • event 1's beatmap: https://osu.ppy.sh/beatmapsets/655597#osu/1389264
  • event 2's beatmap: https://osu.ppy.sh/beatmapsets/1212405#mania/2523593
  • event 3's beatmap: https://osu.ppy.sh/beatmapsets/1622658#osu/3561084
  • this thread's beatmap (according to OP): https://osu.ppy.sh/beatmapsets/655597#osu/1389264

contain a video background, with all users having video enabled according to the hardware video decoder initialisation logs. That might mean the video draw node being potentially at fault, but unfortunately I couldn't reproduce with videos on neither.

Posting this in case something falls off from the above information.

frenzibyte avatar Jun 01 '22 02:06 frenzibyte

Sounds plausible. Also in that last event the crash happened right as Player was entered. From my side I've tried to put the clipper through a bunch of edge cases (inf values, NaNs), and couldn't find anything, but I'll try more.

smoogipoo avatar Jun 01 '22 03:06 smoogipoo