2017-12-09 21:47:23:990] Error|BackgroundWorker.OnDoWork => ShokoServer.WorkerSetupDB_DoWork => DatabaseFactory.InitDB DATABASE ERROR: 74.2 [UpdateAllStats] | System.NullReferenceException: Object reference not set to an instance of an object.
at Shoko.Server.Models.SVR_AniDB_Anime.GetDateTimeUpdated() in C:\projects\jmmserver\Shoko.Server\Models\SVR_AniDB_Anime.cs:line 1970
at Shoko.Server.Extensions.ModelClients.ToClient(SVR_AniDB_Anime anime) in C:\projects\jmmserver\Shoko.Server\Extensions\ModelClients.cs:line 30
at Shoko.Server.Models.SVR_AniDB_Anime.GenerateContract(List`1 titles, DefaultAnimeImages defaultImages, List`1 characters, IEnumerable`1 movDbFanart, IEnumerable`1 tvDbFanart, IEnumerable`1 tvDbBanners) in C:\projects\jmmserver\Shoko.Server\Models\SVR_AniDB_Anime.cs:line 1519
at Shoko.Server.Models.SVR_AniDB_Anime.GenerateContract(ISessionWrapper session, List`1 titles) in C:\projects\jmmserver\Shoko.Server\Models\SVR_AniDB_Anime.cs:line 1502
at Shoko.Server.Models.SVR_AniDB_Anime.UpdateContractDetailed(ISessionWrapper session) in C:\projects\jmmserver\Shoko.Server\Models\SVR_AniDB_Anime.cs:line 1723
at Shoko.Server.Models.SVR_AnimeSeries.UpdateContract(Boolean onlystats) in C:\projects\jmmserver\Shoko.Server\Models\SVR_AnimeSeries.cs:line 767
at Shoko.Server.Repositories.Cached.GroupFilterRepository.CreateOrVerifyDirectoryFilters(Boolean frominit, HashSet`1 tags, HashSet`1 airdate, SortedSet`1 season) in C:\projects\jmmserver\Shoko.Server\Repositories\Cached\GroupFilterRepository.cs:line 395
at Shoko.Server.Repositories.Cached.GroupFilterRepository.CreateOrVerifyLockedFilters() in C:\projects\jmmserver\Shoko.Server\Repositories\Cached\GroupFilterRepository.cs:line 250
at Shoko.Server.Databases.BaseDatabase`1.ExecuteDatabaseFixes() in C:\projects\jmmserver\Shoko.Server\Databases\BaseDatabase.cs:line 142
[2017-12-09 21:47:23:990] Error|BackgroundWorker.OnDoWork => ShokoServer.WorkerSetupDB_DoWork => DatabaseFactory.InitDB Could not init database: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.Window.get_CriticalHandle()
at System.Windows.MessageBox.Show(Window owner, String messageBoxText, String caption, MessageBoxButton button, MessageBoxImage icon)
at Shoko.UI.MainWindow.<SubscribeEvents>b__8_2(Object sender, ErrorEventArgs args) in C:\projects\jmmserver\Shoko.UI\MainWindow.xaml.cs:line 193
at Shoko.Server.Utils.ShowErrorMessage(String title, String msg) in C:\projects\jmmserver\Shoko.Server\Utils.cs:line 439
at Shoko.Server.Databases.DatabaseFactory.InitDB(String& errorMessage) in C:\projects\jmmserver\Shoko.Server\Databases\DatabaseFactory.cs:line 115