Players experience a crash when attempting to select an item in their inventory. The issue occurs on PC, no specific item type seems to trigger the crash it happens for any item in the inventory.
Notes from our engineers regarding the possible cause of the issue:
TextFits property of TextLabels no longer updating when Size of the TextLabel changes. TextFits only updates when TextSize changes.
In Dragon Adventures, we keep the TextSize of a specific TextLabel at 18, then set thet Text to the description of an item. We then resize the TextLabel on the Y axis by 14 pixels until TextFits is set. As of about 11:57am PST, the way we have done it now never sets TextFits to true, causing the loop that used to work to now exhaust and freeze players.
Code snippet,
repeat
CurrentInventorySelectedLayoutFrame.ScrollingFrame.DescriptionLabel.Size += UDim2.fromOffset(0, 14)
until CurrentInventorySelectedLayoutFrame.ScrollingFrame.DescriptionLabel.TextFits
Additional info: In this gif, you can see that TextFits does not update until the TextSize is changed.
https://gyazo.com/a185f97eb073244b07e946336aeb9e6d
The text clearly should be fitting before that happens.
Steps to reproduce:
- Join Dragon Adventures on PC.
- Open up Inventory
- Select an item
- Game Crashes and unable to close out the app
- 30 sec to exhaust the app, and closes it.
Expected behavior
Players are able to select an item in inventory without running into experience crashing on PC.