Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.3.0a1
2019.3.12f1
2019.4
2020.1
2020.2
Issue ID
1257558
Regression
Yes
Editor crashes when applying changes to custom ScriptedImporter asset
How to reproduce:
1. Open the attached project (1257558.zip) using necessary assetpipeline version (use -adb1 or -adb2 command-line arguments)
2. In the Project window open the "SpriteAnimationImporter.cs" script in any script editor
3. Delete line 14 so the script would recompile
4. Return to the Editor
5. In the Project window select the "V00" asset
6. In the Inspector set the "Pixels Per Unit" value to 25 and press "Apply"
Assetpipeline v1:
Reproducible with: 2019.1.0a11, 2019.1.0b4.
Not reproducible with:, 2019.1.0b5, 2019.1.14f1, 2019.2.21f1, 2019.3.0a1, 2019.3.14f1, 2019.4.13f1
Not possible to test: 2018.4.24f1, 2019.1.0a1, 2019.1.0a10, 2020.1.14f1, 2020.2.0f1
Assetpipeline v2:
Reproducible with: 2019.1.0a12, 2019.1.14f1, 2019.2.0a1, 2019.2.21f1, 2019.3.14f1, 2019.4.2f1
Not reproducible with: 2019.1.0a11
Not possible to test: 2018.4.24f1, 2019.1.0a1, 2019.1.0a10
Notes:
1. Tested on Ubuntu 18.0, Windows 10, and OSX 11.0.
2. Only crashes when the object added through the "AddObjectToAsset" method in "OnImportAsset" SpriteAnimationImporter script derives from "ScriptableObject".
3. This issue reproduces on different version depending on assetpipeline version
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 2021.2):
This was caused by an interaction between the import process and serialisation. It has been resolved by tightening the restrictions on AssetImportContext::AddObjectToAsset. This function now checks for invalid scriptable objects and errors when attempting to add them to an asset.
Fixed in 2021.2.0a4