Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The first load appears to stop working #38

Open
xiao-sheng-vip opened this issue Jan 7, 2020 · 1 comment
Open

The first load appears to stop working #38

xiao-sheng-vip opened this issue Jan 7, 2020 · 1 comment

Comments

@xiao-sheng-vip
Copy link

2020-01-07 22:00:19,560 [8] INFO NationalDatabase - saving shared module data into cache
2020-01-07 22:00:19,614 [8] INFO NationalDatabase - load tech tree from cache failed, gonna regenerate
2020-01-07 22:00:19,620 [8] INFO PackageStream - open package file scripts/item_defs/vehicles/china/xmlref.xml from
2020-01-07 22:00:19,633 [8] ERROR Program - an first chance exception occurred:
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Smellyriver.TankInspector.IO.PackageStream..ctor(String packageFile, String path)
2020-01-07 22:00:20,617 [8] ERROR Program - an first chance exception occurred:
System.IO.FileNotFoundException: cannot find scripts/item_defs/vehicles/china/xmlref.xml in
在 Smellyriver.TankInspector.IO.PackageStream..ctor(String packageFile, String path)
2020-01-07 22:00:21,194 [1] FATAL MainWindowViewModel - database load failed
System.AggregateException: 发生一个或多个错误。 ---> System.IO.FileNotFoundException: cannot find scripts/item_defs/vehicles/china/xmlref.xml in
在 Smellyriver.TankInspector.IO.PackageStream..ctor(String packageFile, String path)
在 Smellyriver.TankInspector.IO.PackageStream..ctor(IPackageIndexer indexer, String path)
在 Smellyriver.TankInspector.Modeling.Tank.Load()
在 Smellyriver.TankInspector.Modeling.Tank.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.Tank>.get_Value()
在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy) 在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
在 Smellyriver.TankInspector.Modeling.TechTree.BuildTechTree()
在 Smellyriver.TankInspector.Modeling.TechTree..ctor(NationalDatabase nation)
在 Smellyriver.TankInspector.Modeling.NationalDatabase.ResolveTechTree()
在 Smellyriver.TankInspector.Modeling.NationalDatabase.Load()
在 Smellyriver.TankInspector.Modeling.NationalDatabase.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.NationalDatabase>.get_Value()
在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy) 在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
在 Smellyriver.TankInspector.Modeling.Database.<get_Tanks>d__59.MoveNext()
在 System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() 在 System.Linq.Enumerable.Count[TSource](IEnumerable1 source)
在 Smellyriver.TankInspector.Modeling.Database.LoadBenchmarkTanks()
在 Smellyriver.TankInspector.Modeling.Database.FullyLoad()
在 Smellyriver.TankInspector.Modeling.Database.Load(Boolean fullyLoad, Nullable1 currentDatabaseKey) 在 Smellyriver.TankInspector.MainWindowViewModel.<>c.<BeginLoad>b__79_0() 在 System.Threading.Tasks.Task.InnerInvoke() 在 System.Threading.Tasks.Task.Execute() --- 内部异常堆栈跟踪的结尾 --- ---> (内部异常 #0) System.IO.FileNotFoundException: cannot find scripts/item_defs/vehicles/china/xmlref.xml in 在 Smellyriver.TankInspector.IO.PackageStream..ctor(String packageFile, String path) 在 Smellyriver.TankInspector.IO.PackageStream..ctor(IPackageIndexer indexer, String path) 在 Smellyriver.TankInspector.Modeling.Tank.Load() 在 Smellyriver.TankInspector.Modeling.Tank.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.Tank>.get_Value() 在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy)
在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() 在 Smellyriver.TankInspector.Modeling.TechTree.BuildTechTree() 在 Smellyriver.TankInspector.Modeling.TechTree..ctor(NationalDatabase nation) 在 Smellyriver.TankInspector.Modeling.NationalDatabase.ResolveTechTree() 在 Smellyriver.TankInspector.Modeling.NationalDatabase.Load() 在 Smellyriver.TankInspector.Modeling.NationalDatabase.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.NationalDatabase>.get_Value() 在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy)
在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() 在 Smellyriver.TankInspector.Modeling.Database.<get_Tanks>d__59.MoveNext() 在 System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
在 System.Linq.Enumerable.Count[TSource](IEnumerable1 source) 在 Smellyriver.TankInspector.Modeling.Database.LoadBenchmarkTanks() 在 Smellyriver.TankInspector.Modeling.Database.FullyLoad() 在 Smellyriver.TankInspector.Modeling.Database.Load(Boolean fullyLoad, Nullable1 currentDatabaseKey)
在 Smellyriver.TankInspector.MainWindowViewModel.<>c.b__79_0()
在 System.Threading.Tasks.Task.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()<---

