[GH-ISSUE #933] [BUG] When I want to save the gif. #718

Closed
opened 2026-02-26 09:32:24 +03:00 by kerem · 3 comments
Owner

Originally created by @YoucanBaby on GitHub (Jul 5, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/933

One or more errors occurred.
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action1 body) at ScreenToGif.ImageUtil.ImageMethods.PaintTransparentAndCut(ExportProject project, Color chroma, Int32 taskId, CancellationTokenSource tokenSource) at ScreenToGif.Util.EncodingManager.<Encode>d__27.MoveNext()

Index was outside the bounds of the array.
at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass1_1.<PaintTransparentAndCut>b__0(Int32 i) at System.Threading.Tasks.Parallel.<>c__DisplayClass17_01.b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )`
ScreenToGif.b__0

Originally created by @YoucanBaby on GitHub (Jul 5, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/933 One or more errors occurred. ` at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body) at ScreenToGif.ImageUtil.ImageMethods.PaintTransparentAndCut(ExportProject project, Color chroma, Int32 taskId, CancellationTokenSource tokenSource) at ScreenToGif.Util.EncodingManager.<Encode>d__27.MoveNext()` Index was outside the bounds of the array. ` at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass1_1.<PaintTransparentAndCut>b__0(Int32 i) at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)` ScreenToGif.<PaintTransparentAndCut>b__0
kerem 2026-02-26 09:32:24 +03:00
Author
Owner

@YoucanBaby commented on GitHub (Jul 5, 2021):

I solved it. This error occurred because of the inconsistent size of my pictures.

<!-- gh-comment-id:874104458 --> @YoucanBaby commented on GitHub (Jul 5, 2021): I solved it. This error occurred because of the inconsistent size of my pictures.
Author
Owner

@NickeManarin commented on GitHub (Jul 5, 2021):

Yes, that's it. But how did you create such a project, with multiple sized images?

<!-- gh-comment-id:874105568 --> @NickeManarin commented on GitHub (Jul 5, 2021): Yes, that's it. But how did you create such a project, with multiple sized images?
Author
Owner

@MaReGitHub commented on GitHub (Jul 26, 2024):

On my site this happened when I insert a "title picture" to my project at the beginning.

Do you have an idea how to solve?
2024-07-26 13_05_09-ScreenToGif • Editor

<!-- gh-comment-id:2252525927 --> @MaReGitHub commented on GitHub (Jul 26, 2024): On my site this happened when I insert a "title picture" to my project at the beginning. Do you have an idea how to solve? ![2024-07-26 13_05_09-ScreenToGif • Editor](https://github.com/user-attachments/assets/6edbbd18-8d96-46a3-9b07-764db23600fd)
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#718
No description provided.