files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
32.96k stars 2.1k forks source link

Bug: System.TypeInitializationException: The type initializer for 'Files.App.Utils.FileTags.FileTagsDatabase' threw an exception. #15601

Closed sentry-io[bot] closed 1 week ago

sentry-io[bot] commented 2 weeks ago

Sentry Issue: FILES-APP-2B

System.Runtime.InteropServices.COMException: None
  ?, in Package IPackageStaticsMethods.get_Current(IObjectReference _obj)
  ?, in static FileTagsDatabase()

System.TypeInitializationException: The type initializer for 'Files.App.Utils.FileTags.FileTagsDatabase' threw an exception.
  ?, in static FileTagsHelper()+() => { }
  ?, in void ItemViewModel.SetFileTag(ListedItem item)
  ?, in async Task ItemViewModel.LoadExtendedItemPropertiesAsync(ListedItem item)+(?) => { }
  ?, in async Task<FilesystemResult> FilesystemTasks.Wrap(Func<Task> wrapped)
...
(1 additional frame(s) were not displayed)

System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
hishitetsu commented 2 weeks ago

This should no longer happen because it is related to now removed LiteDB.

yaira2 commented 2 weeks ago

Great!

yaira2 commented 1 week ago

We still have an issue in v3.4.18 but it's a different cause https://files-org.sentry.io/issues/5508591057/events/9a79b9451ec64f80ae8668cfe9dc5843/