BitooBitImageEditor icon indicating copy to clipboard operation
BitooBitImageEditor copied to clipboard

uncatched Exception on finger painting

Open andimairitsch opened this issue 4 years ago • 0 comments

Hi, i really like your simple ImageEditor and i wanted to use it in one of my current projects but when i draw multiple lines i often get a "System.InvalidOperationException: Collection was modified; enumeration operation may not execute."

Unfortunately the exception is not catchable by sourrounding the ImageEditor.Instance.GetEditedImage method.

image

Stracktrace:

at System.Collections.Generic.Dictionary2+ValueCollection+Enumerator[TKey,TValue].MoveNext () [0x00013] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:1613 at BitooBitImageEditor.Helper.SKCanvasExtension.DrawPath (SkiaSharp.SKCanvas canvas, System.Collections.Generic.List1[T] completedPaths, System.Collections.Generic.Dictionary`2[TKey,TValue] inProgressPaths) [0x000ce] in C:\BitooBitImageEditor-master\src\BitooBitImageEditor\Helper\SKCanvasExtension.cs:85

andimairitsch avatar Jul 22 '21 18:07 andimairitsch