View Issue Details

IDProjectCategoryView StatusLast Update
0002496NoesisGUIUnity3Dpublic2023-02-14 12:08
Reporterstonstad Assigned Tosfernandez  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.1.5 
Target Version3.2.0Fixed in Version3.2.0 
Summary0002496: NoesisViewEditor.OnPreviewGUI Crash
DescriptionOn app domain reload I am getting the following exception:

NullReferenceException: Object reference not set to an instance of an object
  at NoesisViewEditor.OnPreviewGUI (UnityEngine.Rect rect_, UnityEngine.GUIStyle background) [0x00076] in C:\Source\StellarConquest\StellarConquest.Utilities\Noesis\3.1.5\Editor\NoesisViewEditor.cs:215
  at UnityEditor.Editor.OnInteractivePreviewGUI (UnityEngine.Rect r, UnityEngine.GUIStyle background) [0x00001] in <f7044ab663d344a2badf1160e57d1c1d>:0
at UnityEditor.ObjectPreview.DrawPreview (UnityEditor.IPreviewable defaultPreview, UnityEngine.Rect previewArea, UnityEngine.Object[] targets) [0x00363] in <f7044ab663d344a2badf1160e57d1c1d>:0
  at UnityEditor.Editor.DrawPreview (UnityEngine.Rect previewArea) [0x00009] in <f7044ab663d344a2badf1160e57d1c1d>:0
  at UnityEditor.PropertyEditor.DrawPreviewAndLabels () [0x0050f] in <f7044ab663d344a2badf1160e57d1c1d>:0
  at UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clip

GUILayout: Mismatched LayoutGroup.repaint
Crash!!!
SymInit: Symbol-SearchPath: 'C:/Program Files/Unity/Hub/Editor/2022.2.1f1/Editor/Data/Mono;.;C:\Source\StellarConquest\StellarConquest.Presentation.Unity;C:\Source\StellarConquest\StellarConquest.Presentation.Unity\Library\BurstCache\JIT;C:\Program Files\Unity\Hub\Editor\2022.2.1f1\Editor;C:\Windows;C:\Windows\system32;', symOptions: 534, UserName: 'Shaun Tonstad'
Steps To ReproduceEncl. dump and error logs.
TagsNo tags attached.
PlatformAny

Relationships

related to 0002495 resolvedsfernandez Texture Corruption Built Assembly 

Activities

stonstad

stonstad

2023-01-27 20:54

reporter  

sfernandez

sfernandez

2023-02-14 12:07

manager   ~0008282

The native crash was related to the texture corruption bug we fixed for 3.1.7 (issue 0002495).

The null reference exception in NoesisViewEditor can be fixed with the following patch:

-        GUI.Label(new Rect(rect_.x + 5, rect_.y + 5, rect_.width, rect_.height), view.Xaml.uri, _previewHeaderStyle);
+        string uri = view.Xaml != null ? view.Xaml.uri : "No XAML selected";
+        GUI.Label(new Rect(rect_.x + 5, rect_.y + 5, rect_.width, rect_.height), uri, _previewHeaderStyle);

Issue History

Date Modified Username Field Change
2023-01-27 20:54 stonstad New Issue
2023-01-27 20:54 stonstad File Added: Crash_2023-01-27_195208836.zip
2023-01-28 01:59 jsantos Assigned To => sfernandez
2023-01-28 01:59 jsantos Status new => assigned
2023-01-28 01:59 jsantos Target Version => 3.1.7
2023-02-14 12:05 sfernandez Relationship added related to 0002495
2023-02-14 12:07 sfernandez Status assigned => resolved
2023-02-14 12:07 sfernandez Resolution open => fixed
2023-02-14 12:07 sfernandez Fixed in Version => 3.2.0
2023-02-14 12:07 sfernandez Note Added: 0008282
2023-02-14 12:08 sfernandez Target Version 3.1.7 => 3.2.0