Search Issue Tracker

Fixed

Fixed in 6000.0.6f1

Votes

0

Found in

6000.0.4f1

Issue ID

UUM-73046

Regression

No

"Invalid UXML or USS: System.InvalidCastException" and "ArgumentException: invalid path" errors are thrown and UI Documents become unusable when they are saved with invalid attributes

--

-

Reproduction steps:
1. Open the attached “UXML Test Project.zip” project
2. Double-click the "Doc" asset from the Project window to open it in the UI Builder window
3. In the StyleSheets Hierarchy section of the UI Builder window, expand “Doc.uxml” and select the “ui concepts-placeholder” element
4. In UI Builder’s Inspector, click “Add” next to “Bind Function”
5. Add “Double Visual Arg” to the “Inputs” list four times
6. In the StyleSheets Hierarchy, expand further and select the “text” element
7. Click “Add” next to “Bindtextfunction”
8. Add “Double Visual Arg” to the “Inputs” list once
9. Save the document
10. Observe the errors in the Console window

Expected results: No errors are thrown
Actual results: "Invalid UXML or USS: System.InvalidCastException" and "ArgumentException: invalid path" errors are thrown

Reproducible with: 6000.0.4f1
Couldn’t test with: 2021.3.39f1, 2022.3.31f1 (UXMLObject attribute does not exist)

Reproducible on: Windows 10, Windows 11
Couldn’t test on: MacOS (due to the contents of the DLL in the project)
Not reproducible on: No other environment tested

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.