Search Issue Tracker
Won't Fix
Unknown (hidden) 1.3.X, 1.4.X
Votes
0
Found in [Package]
1.3.1
Issue ID
MARS-1034
Regression
No
[MARS] NullReferenceException is thrown when Custom Data is added as a SynthesizedTrait to a SynthesizedObject
Reproduction steps:
1. Open the attached project ("1333546R.zip")
2. Open the "SampleScene" scene
3. Enter Play mode
4. Observe the errors in the Console window
Expected result: Play mode is executed successfully
Actual result: Play mode is paused due to errors in the console:
NullReferenceException: Object reference not set to an instance of an object
Unity.MARS.Data.IProvidesTraitsMethods.AddOrUpdateTrait\[T] (Unity.MARS.Data.IProvidesTraits`1\[T] obj, System.Int32 dataID, System.String traitName, T value) (at Library/PackageCache/com.unity.mars@1.3.1/Interfaces/Traits/IProvidesTraits.cs:47)
Unity.MARS.Data.Synthetic.SynthesizedTrait`1\[T].AddTrait (System.Int32 dataID) (at Library/PackageCache/com.unity.mars@1.3.1/Runtime/Scripts/Backend/SynthesizedObject/Trait/SynthesizedTrait.cs:133)
Unity.MARS.Data.Synthetic.SynthesizedObject.InitializeData () (at Library/PackageCache/com.unity.mars@1.3.1/Runtime/Scripts/Backend/SynthesizedObject/SynthesizedObject.cs:241)
Unity.MARS.Data.Synthetic.SynthesizedObject.OnEnable () (at Library/PackageCache/com.unity.mars@1.3.1/Runtime/Scripts/Backend/SynthesizedObject/SynthesizedObject.cs:70)
Reproducible with: MARS 1.3.0, 1.3.1 (2019.4.27f1, 2020.3.11f1, 2021.1.9f1, 2021.2.0a18)
Could not test with: 2018.4.35f1 (MARS not available)
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
- [macOS] RenderTexture with 8 Sample Anti-Aliasing fails to render
- [iOS] UI Toolkit TextField opens the TouchScreenKeyboard in a minimized state when interacted with using an Apple Pencil
- [iOS] TouchScreenKeyboard minimizes when idling after interacting with it using an Apple Pencil
- Hair is not rendered with water physics when overlapping with another GameObject
- SubScene AudioSources play audio automatically in Edit Mode when the Entities Graphics package is installed
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.4.X):
Not shipping any more 1.4 versions. Fixed in 1.5