[Custom Inventory and Items] Server crashes when selecting `Use Item` on a custom item in the users hotbar.

Summary

When creating a custom interactable item following the docs below

If you pick up the item, you cannot select it by using the hotbar keys or scroll wheel. If you try to equip it by opening the regular inventory and then selecting the item in your hotbar and then selecting ‘Use Item’ it will crash the server.

Prefab setup is

custom_item_component
custom_item_interactable_component
description_component
item_icon_component
mesh_component
rarity_component

Error when pressing Use Item

An unrecoverable Verse runtime error occurred: Verse unrecoverable error: ErrRuntime_InfiniteLoop: The runtime terminated prematurely because Verse code was running in an infinite loop. (Infinite script recursion (120 calls) detected - see log for stack trace)

Truncated callstack follows:
	VersePerPlayerDataReplication:ServerPropertyInterfaceValueChangedBool (Unknown source)	(Source: Unknown(0,0, 0,0))

These details are also available in the [Verse Runtime Errors] section of the log.
The current session will not execute any more Verse code and is likely to result in unwanted behaviour. Would you like to terminate it?

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Create custom item prefab following the guide
Place it in the world
Start Game
Interact with custom item
Once it is in your hotbar you cannot select it
Open inventory and select custom item
Select “Use Item” on the custom item
Server crashes

Expected Result

The custom item should be selectable by the native fortnite weapon hotbar controls.
Hitting ‘Use Item’ should at least equip it if the controls are not working.

Observed Result

You cannot select the custom item in your Fortnite weapon hotbar. Opening the inventory menu and selecting the custom item then selecting Use Item crashes the server.

Platform(s)

All platforms

Island Code

3682-6303-0318

I also added an item spawner, grabbed the item first, then scrolled over to the custom item, and it still crashed. So it seems any equipping of the item crashes it. This time the error message is a bit different.

LogVerse: Error: VerseRuntimeErrors: Verse unrecoverable error: ErrRuntime_InfiniteLoop: The runtime terminated prematurely because Verse code was running in an infinite loop. (Infinite script recursion (120 calls) detected - see log for stack trace)
Truncated callstack follows:
    Inventory:Server_EquipItem (Unknown source) (Source: Unknown(0,0, 0,0))
1 Like

FORT-1085973 has been added to our ‘To Do’ list. Someone’s been assigned this task.