Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.5.0a7

6000.6.0a1

Issue ID

UUM-134698

Regression

No

"InvalidOperationException" and "NullReferenceException" Errors are thrown when reopening Profiler Window with 2D module elements selected

2D

-

Steps to reproduce:

  1. Create a new project using Universal 2D template
  2. In the Hierarchy, create a Sprite (e.g. 2D Object > Sprites > Triangle) 
  3. Enter Play mode
  4. Open the Profiler window (Window > Analysis > Profiler)
  5. Scroll and select the 2D Profiler Module
  6. Select any frame and at the bottom select "Textures ( 1 texture, 1 sprites )"
  7. Close the Profiler window
  8. Reopen the Profiler window
  9. Observe the Console

Actual results: 3 "InvalidOperationException: Cannot modify VisualElement hierarchy during layout calculation" Errors and "NullReferenceException: Object reference not set to an instance of an object" Error are thrown

Expected results: No Errors

Reproducible with versions: 6000.5.0a7 

Can’t test with versions: 6000.0.68f1, 6000.3.9f1, 6000.4.0b9 (2D Profiler module not available)

Tested on (OS): macOS 26.2

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.