ppy / osu

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

Edited Beatmaps with Video Results in File Corruption #23800

Closed iSaturnx closed 1 year ago

iSaturnx commented 1 year ago

Type

Game behaviour

Bug description

When editing an imported beatmap with a video, trips of importing and exporting between stable and lazer will corrupt the beatmap. In the 'verify' section of the editor, it displays "Problem: "" is a 0-byte file."

I've tried to replicate this but, it appears to only happen after some importing and exporting back and forth between stable and lazer, with having to add the video back in the 'design' section or 'open .osu in text editor' every time, since the video gets removed from the .osu file after saving an edit in lazer. Also, have noticed this happens when extracting the .osz file as a .zip, then compressing it back into .osz.

The beatmap isn't entirely corrupt as it still imports into lazer just fine. However, it doesn't import into stable (automatically put in the "Failed" folder), nor does extracting it as a .zip file works. Though, I'm assuming I shouldn't be extracting it as a .zip file either way(?).

I'm unsure how to fix this as I can't access the video file nor open it in stable. Only way for me to go on is to create a new beatmap and add everything back individually (which is very time consuming since I can't copy and paste between beatmaps).

Screenshots or videos

Screenshot 2023-06-07 at 2 42 54 AM Screenshot 2023-06-07 at 2 51 56 AM

Version

2023.605.0

Logs

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

peppy commented 1 year ago

Please include the beatmap you're seeing issues with.

And please don't manually extract / repack osz files. That's not supported behaviour.

iSaturnx commented 1 year ago

beatmap.zip (this is the one shown in the images without extracting/repacking)

peppy commented 1 year ago

The linked beatmap is a corrupt osz file.

How did you create it?

iSaturnx commented 1 year ago

Through the editor in lazer. Eventually became corrupted after a couple times of importing it into stable to fix the video (by selecting it in 'design') and importing it back into lazer. I still have the last import of the beatmap into stable here .

peppy commented 1 year ago

I don't know. I've never reproduced anything like this. Maybe you copied the file before the export finished.