Search Issue Tracker
By Design
Votes
0
Found in
2019.3.0b10
2019.4
2020.2
2021.1
2021.2
2021.2.0a2
Issue ID
1307444
Regression
Yes
"MonoBehaviour" children count increases with each import of a script in the Profiler Memory Module
How to reproduce:
1. Create a new project
2. Open the Profiler window (Window -> Analysis -> Profiler)
3. Change the Profiler Modules so that only the 'Memory' Module is displayed
4. Create a new Script in the Project window
5. Switch to 'Detailed' information type in the Profiler instead of 'Simple'
6. Right-click on the newly created Script and select 'Reimport'
7. Start recording with the Profiler
8. Stop Recording
9. In the Profiler window press 'Take Sample Editor'
10. Expand 'Scene Memory' -> 'MonoBehaviour'
11. Make note of the count for MonoBehaviour
12. Repeat Steps 6 to 12 again
13. Notice the count increases with each import
Expected results: "MonoBehaviour" count stays the same with each import
Actual results: "MonoBehvaiour" count grows by 1-3 with each import
Reproducible with: 2019.3.0b10, 2019.4.19f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3
Not reproducible with: 2018.4.31f1
Could not test with: 2019.1.0a1, 2019.3.0b9 (No option to "Take Sample Editor")
Note: MonoBehaviour count in the Profiler goes back to normal if you reimport while recording
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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note:
As Designed - Removed next time asset gc kicks in