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

NullReferenceException occurs when mapping air starsheets with the crafted converter #281

Closed
mbnkwm opened this issue Dec 3, 2022 · 5 comments
Assignees

Comments

@mbnkwm
Copy link

mbnkwm commented Dec 3, 2022

osu! version: 2022.1123.0
Rush! version: 2022.1118.0

Steps

  1. Create an osu! beatmap with crafted in tags
  2. Place a slider in either the air or dual section (top left / middle left)
  3. Save and return to song select

Expected: A beatmap is made with air/dual starsheets

Actual: The following error occurs and the map isn't playable until the sliders are removed from the air/dual section

Error

2022-12-03 14:14:22 [error]: Failed to calculate beatmap difficulty
2022-12-03 14:14:22 [error]: System.NullReferenceException: Object reference not set to an instance of an object.
2022-12-03 14:14:22 [error]: at osu.Game.Rulesets.Rush.Objects.StarSheet.updateNestedSamples()
2022-12-03 14:14:22 [error]: at osu.Game.Rulesets.Rush.Objects.StarSheet.CreateNestedHitObjects(CancellationToken cancellationToken)
2022-12-03 14:14:22 [error]: at osu.Game.Rulesets.Objects.HitObject.ApplyDefaults(ControlPointInfo controlPointInfo, IBeatmapDifficultyInfo difficulty, CancellationToken cancellationToken) in /var/lib/buildkite-agent/builds/debian-gnu-linux-vm-1/ppy/osu/osu.Game/Rulesets/Objects/HitObject.cs:line 129
2022-12-03 14:14:22 [error]: at osu.Game.Beatmaps.WorkingBeatmap.GetPlayableBeatmap(IRulesetInfo ruleset, IReadOnlyList`1 mods, CancellationToken token) in /var/lib/buildkite-agent/builds/debian-gnu-linux-vm-1/ppy/osu/osu.Game/Beatmaps/WorkingBeatmap.cs:line 299
2022-12-03 14:14:22 [error]: at osu.Game.Rulesets.Difficulty.DifficultyCalculator.preProcess(IEnumerable`1 mods, CancellationToken cancellationToken) in /var/lib/buildkite-agent/builds/debian-gnu-linux-vm-1/ppy/osu/osu.Game/Rulesets/Difficulty/DifficultyCalculator.cs:line 171
2022-12-03 14:14:22 [error]: at osu.Game.Rulesets.Difficulty.DifficultyCalculator.Calculate(IEnumerable`1 mods, CancellationToken cancellationToken) in /var/lib/buildkite-agent/builds/debian-gnu-linux-vm-1/ppy/osu/osu.Game/Rulesets/Difficulty/DifficultyCalculator.cs:line 65
2022-12-03 14:14:22 [error]: at osu.Game.Beatmaps.BeatmapDifficultyCache.computeDifficulty(DifficultyCacheLookup& key, CancellationToken cancellationToken) in /var/lib/buildkite-agent/builds/debian-gnu-linux-vm-1/ppy/osu/osu.Game/Beatmaps/BeatmapDifficultyCache.cs:line 263

Seems to be because NodeSamples is never assigned for air starsheets, only ground starsheets

@LumpBloom7
Copy link
Collaborator

Having a quick look into it, it seems to be the case. Will fix in upcoming release.

If it is not too much, could I have a copy of the beatmap that causes this error, for testing?

@mbnkwm
Copy link
Author

mbnkwm commented Dec 3, 2022

Sure, it's just one slider though: https://files.catbox.moe/bx23t0.osz

@LumpBloom7
Copy link
Collaborator

works for me, no worries

@LumpBloom7
Copy link
Collaborator

Fixed in #282

@LumpBloom7
Copy link
Collaborator

@mbnkwm The fix is now available in the latest rush release, do give it a whirl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants