Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2018.2.X
Votes
0
Found in
2018.1.0b7
2018.2.0f2
Issue ID
1060352
Regression
Yes
On project load, Unity Editor calls additional InitializeOnLoad events that fail to LoadAssetAtPath
To reproduce:
1. Download attached project "Bolt.Unity.Debug46.zip" and open in Unity
2. Open "1972" scene
3. Press Tools > Bolt > Unit Options Window...
4. In the opened window scroll down and press the "Next" button
5. Scroll down again and press the "Generate" button
6. Wait until it generates unit database
7. When Bolt window closes itself, press the "Clear" button in Console window
8. Close the Unity Editor entirely
9. Open project "Bolt.Unity.Debug46.zip" again
10. Inspect Console window
Expected results: There will be only one "InitializeOnLoad" log
Actual results: There will be two or more "InitializeOnLoad" logs and "LoadAssetAtPath" returns null during that method call
Notes:
- This issue reproduces on both Windows and OSX
- In the scope of the first "InitializeOnLoad", "LoadAssetAtPath" returns null
- User code is seemingly not at fault here, because the second "InitializeOnLoad" does not report any error with "LoadAssetAtPath"
- Starting with Unity 2018.1.0b7, it logs to the Console window only two "InitializeOnLoad"
- Starting with Unity 2018.2.0a2, it logs to the Console window two or more "InitializeOnLoad" and "LoadAssetAtPath" returns null during that method call
Reproduced on Unity 2018.1.0b7, 2018.1.9f1, 2018.2.0a2, 2018.2.0f2 and 2018.3.0a5
Could not reproduce on Unity 2017.4.7f1 and 2018.1.0b6
Regression on Unity 2018.1.0b7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment