ppy / osu-stable-issues

Report critical osu-stable issues here
59 stars 11 forks source link

Mysterious rare "Cannot write to file" errors when saving beatmap #1045

Closed tilda closed 1 year ago

tilda commented 1 year ago

Not exactly sure what is happening here. This started happening relatively recently, I think after that one update that changed saving behavior? In another (semi-related) issue you said you rolled this back but it just happened to me. It's happened more than once, but I haven't really thought to capture it on video until now.

https://user-images.githubusercontent.com/8301262/197357768-6da1ce86-dc56-4970-af8f-04a03f81118c.mp4

(sidenote: there's no audio because I worked on this map for like 2 hours and then it just got erased like that with no way to return my progress, so of course I kind of started shouting profanities into my microphone)

I'm on b20221016cuttingedge. My osu! install is on a separate drive, I checked if both my drives were in healthy status (in fact the one osu! is on is 100% healthy). The filename itself is also only around 119 characters long, so Windows shouldn't be throwing anything.

peppy commented 1 year ago

So two things:

Your beatmap can't be erased. With the new file write behaviour, it will never cause a previous version to be lost, so at most you can only lose one save.

Also, each save is first written to a temporary file, so your work is not lost. It is likely in your windows temporary file folder.

I can't tell you why the write failed without your logs, so can you provide those to begin with?

tilda commented 1 year ago

Hmm, is it supposed to be in the Temp\osu! folder? Don't see anything there. I zipped up the logs folder for you: Logs.zip, I believe this is the same session that this issue happened in.

peppy commented 1 year ago

It will be in the temp folder with a non-description random file name (not in the osu! subfolder). Sort by modified time.

tilda commented 1 year ago

I found the file, thanks for the solution. I definitely am curious what's happening with this though...