-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash after selecting a map #7216
Comments
We can't proceed without logs here. Where have you checked? The locations are:
Also please state your OS. |
found it now, on windows 2019-12-15 01:20:16: Screen changed → PlayerLoader |
Thanks, that's helpful. Just for extra information, does this happen every time, or just sometimes? |
Turns out it's about the map not about DT, it's just a coincidence that the map I play DT on crashes, should I edit the post? |
Can't reproduce with the provided beatmap links, unfortunately. |
Does this happen with the default lazer skin? |
Just reporting that the map I had issue with still crashes ,although it seems there is no related update on the newest version's change log. |
It would be helpful if you can debug this. Not many details to work with here. |
Although I want to help, I have very little programming knowledge :( |
i have the same issue and noticed that it only crashes when you compile the release version while the debug version doesnt crash |
This is caused by ppy/osu-framework#3120, and has since been fixed (will be fixed in the next release). |
shouldnt this be fixed in version 2019.1219.0 ? im still crashing |
@mouzedrift Are you crashing in the exact same scenario, with the same exact stack trace? You'll have to attach some logs/details for us to know otherwise - we're not mind readers. |
Yup, everything is the same. I've tried these 3 maps provided by dolkilu https://osu.ppy.sh/beatmapsets/368985#osu/808848 Lemur diff Logs: |
tested with default skins and re-imported, still crashes. 2019-12-19 15:52:55: beatmap changed from "solfa feat.Chata - I will (Fycho) [Normal]" to "solfa feat.Chata - I will (Fycho) [Laurier's Insane]" 2019-12-19 15:55:51: updating selection with beatmap:24211 ruleset:0 |
Will see if I can reproduce in the near future. |
I think i figured out the bug. Apparently, when the .NET runtime calls the finalizer during a garbage collection, the order of collection is not guaranteed. This means that sometimes, the fields in the Drawable are collected before the finalizer is run. If the loadLock field happens to be collected before the finalizer is run, then we will try to lock on a null reference, and that always fails. So if the dispose method is called from the finalizer, we need to make sure we don't use any reference fields without checking if they are null. I'll open a PR in osu-framework for this. |
The better choice is to avoid finalizers. See ppy/osu-framework#3118 |
That's not the/an issue. The problem if there's a hard crash occurring in construction (being hidden due to being a native crash, most likely).
|
Hmm, will try to reproduce, and see if that's the case. |
Yeah, peppy is correct. Tested with a small sample and it seems that fields are never collected before the finalizer is called. So, most likely there is a crash somewhere, that happens during the object construction. Will try to look into it more. |
Got the same issue with https://osu.ppy.sh/beatmapsets/204020#osu/481882 . While trying to debug the issue i found:
So I guess it's somehow trying to garbage collect I'm bad at C# and new to osu! codebase, so idk how to properly fix the bug. Hope this info helps. |
Hmm, did you download the beatmap with or without the video? It could possibly be linked to trying to play a beatmap with video that was downloaded without the video. |
I always download without video, maybe that's the problem lol |
I always download without video too. |
@a68366 do you still have a copy of your database? also can you confirm you're using the latest release (not self-compiled)? i can't reproduce using any of the steps you mentioned, nor can i see how this would happen from a code perspective. |
i dont know if it helps but im just gonna leave my osu lazer database here since the game crashes for me as well. im also using the latest release build (not self compiled) |
thank you, very helpful. |
Unfortunately I can't reproduce a crash. Are you able to also include your "files" folder? |
sure, but its gonna take a while since its 2GB big and my internet is pretty slow. |
that's also weird, since the db you sent only had one track. do you have many skins loaded? you could delete your skins, restart once and it should reduce in size. i wouldn't expect it to be larger than 50mb. |
i've had more beatmaps but deleted the database, skins and beatmaps to test a bit more. |
Thank you. I am able to reproduce. |
Describe the crash:
crash while trying to play a map, "unhandled error, reported to devs" message has been shown, so Im reporting this issue just in case.
so far Ive only encountered the crash by playing a map with DT, only happens with the newest version.
Screenshots or videos showing encountered issue:
osu!lazer version:
2019.1213.0
Logs:
unable to find logs with correct time stamps related to the crash
Computer Specifications:
i7 9700k
gtx2080
ddr4 16gb
The text was updated successfully, but these errors were encountered: