Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2020.3.X, 2021.1.X, 2021.2.X

Votes

7

Found in

2020.3.1f1

2021.1

2021.2

2021.2.0b4

2022.1

Issue ID

1353925

Regression

Yes

Editor crashes on UnityEditor.Unsupported:IsDestroyScriptableObject when applying changes to a custom asset

Asset - Importers

-

Reproduction steps:
1. Open the user's attached project "ApplyIssue.zip"
2. Select Assets/Script.nani asset
3. In the Inspector window change the text on the first line and enter Play Mode
4. In the pop-up message select Save

Expected result: Changes are applied
Actual result: The editor crashes

Reproducible with: 2020.3.1f1, 2021.1.16f1, 2021.2.0b5, 2022.1.0a3
Not reproducible with: 2019.4.28f1, 2020.3.0f1

First lines of the stacktrace:
0x000001bbafc210a1 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.Unsupported:IsDestroyScriptableObject (UnityEngine.ScriptableObject)
0x000001bd254fbe33 (Mono JIT Code) UnityEditor.AssetImporters.AssetImporterEditor:OnDisable ()
0x000001bd254fafb3 (Mono JIT Code) [ScriptImporterEditor.cs:83] Naninovel.ScriptImporterEditor:OnDisable ()
0x000001bc6e12e0b8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffc691d7ed0 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke

Notes:
-Reproducible on windows and macOS

  1. Resolution Note (fix version 2022.1):

    Fixed in  2022.1.0a6

  2. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0b13

  3. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.25f1

  4. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.21f1

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.