View Issue Details

IDProjectCategoryView StatusLast Update
00283142.x IDE BugsRecent WindowsPublic2018-10-29 12:25
ReporterSam CummingAssigned ToAlan Savage 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Product VersionPre-2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0028314: Recent Windows: NullReferenceException when a Recent Windows window is updated
DescriptionIn the attached ui.log, there are multiple exceptions relating to Recent Windows and they appear to be complaining when an entry in Recent Windows is updated. This appears to happen when the user creates any event, which by default would open in the editor, adding a new entry into Recent Windows.

Also, judging by how many exceptions are thrown, it seems that each entry in Recent Windows complains, each throwing an identical exception, as the number of exceptions thrown as each event is added increases the further you go through the ui.log

The first exception occurs on line 3063 in the ui.log
Steps To ReproduceUnknown at this time.
Additional Information[09:12:24:127(6e56)] Exception in YoYoStudio.Plugins.CorePlugins.RecentWindowsModule+<UpdateLabelAndIcon>c__AnonStorey0,Void <>m__0(System.Object, System.String) : System.NullReferenceException: Object reference not set to an instance of an object
  at YoYoStudio.GUI.Gadgets.StackPanel.CollectAllGadgets (System.Collections.Generic.List`1[T] _gadgets, System.Collections.Generic.List`1[T] _stackList, System.Collections.Generic.List`1[T] _gadgetList) [0x00009] in <0294429bf0c04d8b8d7fee0da7575d3b>:0
  at YoYoStudio.GUI.Gadgets.StackPanel.get_StackedGadgets () [0x00035] in <0294429bf0c04d8b8d7fee0da7575d3b>:0
  at YoYoStudio.GUI.Gadgets.ListBox.get_Items () [0x00006] in <0294429bf0c04d8b8d7fee0da7575d3b>:0
  at YoYoStudio.Plugins.CorePlugins.RecentWindowsModule.ObjectChanged (YoYoStudio.GUI.Gadgets.Image _icon, System.Object _sender, System.String _propertyName) [0x00085] in <cc6768bbeb6e40b786fbb0924e653479>:0
  at YoYoStudio.Plugins.CorePlugins.RecentWindowsModule+<UpdateLabelAndIcon>c__AnonStorey0.<>m__0 (System.Object _sender, System.String _pref) [0x00000] in <cc6768bbeb6e40b786fbb0924e653479>:0
  at (wrapper dynamic-method) YoYoStudio.Plugins.CorePlugins.RecentWindowsModule+<UpdateLabelAndIcon>c__AnonStorey0:WeakDelegate (object,object[])
  at YoYoStudio.Core.Utils.WeakDelegate`1[T].Invoke (System.Object[] _args) [0x00030] in <4f1659f12c824b278ad8a1acc9b34f85>:0
TagsIDE, OtherEditor
2.x IDE Found In2.1.2.257
2.x Runtime Found In2.1.2.172
2.x IDE Verified In2.2.1.355
2.x Runtime Verified In2.2.1.268

Activities

Sam Cumming

2017-11-14 16:18

Developer  

ui-2017-11-11-06-10-15 (595,074 bytes)

Dan

2017-11-15 09:16

Adminstrator   ~0056609

Is this a crash that the user actually sees, or was it just noticed when browsing the logs?

Going to need steps anyway.

Dan

2017-11-20 09:12

Adminstrator   ~0056700

^ Was only noticed when reviewing the logs to spot a different issue. No visible results in the IDE.

Alan Savage

2018-07-18 10:41

Developer   ~0060893

Last edited: 2018-07-18 11:08

View 2 revisions

Can be reproduced as follows-
-with recent events window open, create an object, add an event
-close recent events window & reopen
-add another event to the same object - exceptions occur
Also occurs similarly by adding timeline moments

Alan Savage

2018-07-19 11:09

Developer   ~0060901

and also commit 256e9d649c5fcbe67de549d87ab72a2e6979eed9 as first commit had issues
-explicitly remove resource event handlers on destroying the window/removing list items ( as these were left hanging resulting in memory leaks as well as exceptions )