[GH-ISSUE #968] [Bug] Crash when saving frames of different size #2780

Closed
opened 2026-03-01 19:02:33 +03:00 by kerem · 0 comments
Owner

Originally created by @szmabcd on GitHub (Aug 9, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/968

► Title -
Encode
▬ Message -
One or more errors occurred.
○ Type -
System.AggregateException
♦ [Version] Date/Hour -
[2.33.1] 08/09/2021 21:19:50
▲ Source -
mscorlib
▼ TargetSite -
Void ThrowIfExceptional(Boolean)
♠ StackTrace -
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.d__27.MoveNext()

▬▬ Message -
Index was outside the bounds of the array.
○○ Type -
System.IndexOutOfRangeException
▲▲ Source -
ScreenToGif
▼▼ TargetSite -
Void b__0(Int32)
♠♠ StackTrace -
at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass1_1.b__0(Int32 i)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )


► Title -
Encode
▬ Message -
One or more errors occurred.
○ Type -
System.AggregateException
♦ [Version] Date/Hour -
[2.33.1] 08/09/2021 21:21:48
▲ Source -
mscorlib
▼ TargetSite -
Void ThrowIfExceptional(Boolean)
♠ StackTrace -
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.d__27.MoveNext()

▬▬ Message -
Index was outside the bounds of the array.
○○ Type -
System.IndexOutOfRangeException
▲▲ Source -
ScreenToGif
▼▼ TargetSite -
Void b__0(Int32)
♠♠ StackTrace -
at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass1_1.b__0(Int32 i)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )


► Title -
Encode
▬ Message -
One or more errors occurred.
○ Type -
System.AggregateException
♦ [Version] Date/Hour -
[2.25] 08/09/2021 22:13:59
▲ Source -
mscorlib
▼ TargetSite -
Void ThrowIfExceptional(Boolean)
♠ StackTrace -
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(List`1 listToEncode, Color transparent, Int32 id, CancellationTokenSource tokenSource)
at ScreenToGif.Windows.Other.Encoder.d__26.MoveNext()

▬▬ Message -
Index was outside the bounds of the array.
○○ Type -
System.IndexOutOfRangeException
▲▲ Source -
ScreenToGif
▼▼ TargetSite -
Void b__0(Int32)
♠♠ StackTrace -
at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass0_1.b__0(Int32 i)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )


► Title -
Encode
▬ Message -
One or more errors occurred.
○ Type -
System.AggregateException
♦ [Version] Date/Hour -
[2.30] 08/09/2021 22:14:50
▲ Source -
mscorlib
▼ TargetSite -
Void ThrowIfExceptional(Boolean)
♠ StackTrace -
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.d__27.MoveNext()

▬▬ Message -
Index was outside the bounds of the array.
○○ Type -
System.IndexOutOfRangeException
▲▲ Source -
ScreenToGif
▼▼ TargetSite -
Void b__0(Int32)
♠♠ StackTrace -
at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass1_1.b__0(Int32 i)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )


► Title -
Encode
▬ Message -
One or more errors occurred.
○ Type -
System.AggregateException
♦ [Version] Date/Hour -
[2.30] 08/09/2021 22:15:03
▲ Source -
mscorlib
▼ TargetSite -
Void ThrowIfExceptional(Boolean)
♠ StackTrace -
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.d__27.MoveNext()

▬▬ Message -
Index was outside the bounds of the array.
○○ Type -
System.IndexOutOfRangeException
▲▲ Source -
ScreenToGif
▼▼ TargetSite -
Void b__0(Int32)
♠♠ StackTrace -
at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass1_1.b__0(Int32 i)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )


Originally created by @szmabcd on GitHub (Aug 9, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/968 ► Title - Encode ▬ Message - One or more errors occurred. ○ Type - System.AggregateException ♦ [Version] Date/Hour - [2.33.1] 08/09/2021 21:19:50 ▲ Source - mscorlib ▼ TargetSite - Void ThrowIfExceptional(Boolean) ♠ StackTrace - 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() ▬▬ Message - Index was outside the bounds of the array. ○○ Type - System.IndexOutOfRangeException ▲▲ Source - ScreenToGif ▼▼ TargetSite - Void <PaintTransparentAndCut>b__0(Int32) ♠♠ StackTrace - 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>) ---------------------------------- ► Title - Encode ▬ Message - One or more errors occurred. ○ Type - System.AggregateException ♦ [Version] Date/Hour - [2.33.1] 08/09/2021 21:21:48 ▲ Source - mscorlib ▼ TargetSite - Void ThrowIfExceptional(Boolean) ♠ StackTrace - 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() ▬▬ Message - Index was outside the bounds of the array. ○○ Type - System.IndexOutOfRangeException ▲▲ Source - ScreenToGif ▼▼ TargetSite - Void <PaintTransparentAndCut>b__0(Int32) ♠♠ StackTrace - 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>) ---------------------------------- ► Title - Encode ▬ Message - One or more errors occurred. ○ Type - System.AggregateException ♦ [Version] Date/Hour - [2.25] 08/09/2021 22:13:59 ▲ Source - mscorlib ▼ TargetSite - Void ThrowIfExceptional(Boolean) ♠ StackTrace - 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(List`1 listToEncode, Color transparent, Int32 id, CancellationTokenSource tokenSource) at ScreenToGif.Windows.Other.Encoder.<Encode>d__26.MoveNext() ▬▬ Message - Index was outside the bounds of the array. ○○ Type - System.IndexOutOfRangeException ▲▲ Source - ScreenToGif ▼▼ TargetSite - Void <PaintTransparentAndCut>b__0(Int32) ♠♠ StackTrace - at ScreenToGif.ImageUtil.ImageMethods.<>c__DisplayClass0_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>) ---------------------------------- ► Title - Encode ▬ Message - One or more errors occurred. ○ Type - System.AggregateException ♦ [Version] Date/Hour - [2.30] 08/09/2021 22:14:50 ▲ Source - mscorlib ▼ TargetSite - Void ThrowIfExceptional(Boolean) ♠ StackTrace - 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() ▬▬ Message - Index was outside the bounds of the array. ○○ Type - System.IndexOutOfRangeException ▲▲ Source - ScreenToGif ▼▼ TargetSite - Void <PaintTransparentAndCut>b__0(Int32) ♠♠ StackTrace - 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>) ---------------------------------- ► Title - Encode ▬ Message - One or more errors occurred. ○ Type - System.AggregateException ♦ [Version] Date/Hour - [2.30] 08/09/2021 22:15:03 ▲ Source - mscorlib ▼ TargetSite - Void ThrowIfExceptional(Boolean) ♠ StackTrace - 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() ▬▬ Message - Index was outside the bounds of the array. ○○ Type - System.IndexOutOfRangeException ▲▲ Source - ScreenToGif ▼▼ TargetSite - Void <PaintTransparentAndCut>b__0(Int32) ♠♠ StackTrace - 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>) ----------------------------------
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#2780
No description provided.