Asset Manager crashes when clicking "Asset Preview"

Reproduction Steps
Currently, as of 3/21/22, clicking “Asset Preview” on an image asset will sometimes crash the asset manager. The following error is spit to the output widget:

  builtin_AssetManager.rbxm.AssetManager.Src.Components.AssetPreviewWrapper:114: attempt to index boolean with 'rootTreeViewInstance'
  Stack Begin
  Script 'builtin_AssetManager.rbxm.AssetManager.Src.Components.AssetPreviewWrapper', Line 114 - function render
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages.Framework.ContextServices.mapToProps', Line 103
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages.Framework.ContextServices.Consumer', Line 74 - function render
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 344 - function __mount
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 367 - function mountVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 95 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 122 - function updateVirtualNodeWithRenderResult
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 347 - function __mount
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 367 - function mountVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 95 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 122 - function updateVirtualNodeWithRenderResult
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 347 - function __mount
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 367 - function mountVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 95 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 122 - function updateVirtualNodeWithRenderResult
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 347 - function __mount
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 367 - function mountVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 95 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 122 - function updateVirtualNodeWithRenderResult
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 312 - function mountFunctionVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 365 - function mountVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 95 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 114 - function updateVirtualNodeWithChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.RobloxRenderer', Line 273 - function updateHostNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 237 - function updateVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 74 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 122 - function updateVirtualNodeWithRenderResult
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 510 - function __resolveUpdate
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 448 - function __update
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 241 - function updateVirtualNode
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 74 - function updateChildren
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.createReconciler', Line 122 - function updateVirtualNodeWithRenderResult
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 510 - function __resolveUpdate
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 448 - function __update
  Script 'builtin_AssetManager.rbxm.AssetManager.Packages._Index.roblox_roact.roact.Component', Line 171 - function setState
  Script 'builtin_AssetManager.rbxm.AssetManager.Src.Components.MainView', Line 115
  Script 'builtin_AssetManager.rbxm.AssetManager.Src.Components.AssetGridContainer', Line 135
  Script 'builtin_AssetManager.rbxm.AssetManager.Src.Thunks.OnAssetRightClick', Line 224
  Stack End

To reproduce, simply right click on some image assets and click “Asset Preview”. After a handful of tries, the asset manager should crash. I was able to reliably reproduce this fairly often on my machine.

Expected Behavior
It is expected that clicking “Preview Asset” would bring up the asset preview.

Actual Behavior
The asset manager sometimes crashes when clicking the “Asset Preview” button on an image asset.

Workaround
None (rebooting studio is not acceptable)

Issue Area: Studio
Issue Type: Crashing
Impact: High
Frequency: Often
Date First Experienced: 2022-03-21 00:03:00 (-04:00)

2 Likes

It seems the asset manager does this anytime a request fails as it also occurs if the asset is moderated etc.

1 Like

Thanks for the report! We are working on a fix. We’ll come back to you when an update will be available.

3 Likes

Hello,

This should be fixed. Let us know if you still encounter this issue!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.