Search Issue Tracker

Fixed

Votes

14

Found in [Package]

Issue ID

1314920

Regression

Yes

[UI Toolkit] An error is thrown in Console window when switching Editor’s Code Optimization mode

Package: UI Toolkit

-

Reproduction steps:
1. Create a new Unity project
2. Open the Package Manager (Window->Package Manager)
3. Add UI Toolkit package from git URL ("+" > Add package from git URL... > "com.unity.ui" > Add)
4. Switch the Editor’s Code Optimization mode to Release or Debug in the bottom right of the Unity Editor Status Bar
5. Observe the Console window

Expected result: no errors appear in the Console window
Actual result: the "The requested operation cannot be performed on a file with a user-mapped section open. 0 file(s) copied." error is logged

Reproducible with: 1.0.0-preview.14 (2021.1.0a8, 2021.1.0b9), UI Builder 1.0.0-preview.14 (2021.2.a9)
Not reproducible with: 1.0.0-preview.14 (2020.2.6f1), UI Builder 1.0.0-preview.9 (2021.1.0a1)
Could not test with: 2018.4, 2019.4 (UI Toolkit is not introduced yet), 2021.1.0a1-0a7 and 2021.2 (due to UI Toolkit's errors)

  1. Response avatar

    Resolution Note:

    Fixed in: 2022.1.0a1

  2. Response avatar

    Resolution Note:

    Fixed in: 2021.2.0b3

  3. Response avatar

    Resolution Note:

    Fixed in: 2021.1.16f1

Comments (5)

  1. 2f70770c6130ec10761e9b2fb433a06b?d=mm

    microteq

    Jun 17, 2021 13:00

    Same for me with unity version 2021.1.10f1

  2. D4e2458a26be9dcb0466a4eb0c28ee5e?d=mm

    ADoucette

    May 27, 2021 17:28

    Occurring in 2021.1.7f1 when I try to switch build platforms.

  3. 0a49304e865baf26b7fb936bb1a605e1?d=mm

    RedHillbilly

    May 19, 2021 10:34

    Same issue here, any news?

  4. 5f9fbee66b61ab5b60d0de905a82091b?d=mm

    xXPancakeXx

    May 12, 2021 19:42

    Same on my project on version 2021.1.6f1
    Any improvements on this one?

  5. 4d4972a6fcd31753c7972d7722464b4d?d=mm

    M3Nd1

    Mar 24, 2021 04:39

    Its happening since i updated to 2021.1.0f1 from 2020.2.5f1.
    Im using UI Toolkit but i cant know for sure that package is causing the issue

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.