Skip to content
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

Beatmap import fails when spamming the download button on a specific map #27812

Open
hrfarmer opened this issue Apr 8, 2024 · 5 comments
Open
Labels
area:import dealing with importing of data from stable or file formats

Comments

@hrfarmer
Copy link
Contributor

hrfarmer commented Apr 8, 2024

Type

Game behaviour

Bug description

On this beatmap, whenever I open the map through osu direct and spam the download button, there is a good chance that the import will fail, like something is being interrupted. I tried some other maps and am not able to replicate the issue, so it could be an issue with this specific map though.

Screenshots or videos

2024-04-08.14-52-48.mp4

Version

2024.312.1-lazer

Logs

compressed-logs.zip

@64ArthurAraujo
Copy link
Contributor

I think that's intended since queueing up the same beatmap import 20 times would be unnecessary.

@hrfarmer
Copy link
Contributor Author

hrfarmer commented Apr 8, 2024

Yeah that's true, my point is that I don't think spamming the button should start any more processes in the first place, I don't see how that would be intended

@64ArthurAraujo
Copy link
Contributor

64ArthurAraujo commented Apr 8, 2024

Yeah that's true, my point is that I don't think spamming the button should start any more processes in the first place, I don't see how that would be intended

I see now. Agreed. Maybe you can try this on a Marathon map that is certain to take a little while to import i think that may be it.

@Rekunan
Copy link

Rekunan commented Apr 9, 2024

Logs also seem to not have anything for the failures, only the successes. I think not allowing processes after the first download is a good idea. @ppy/team-client

@smoogipoo
Copy link
Contributor

I can't repro. The game also should already be deduping downloads:

if (!canDownload(model)) return false;

private bool canDownload(T model) => GetExistingDownload(model) == null && api != null;

public override ArchiveDownloadRequest<IBeatmapSetInfo>? GetExistingDownload(IBeatmapSetInfo model)
=> CurrentDownloads.Find(r => r.Model.OnlineID == model.OnlineID);

@smoogipoo smoogipoo added the area:import dealing with importing of data from stable or file formats label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:import dealing with importing of data from stable or file formats
Projects
None yet
Development

No branches or pull requests

4 participants