2020-01-07 22:00:21,199 [1] ERROR Program - an first chance exception occurred:
System.InvalidOperationException: database load failed ---> System.AggregateException: 发生一个或多个错误。 ---> System.IO.FileNotFoundException: cannot find scripts/item_defs/vehicles/china/xmlref.xml in
在 Smellyriver.TankInspector.IO.PackageStream..ctor(String packageFile, String path)
在 Smellyriver.TankInspector.IO.PackageStream..ctor(IPackageIndexer indexer, String path)
在 Smellyriver.TankInspector.Modeling.Tank.Load()
在 Smellyriver.TankInspector.Modeling.Tank.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.Tank>.get_Value()
在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy) 在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
在 Smellyriver.TankInspector.Modeling.TechTree.BuildTechTree()
在 Smellyriver.TankInspector.Modeling.TechTree..ctor(NationalDatabase nation)
在 Smellyriver.TankInspector.Modeling.NationalDatabase.ResolveTechTree()
在 Smellyriver.TankInspector.Modeling.NationalDatabase.Load()
在 Smellyriver.TankInspector.Modeling.NationalDatabase.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.NationalDatabase>.get_Value()
在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy) 在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
在 Smellyriver.TankInspector.Modeling.Database.<get_Tanks>d__59.MoveNext()
在 System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() 在 System.Linq.Enumerable.Count[TSource](IEnumerable1 source)
在 Smellyriver.TankInspector.Modeling.Database.LoadBenchmarkTanks()
在 Smellyriver.TankInspector.Modeling.Database.FullyLoad()
在 Smellyriver.TankInspector.Modeling.Database.Load(Boolean fullyLoad, Nullable1 currentDatabaseKey) 在 Smellyriver.TankInspector.MainWindowViewModel.<>c.<BeginLoad>b__79_0() 在 System.Threading.Tasks.Task.InnerInvoke() 在 System.Threading.Tasks.Task.Execute() --- 内部异常堆栈跟踪的结尾 --- --- 内部异常堆栈跟踪的结尾 --- 在 Smellyriver.TankInspector.MainWindowViewModel.OnDatabaseLoaded() 2020-01-07 22:00:21,675 [1] ERROR Program - an first chance exception occurred: System.InvalidOperationException: database load failed ---> System.AggregateException: 发生一个或多个错误。 ---> System.IO.FileNotFoundException: cannot find scripts/item_defs/vehicles/china/xmlref.xml in 在 Smellyriver.TankInspector.IO.PackageStream..ctor(String packageFile, String path) 在 Smellyriver.TankInspector.IO.PackageStream..ctor(IPackageIndexer indexer, String path) 在 Smellyriver.TankInspector.Modeling.Tank.Load() 在 Smellyriver.TankInspector.Modeling.Tank.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.Tank>.get_Value() 在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy)
在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() 在 Smellyriver.TankInspector.Modeling.TechTree.BuildTechTree() 在 Smellyriver.TankInspector.Modeling.TechTree..ctor(NationalDatabase nation) 在 Smellyriver.TankInspector.Modeling.NationalDatabase.ResolveTechTree() 在 Smellyriver.TankInspector.Modeling.NationalDatabase.Load() 在 Smellyriver.TankInspector.Modeling.NationalDatabase.Smellyriver.Collection.ILazy<Smellyriver.TankInspector.Modeling.NationalDatabase>.get_Value() 在 Smellyriver.Collection.LazyDictionary3.<>c.<get_Values>b__9_0(TLazyValue lazy)
在 System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() 在 Smellyriver.TankInspector.Modeling.Database.<get_Tanks>d__59.MoveNext() 在 System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
在 System.Linq.Enumerable.Count[TSource](IEnumerable1 source) 在 Smellyriver.TankInspector.Modeling.Database.LoadBenchmarkTanks() 在 Smellyriver.TankInspector.Modeling.Database.FullyLoad() 在 Smellyriver.TankInspector.Modeling.Database.Load(Boolean fullyLoad, Nullable1 currentDatabaseKey)
在 Smellyriver.TankInspector.MainWindowViewModel.<>c.b__79_0()
在 System.Threading.Tasks.Task.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()
--- 内部异常堆栈跟踪的结尾 ---
--- 内部异常堆栈跟踪的结尾 ---
在 Smellyriver.TankInspector.MainWindowViewModel.OnDatabaseLoaded()
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

@LeoPardII
Copy link

Interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants