2394425147 / astrodx

930 stars 39 forks source link

导入比较多铺面时搜索功能失效 #45

Closed undefftr closed 1 year ago

undefftr commented 1 year ago

Bug描述

在我导入了1000多个铺面,并尝试在AstroDX顶端的搜索框中搜索时,提示:“NullReferenceException: Object reference not set to an instance of an object.”

复现过程

  1. 在铺面文件夹中存放较多铺面(不确定多少,我放了1000多个铺面后发现了Bug)
  2. 打开AstroDX并搜索铺面

设备信息

详细错误信息

NullReferenceException: Object reference not set to an instance of an object.

AstroDX.Contexts.Hub.LevelSelection.Stocking.LevelStock+<>c__DisplayClass3_0.<SearchFilter>b__0 (AstroDX.Cache.DifficultyInfo l) (at <00000000000000000000000000000000>:0)
System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () (at <00000000000000000000000000000000>:0)
System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) (at <00000000000000000000000000000000>:0)
System.Linq.OrderedEnumerable`1+<GetEnumerator>d__1[TElement].MoveNext () (at <00000000000000000000000000000000>:0)
System.Collections.Generic.List`1[T].AddEnumerable (System.Collections.Generic.IEnumerable`1[T] enumerable) (at <00000000000000000000000000000000>:0)
System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <00000000000000000000000000000000>:0)
AstroDX.Contexts.Hub.LevelSelection.LevelSelectionScreen.UpdateLevelsInView (System.Boolean useSelectedDifficulty) (at <00000000000000000000000000000000>:0)
AstroDX.Contexts.Hub.LevelSelection.LevelSelectionScreen.<InitializeComponents>b__35_0 () (at <00000000000000000000000000000000>:0)
UniRx.Observer+Subscribe`1[T].OnNext (T value) (at <00000000000000000000000000000000>:0)
UniRx.Operators.ThrottleObservable`1+Throttle[T].OnNext (System.UInt64 currentid) (at <00000000000000000000000000000000>:0)
UniRx.MainThreadDispatcher.UnsafeSend (System.Action action) (at <00000000000000000000000000000000>:0)
UniRx.Scheduler+MainThreadScheduler+<DelayAction>d__2.MoveNext () (at <00000000000000000000000000000000>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <00000000000000000000000000000000>:0)
UniRx.<DelayAction>d__2:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
Soneoylys commented 1 year ago

感谢反馈,请问在重新生成Cache后仍然出现了这个问题吗 似乎在iOS上无法复现,之后我会尝试在editor里复现一下

重新生成Cache:长按选曲界面 排序旁边的刷新按钮

Soneoylys commented 1 year ago

Cannot replicate, close this issue for now. 无法复现,暂时关闭issue