Unity Issue Tracker - InvalidOperationException is thrown when expanding ScriptableObject array
Closed
UUM-91836
InvalidOperationException is thrown when expanding ScriptableObject array
Unity: UI Toolkit Framework
Cannot Reproduce
6.0.X
This is an old bug that has been addressed a long time ago.
Reproduction steps:
1. Open the attached “ScriptableObjectBug.zip” project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Select the “Scripts” GameObject in the Hierarchy window
4. Expand the "Scriptable Objects" array in the Inspector window
5. Collapse the "Scriptable Objects" array in the Inspector window
6. Enter the Play Mode
7. Exit the Play Mode
8. Expand the "Scriptable Objects" array again in the Inspector window
9. Observe the Console window
Expected result: No errors are thrown
Actual result: “InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread” errors are thrown
Reproducible with: 6000.0.32f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Not reproduced by CQA
Prioritise and Follow this issue
Have a workaround or additional info about this issue?