Hello!. yes I upgraded to 0.20 yesterday. It’s a small navigation app, no backend services or a lot animations. Added the VideoPage just a few hours ago and the OutOfMemoryException has been happening since yesterday. I don´t think they´re related.
System.OutOfMemoryException occured.
at System.Windows.Media.Renderer.Render(IntPtr pRenderTarget, Channel channel, Visual visual, Int32 width, Int32 height, Double dpiX, Double dpiY, Matrix worldTransform, Rect windowClip)
at System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual visual, Matrix worldTransform, Rect windowClip)
at System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual visual)
at System.Windows.Media.Imaging.RenderTargetBitmap.Render(Visual visual)
at Fuse.Video.WPF.Video.UpdateTexture(Int32 textureHandle)
at Fuse.Video.Graphics.CIL.VideoImpl.UpdateTexture(VideoHandle handle, Int32 textureHandle)
at Fuse.Controls.VideoImpl.CIL.VideoPlayer.Update() in C:\ProgramData\Uno\Packages\Fuse.Controls.Video\0.29.22\CIL\$.uno:line 164
at Fuse.Controls.VideoImpl.GraphicsVideoService.Fuse.Controls.VideoImpl.IVideoService.Update() in C:\ProgramData\Uno\Packages\Fuse.Controls.Video\0.29.22\$.uno:line 666
at Fuse.Controls.VideoImpl.VideoVisual.OnUpdate() in C:\ProgramData\Uno\Packages\Fuse.Controls.Video\0.29.22\$.uno:line 1052
at Fuse.UpdateListener.Invoke() in C:\ProgramData\Uno\Packages\FuseCore\0.29.22\$.uno:line 9084
at Fuse.UpdateManager.Update(Stage stage) in C:\ProgramData\Uno\Packages\FuseCore\0.29.22\$.uno:line 9361
Thanks for the details. As far as I can tell from my debugging and profiling, Video does not leak memory. The OutOfMemoryException might trigger in Video since it probably allocates a big chunk of memory when it renders. I suspect that the leak is somewhere else and releated to invalidation of the UI. Since Video has to invalidate itself everytime a new video frame is available (typically 24fps), parts of the UI might also redraw. So its not a suprise that it does not happen when removing video since then invalidation might just happen once per reload in preview and not 24 times per second.
I saw now that you have already uploaded your project. Do you get the out of memory exception when just leaving the app running or right after a reload?
And also, how much memory does your computer have?
I have confirmed that there is a memoryleak on windows. The leak is in the lib we use for video playback in .Net. I have not been able to reproduce on android.
We have planned a fix for .Net, but its low priority so there is no specific ETAs on that.