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
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
- Mouse and Pointer Events are called incorrectly in ScrollView with XRUIInputModule
- Memory leak occurs when repeatedly minimizing and maximizing the UI Builder window
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