[GH-ISSUE #1288] [Bug] Insert Screen Recording - Not Working (Frames not found) #947

Open
opened 2026-02-26 09:33:07 +03:00 by kerem · 4 comments
Owner

Originally created by @LazyEti on GitHub (Mar 15, 2024).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1288

Originally assigned to: @NickeManarin on GitHub.

Describe the bug
Hello, it seems like the "Insert Screen Recording" feature is not working at all on my end which makes it very difficult to edit footage after recording.

To Reproduce
Steps to reproduce the behavior:

  1. Create a recording.
  2. Add a new recording to it (Insert Screen Recording)
  3. When you end the 2nd recording, an error window appears saying that the frames files can't be found.

Expected behavior
No crash :')

Screenshots
error

Desktop (please complete the following information):

  • OS: Win 10.0.17763
  • V. 2.40.1

Additional context
I tried looking up the path and there's indeed no temp frames in the folder.
Tested on version 2.37.2 and 2.40.1 but the issue is happening on both.

Logs:
Could not find file 'C:\Users\LazyEti\AppData\Local\Temp\ScreenToGif\Recording\2024-03-15 06-31-53\1.png'.

at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at ScreenToGif.Util.Extensions.ImageExtensions.SourceFrom(String fileSource, Nullable1 size) in C:\Users\nicke\source\ScreenToGif\ScreenToGif.Util\Extensions\ImageExtensions.cs:line 17
at ScreenToGif.Windows.Other.Insert.Window_Loaded(Object sender, RoutedEventArgs e) in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Windows\Other\Insert.xaml.cs:line 277
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Originally created by @LazyEti on GitHub (Mar 15, 2024). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1288 Originally assigned to: @NickeManarin on GitHub. **Describe the bug** Hello, it seems like the "Insert Screen Recording" feature is not working at all on my end which makes it very difficult to edit footage after recording. **To Reproduce** Steps to reproduce the behavior: 1. Create a recording. 2. Add a new recording to it (Insert Screen Recording) 3. When you end the 2nd recording, an error window appears saying that the frames files can't be found. **Expected behavior** No crash :') **Screenshots** ![error](https://github.com/NickeManarin/ScreenToGif/assets/39376613/91beddc7-6d76-4185-8e4a-9b358bf83073) **Desktop (please complete the following information):** - OS: Win 10.0.17763 - V. 2.40.1 **Additional context** I tried looking up the path and there's indeed no temp frames in the folder. Tested on version 2.37.2 and 2.40.1 but the issue is happening on both. Logs: Could not find file 'C:\Users\LazyEti\AppData\Local\Temp\ScreenToGif\Recording\2024-03-15 06-31-53\1.png'. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at ScreenToGif.Util.Extensions.ImageExtensions.SourceFrom(String fileSource, Nullable`1 size) in C:\Users\nicke\source\ScreenToGif\ScreenToGif.Util\Extensions\ImageExtensions.cs:line 17 at ScreenToGif.Windows.Other.Insert.Window_Loaded(Object sender, RoutedEventArgs e) in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Windows\Other\Insert.xaml.cs:line 277 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) at System.Windows.Interop.HwndTarget.OnResize() at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Author
Owner

@NickeManarin commented on GitHub (Mar 24, 2024):

I'm unsure what's causing the frame to be missing.

Have you tried setting the cache folder in the exception list of your Anti-virus?

image

Or perhaps you can try using the memory cache option in Options > Recorder

image

<!-- gh-comment-id:2016877230 --> @NickeManarin commented on GitHub (Mar 24, 2024): I'm unsure what's causing the frame to be missing. Have you tried setting the cache folder in the exception list of your Anti-virus? ![image](https://github.com/NickeManarin/ScreenToGif/assets/14798947/c7c4d4e7-8a72-438f-85b8-59706e7be020) Or perhaps you can try using the memory cache option in Options > Recorder ![image](https://github.com/NickeManarin/ScreenToGif/assets/14798947/af0b5537-2418-456a-ad58-ffdae45f5dcd)
Author
Owner

@pawlos commented on GitHub (Mar 28, 2024):

@NickeManarin Actually I think the issue occurs when the memory cache is selected. In that case there are no files stored on the disk but the code assumes there are and they to move them and the exception happens. I'll try to see if there's a solution to that

<!-- gh-comment-id:2025621067 --> @pawlos commented on GitHub (Mar 28, 2024): @NickeManarin Actually I think the issue occurs when the memory cache is selected. In that case there are no files stored on the disk but the code assumes there are and they to move them and the exception happens. I'll try to see if there's a solution to that
Author
Owner

@LazyEti commented on GitHub (Jul 3, 2024):

Hey @NickeManarin sorry I've just seen this.
I was already using the Memory Cache option but swapping to "Save to file" fixed the issue!! Thanks a ton for the tip : )

@pawlos it seems like you're right, the software is trying to lookup the frame path and import them before they've been transferred from the cache file to the disk:
image
Still happening in 2.41 btw

<!-- gh-comment-id:2205809140 --> @LazyEti commented on GitHub (Jul 3, 2024): Hey @NickeManarin sorry I've just seen this. I was already using the Memory Cache option but swapping to "Save to file" fixed the issue!! Thanks a ton for the tip : ) @pawlos it seems like you're right, the software is trying to lookup the frame path and import them before they've been transferred from the cache file to the disk: ![image](https://github.com/NickeManarin/ScreenToGif/assets/39376613/bc85a8d2-4b11-44c3-9008-5b579243380c) Still happening in 2.41 btw
Author
Owner

@pawlos commented on GitHub (Jul 3, 2024):

@LazyEti yeah. I've tried looking at it to see if that's an easy fix but I think that's a bigger change at least with my knowledge of the system.

<!-- gh-comment-id:2206967309 --> @pawlos commented on GitHub (Jul 3, 2024): @LazyEti yeah. I've tried looking at it to see if that's an easy fix but I think that's a bigger change at least with my knowledge of the system.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#947
No description provided.