Skip to content

[CRASHFIX] Fix Chart Editor crashing when character pixel icon is missing - #8087

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

[CRASHFIX] Fix Chart Editor crashing when character pixel icon is missing#8087
kiryvajiravuth wants to merge 1 commit into
FunkinCrew:preview/public-playtestfrom
kiryvajiravuth:fix-icon-crash

Conversation

@kiryvajiravuth

Copy link
Copy Markdown
Contributor

Linked Issues

Closes #6739

Description

The Chart Editor Metadata Toolbox and Character Icon Selector crash with Null Object Reference when a character's pixel icon asset (e.g. ui/freeplay/characters/darnell.png or ui/freeplay/characters/darnell.xml) is missing or corrupted.

Two fixes applied:

  • CharacterData.hx: getCharPixelIconAsset() now catches asset load failures in a try/catch and returns null instead of crashing.
  • ChartEditorMetadataToolbox.hx and ChartEditorCharacterIconSelectorMenu.hx: All callers of getCharPixelIconAsset() now nullcheck the result before passing it to Variant.fromImageData().

When a pixel icon is missing, the button shows no icon instead of crashing.

Screenshots/Videos

Before :

before.mp4

After :

after.mp4

@github-actions github-actions Bot added status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. pr: haxe PR modifies game code. labels Sep 6, 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 Sep 6, 2026
@kiryvajiravuth

Copy link
Copy Markdown
Contributor Author

My BUM ahh forgot to mute my mic :nails:

@Heng-Leangseng

Copy link
Copy Markdown
Contributor

My BUM ahh forgot to mute my mic :nails:

What?

@kiryvajiravuth

Copy link
Copy Markdown
Contributor Author

My BUM ahh forgot to mute my mic :nails:

What?

I could hear background noices in the recording

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: 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.

Crash Report: Chart Editor | Metadata toolbox crashes when no pixel icon for different characters exists ?

3 participants