Search Issue Tracker

Fixed in 1.0.0-preview.6

Votes

1

Found in [Package]

1.0.0-preview.5

Issue ID

1274584

Regression

No

Editor freezes and memory usage increases when moving a selector between USS files

Package: UI Builder

-

How to reproduce:
1. Open the attached project (case-1274584.zip)
2. Open the UI Builder window (Window -> UI -> UI Builder)
3. Drag the '.unity-button:hover' selector from 'test.uss' to 'test2.uss'
4. Drag the '.unity-button' selector from 'test.uss' to 'test2.uss' and make sure that it lands above '.unity-button:hover'

Expected result: the selector is successfully transferred to the other USS file
Actual result: the Editor freezes and starts using a lot of memory

Reproducible with: 1.0.0-preview.1, 1.0.0-preview.5 (2019.4.9f1, 2020.1.4f1, 2020.2.0b1)
Could not test with: 2018.4.27f1 (package not compatible)
Could not test with package versions: 0.11.2-preview (can not drag the selector from one USS file to another)

Notes:
1. The issue does not occur if the UXML file doesn't contain the element that the selector targets (in this example a button)
2. The issue seems to occur only when dragging a selector above another selector that is of the same class and additionally contains pseudo-states

  1. Resolution Note (fix version 1.0.0-preview.6):

    Fixed in UI Builder 1.0.0-preview.6.

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.