Skip to content

[CRASHFIX] Fix crash when reopening ease graph previews in editors - #7907

Open
kiryvajiravuth wants to merge 1 commit into
FunkinCrew:preview/public-playtestfrom
kiryvajiravuth:fix-crash-fr
Open

[CRASHFIX] Fix crash when reopening ease graph previews in editors#7907
kiryvajiravuth wants to merge 1 commit into
FunkinCrew:preview/public-playtestfrom
kiryvajiravuth:fix-crash-fr

Conversation

@kiryvajiravuth

Copy link
Copy Markdown
Contributor

Linked Issues

closes #7882

Description

Cause:

The ease previews cache their dot images (easeDotCache in SongEventHelper) so they only get generated once. The problem: when you exit an editor the game purges its cached graphics , but the ease preview cache was never cleared or told about it.
So on the next open the editor pulled sprites out of the cache that were already destroyed tried to draw them and crashed with a Null Object Reference.

Fix:

getOrCreateEaseDotSprites() now checks that each cached sprite's graphic is still alive before reusing it. If the game purged them during the previous editor exit, the cache entry is dropped and the sprites get rebuilt fresh instead of crashing.
A one-function change in SongEventHelper.hx.

Screenshots/Videos

before (chart editor)

before-1.mp4

before (camera editor)

before-2.mp4

after (chart editor)

after-1.mp4

after (camera editor)

after-2.mp4

@github-actions github-actions Bot added size: medium A medium pull request with 100 or fewer changes. pr: haxe PR modifies game code. status: pending triage Awaiting review. and removed size: medium A medium pull request with 100 or fewer changes. labels Aug 10, 2026
@github-actions github-actions Bot added the size: medium A medium pull request with 100 or fewer changes. label Aug 10, 2026
@NotHyper-474 NotHyper-474 added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression topic: chart editor Related to the operation of the Chart Editor. labels Aug 10, 2026

@JackXson-Real JackXson-Real left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

@immalloy

Copy link
Copy Markdown

not a reviewer but! i checked these and they work too!!

@Hundrec Hundrec changed the title [CRASHFIX] Fix crash when reopening ease graph previews in the chart/camera editors [CRASHFIX] Fix crash when reopening ease graph previews in editors Aug 10, 2026
@Hundrec
Hundrec self-requested a review August 10, 2026 21:03
@NotHyper-474 NotHyper-474 added the topic: camera editor Related to the operation of the Camera Editor. label Aug 10, 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. topic: camera editor Related to the operation of the Camera Editor. topic: chart editor Related to the operation of the Chart Editor. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression

Development

Successfully merging this pull request may close these issues.

4 participants