Search Issue Tracker

Fixed in 2020.2

Fixed in 2019.4, 2020.1



Found in






Issue ID




Selected GameObjects are deleted when entering Play Mode and "Failed to unpersist" error is thrown



Steps to reproduce:
1. Install Mercurial and check out Unity source code on Windows
2. Pull revision d5f1b37da199 by executing "hg pull -r d5f1b37da199" command
3. Jam ProjectFiles
4. Build a debug Editor by executing "perl --target=WindowsEditor --codegen=debug"
5. Download and unzip "" attached below
6. Navigate to harness/scripts
7. Edit line 92 in by assigning the path to the Editor built in step 4 to the 'unityExe' variable
8. Assuming you have Python installed and added to PATH, edit line 3 test-harness.bat by replacing the path to python with "python" (without quotation marks). If not, replace the path with "<...>\harness\tools\python27\python.exe"
9. Run test-harness.bat

Expected result: Repro rate of 0%, i.e. selected GameObjects are not deleted when going into Play Mode and no "Failed to unpersist" error is logged to the Console in each test.
Actual result: Repro rate >0%, i.e. selected GameObjects are deleted when going into Play Mode and "Failed to unpersist" error is logged to the Console in tests.

Reproduced in: 2019.1.9f1, 2019.2.13f1, 2019.3.0b12, 2020.1.0a14, 2020.2.0a3 (reproduced once)
Could not reproduce on: 2017.4.35f1, 2018.4.13f1

- Reproduction with this specific set up was only tested with 2019.1.9f1 and 2020.2.0a3. All others come from Case 1199816

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a8

  2. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0b11

  3. Response avatar

    Resolution Note (fix version 2019.4):

    Fixed in 2019.4.0f1

Comments (1)

  1. F6632f15d3fde766c2a90a7151f83bc8?d=mm


    May 04, 2020 13:20

    I initially though this was an issue when upgrading to Unity 2019.3.12f1.

    However, I now think (although not certain) that it occurred when I imported an asset that had some post processing scripts, that might be conflicting with the Post Processing files within the package manager, although no consistent errors where being shown in the console.

    After removing these files though, I no longer seem to be able to reproduce the issue, which was happening almost every time I entered playmode for the first time after restarting the project.

    Until its fixed in 2019.3 hope this possibly helps someone else.

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.