Skip to content

[CRASHFIX] Fix crash when hot-reloading in Lag Adjustment menu#7304

Open
AnimatingLegend wants to merge 1 commit intoFunkinCrew:developfrom
AnimatingLegend:animatinglegend/funkin/patch-9
Open

[CRASHFIX] Fix crash when hot-reloading in Lag Adjustment menu#7304
AnimatingLegend wants to merge 1 commit intoFunkinCrew:developfrom
AnimatingLegend:animatinglegend/funkin/patch-9

Conversation

@AnimatingLegend
Copy link
Copy Markdown
Contributor

Linked Issues

Description

This PR fixes an obscure crash when hot-reloading in the lag adjustments menu.

Changes:

  • Added a null check for FlxG.sound.music before calling fadeOut().
  • Created switchToOffsets() to avoid duplicating the original code.

Screenshots/Videos

BEFORE:

lag_adjustment_crash_before.mp4

AFTER:

lag_adjustment_crash_after.mp4

@github-actions github-actions bot added size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. pr: haxe PR modifies game code. and removed status: pending triage Awaiting review. labels Apr 1, 2026
@AnimatingLegend AnimatingLegend force-pushed the animatinglegend/funkin/patch-9 branch from 2265574 to b77bef0 Compare April 1, 2026 05:43
@Hundrec Hundrec linked an issue Apr 1, 2026 that may be closed by this pull request
4 tasks
@Hundrec Hundrec added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression status: pending triage Awaiting review. labels Apr 1, 2026
@Hundrec Hundrec changed the title [BUGFIX] Prevent crash when Hot-Reloading in Lag Adjustment menu [BUGFIX] Fix crash when hot-reloading in Lag Adjustment menu Apr 1, 2026
@Enois213
Copy link
Copy Markdown

Enois213 commented Apr 1, 2026

Yeyy!.. idk what to say lol

@Enois213
Copy link
Copy Markdown

Enois213 commented Apr 1, 2026

Also when your in Offset Calibration the first like 10/9 notes DONT appear. Video: https://www.youtube.com/watch?v=Ez72jmEeoCk. And i think that the offsets are wrong. but in like 0.8.3 (NOT SURE) i did like the offset thing and it was WAYY smaller. not -51 like -17 to -20 there. so.. idk if thats a bug or just my input. but look into that please.

@AnimatingLegend
Copy link
Copy Markdown
Contributor Author

Also when your in Offset Calibration the first like 10/9 notes DONT appear. Video: https://www.youtube.com/watch?v=Ez72jmEeoCk. And i think that the offsets are wrong. but in like 0.8.3 (NOT SURE) i did like the offset thing and it was WAYY smaller. not -51 like -17 to -20 there. so.. idk if thats a bug or just my input. but look into that please.

Thats an intentional feature the actual devs added themselves, and i think they have no plans on changing it anytime soon, if not EVER.

@AnimatingLegend AnimatingLegend force-pushed the animatinglegend/funkin/patch-9 branch from b77bef0 to 3b1c7e3 Compare April 1, 2026 16:49
@Enois213
Copy link
Copy Markdown

Enois213 commented Apr 1, 2026

oh okay thx

@AnimatingLegend AnimatingLegend force-pushed the animatinglegend/funkin/patch-9 branch 3 times, most recently from bd8e1cd to 5cd3fda Compare April 5, 2026 02:30
@Hundrec Hundrec force-pushed the develop branch 2 times, most recently from 2abd802 to ec59410 Compare April 6, 2026 10:18
@AnimatingLegend AnimatingLegend force-pushed the animatinglegend/funkin/patch-9 branch 2 times, most recently from f7618b0 to 0738497 Compare April 9, 2026 06:05
@github-actions github-actions bot added size: tiny A tiny pull request with 4 or fewer changes. and removed size: medium A medium pull request with 100 or fewer changes. labels Apr 9, 2026
… menu (FunkinCrew#7285)

- Added a null check for `FlxG.sound.music` before calling `fadeOut()`.
- Created `switchToOffsets()` to avoid duplicating the original code.
@AnimatingLegend AnimatingLegend force-pushed the animatinglegend/funkin/patch-9 branch from 0738497 to e228434 Compare April 9, 2026 06:07
@github-actions github-actions bot added size: medium A medium pull request with 100 or fewer changes. and removed size: tiny A tiny pull request with 4 or fewer changes. labels Apr 9, 2026
@AnimatingLegend AnimatingLegend changed the title [BUGFIX] Fix crash when hot-reloading in Lag Adjustment menu [CRASHFIX] Fix crash when hot-reloading in Lag Adjustment menu Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression

Development

Successfully merging this pull request may close these issues.

Bug Report: Crash Report: Hot-reloading with F5 in Lag Adjustment crashes

3 participants