files-community / Files

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

Bug: OutOfMemoryException in Preview Pane #14791

Open yaira2 opened 6 months ago

yaira2 commented 6 months ago

Description

ExceptionHelpers.g__Throw|39_0 (Int32 hr)

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.

WinRT
ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0 (Int32 hr)
ABI.Microsoft.UI.Xaml.Controls
IMediaPlayerElementMethods.set_Source (IObjectReference _obj, IMediaPlaybackSource value)
Files.App.UserControls.FilePreviews.MediaPreview
MediaPreview_obj1_Bindings.Loading (FrameworkElement src, Object data)
WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_global__Microsoft_UI_Xaml_FrameworkElement__object_
EventState.<GetEventInvoke>b__1_0 (FrameworkElement sender, Object args)
ABI.Windows.Foundation
TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi] (Void* thisPtr, TSenderAbi sender, TResultAbi args)
WinRT
ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0 (Int32 hr)
ABI.Windows.ApplicationModel.Core
IUnhandledErrorMethods.Propagate (IObjectReference _obj)
Microsoft.AppCenter.Utils
ApplicationLifecycleHelperWinUI.<ctor>b__0_3 (Object sender, UnhandledErrorDetectedEventArgs eventArgs)

Steps To Reproduce

  1. Select media file (it's hard to know how large media file should be)
  2. Try previewing it in preview pane

Requirements

-

Files Version

v3.2.2

Windows Version

Windows 11

Log File

-

hishitetsu commented 6 months ago

One possibility is previewing media files via MTP. However, it is not appropriate to uniformly disable previews because MTP may or may not support streaming on different devices.

sentry-io[bot] commented 2 months ago

Sentry Issue: FILES-APP-A

yaira2 commented 1 week ago

It looks like this is still occuring