[CRITICAL] Attempting to use the player's name in a custom item's name causes the connected client's games to HARD CRASH

Summary

Attempting to change the name in a description_component to include or be the player’s username causes all clients who are connected to the session games to hard crash.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Stability

Steps to Reproduce

Create a function to get the player’s name:

GetPlayerName <localizes> (Player : player) : message = "{Player}"

Attempt to change an item’s name to the player’s name:
Create a component to attach to the custom item in the prefab editor that
has a function to change the name, call that function when spawning the item from something like a button:

name_changer_component <public> := class <final_super> (component):

    UpdateName (Player : player) : void =
        if. DescriptionComp := Entity.GetFirstComp[description_component] then:
                ItemName := GetPlayerName(Player)
                set DescriptionComp.Name = ItemName

#different component/device:

Function (Player : player) : void =
        if. SimEntity := Entity.GetSimulationEntity[] then:
              CustomItem := #CUSTOM ITEM FILE LOCATION
              SimEntity.AddEntities(array. CustomItem)
              if. NameChangerComp :=  CustomItem.GetFirstComp[name_changer_component] then:
                    NameChangerComp.UpdateName(Player)

# A helper function of mine is used here, ensure you have it
(InEntity:entity).GetFirstComp(component_type:castable_subtype(component))<transacts><decides> : component_type =
    (for (I : InEntity.FindDescendantComponents(component_type)){ I })[0]

Expected Result

The custom item’s name changes to the player’s name.

Observed Result

The game of any clients connected to the session hard crashes.

Platform(s)

Xbox Series X (Session)
PC (UEFN)

Hello,

We made a couple attempts at reproducing this and did not manage to. Could you provide an island code that does exhibit the problem? Ideally a minimal test project.

The path to the bug may require setting the text in a specific way.

Thanks,

Jeff FIsher

FORT-1124144 is now ‘In Progress’! Our team is actively working on it!

Will a private island code surfice?

I was able to repro this bug on v41.20, I also published an unlisted island code where if I enter it from the fortnite client and spawn the item, the client WILL crash, I tried doing it 5 times and 5 out of 5 times it crashed the client.

Island Code: 4961-8914-6392
Project ID: 93f75461-4221-edc8-f282-9d870e1a8d21

Youtube video showing the crash:

Project Files:
RenameItemCauseCrashBugReport00.zip (1.2 MB)

2 Likes