Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0f3
Issue ID
900515
Regression
Yes
Null reference exception on entering play mode when an Image with Mask component is selected in Hierarchy
1. Download project "990515 repro.zip"
2. Open the scene "test560"
3. In Hierarchy window, select Image gameobject
4. Enter play mode
5. Observe the console
Result: NullReferenceException: (null)
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/SerializedPropertyBindings.gen.cs:87)
UnityEditor.Editor.GetSerializedObjectInternal () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:193)
UnityEditor.Editor.get_serializedObject () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:185)
UnityEditor.MaterialEditor.OnEnable () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1808)
Expected result: no errors are thrown
Reproduced with: 5.6.0f3, 2017.1.0b1
Did not reproduce with: 5.5.3p1
Regression introduced in 5.6
Note: may be related to case 900539
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Shudrum
Jul 31, 2017 14:12
Not fixed on the 5.x I mean, I cannot affort the 2017.x version, still using my $2500 pro version.
Shudrum
Jul 31, 2017 14:11
I have the error too, can't manage to get my masks to work correctly even if I try to recreate the mask and the image on the right order to get the right material…
fernandodandrea
Jun 23, 2017 19:50
I've just get the same error on 5.6.1.p3
retry_entry
May 05, 2017 13:37
NOTHING RESOLVED. JUST GOT THE SAME ERROR!