Search Issue Tracker

By Design

Votes

0

Found in

2018.3.0b11

2019.1.0a10

Issue ID

1104590

Regression

No

PackedMemorySnapshot: "subSystemList" detected with wrong type

Profiling

-

To reproduce:
1) Open user attached project
2) Click Mainmenu > BugReport > Open TestCode Window
3) Click "Capture Memory" button

Actual: The "subSystemList" field is detected as ValueType.
Expected: The "subSystemList" field is detected as Array, which is a ReferenceType.

Reproduced in 2018.3.0b11 and 2019.1.0a10 (subSystemList is not checked in earlier versions)

  1. Resolution Note (2019.1.X):

    In mono we initialize class data on access, as such if the member subSystemList's type is never used in the user's code it will not be initialized and therefore skipped by the crawling process. In our case this type is PlayerLoopsystem[], as such any usage of this type either by accessing the aforementioned member or creating a variable of PlayerLoopSystem[] will initialize the type and it will cause the member subSystemsList to be reported(even if it is unused).

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.