Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.5f1
2022.1
2022.2
Issue ID
1385979
Regression
No
Runtime helper generated GameObjects are not added to main thread list when using Parallel.For
How to reproduce:
1. Open the user's project "TestCSharp8.zip"
2. Press Play and observe the Console Window
Expected result: Generated GameObjects are added to the list
Actual result: Generated GameObjects are not added to the list
Reproducible with: 2019.4.36f1, 2020.3.30f1, 2021.2.14f1, 2022.1.0b10, 2022.2.0a6
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
Resolution Note:
This is a user code issue: the RuntimeHelper.RunOnMainThread does not execute synchronously: it put the action in a queue which is run on each update of the singleton scriptable object. So the GameObjects are actually added during next frame, and are not yet there at the end of the Awake message.