Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2019.1.0a10
Issue ID
1349195
Regression
No
Crash on string:memcpy when component which is inside editor folder is applied to a prefab
To reproduce:
1. Open attached project.
2. Run editor test named: Component_Matrix4x4ValuesChanged_AssetHasChanges
Crash!
Tested on 2021.2.0a20, based on trunk 496d0fdd0316 revision
Stacktrace:
0x0000022457e5e7b6 (Mono JIT Code) (wrapper managed-to-native) System.Buffer:InternalMemcpy (byte,byte,int)
0x000002245971830b (Mono JIT Code) System.Buffer:Memcpy (byte,byte,int)
0x0000022457e5e683 (Mono JIT Code) string:memcpy (byte,byte,int)
0x00000224a256379b (Mono JIT Code) [SavePrefabComponentTest.cs:49] SavePrefabComponentTest:Component_Matrix4x4ValuesChanged_AssetHasChanges ()
Before the crash error is printed:
Can't add script behaviour MatrixHolderComponent because it is an editor script. To attach a script it needs to be outside the 'Editor' folder
UnityEngine.GameObject:AddComponent (System.Type) (at C:/unity4/Runtime/Export/Scripting/GameObject.bindings.cs:235)
UnityEngine.GameObject:.ctor (string,System.Type[]) (at C:/unity4/Runtime/Export/Scripting/GameObject.bindings.cs:379)
SavePrefabComponentTest:Component_Matrix4x4ValuesChanged_AssetHasChanges () (at Assets/Editor/SavePrefab/SavePrefabComponentTest.cs:46)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment