this is the error details: File: C:\Program Files\paint.net\Effects\ErrorDiffusion - Copy.dll
Effect Name: ErrorDiffusionDithering.ErrorDiffusionDitheringEffect
Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception
---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ErrorDiffusionDithering.Palette.FromSurface(Surface surface, Int32 paletteSize)
at ErrorDiffusionDithering.ErrorDiffusionDitheringEffect.Render(Surface dst, Surface src, PdnRegion selection, Rectangle rect)
at ErrorDiffusionDithering.ErrorDiffusionDitheringEffect.OnRender(Rectangle[] renderRects, Int32 startIndex, Int32 length)
at PaintDotNet.Effects.Effect`1.Render(EffectConfigToken token, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length) in D:\src\pdn\src\Effects.Core\Effects\Effect`1.cs:line 103
at PaintDotNet.Effects.Effect.ClassicEffectRenderer.Render(ReadOnlySpan`1 renderRects) in D:\src\pdn\src\Effects.Core\Effects\Effect.cs:line 578
at PaintDotNet.Effects.ClassicEffectDriver.OnRendererRender(IClassicEffectRenderer renderer, ILockedBitmap`1 dstBitmap, ReadOnlySpan`1 renderRects) in D:\src\pdn\src\PaintDotNet\Effects\ClassicEffectDriver.cs:line 95
at PaintDotNet.Effects.EffectDriver`1.RenderWithClipMask(PooledNativeList`1 rois, Result`1 lazyClipMaskRenderer) in D:\src\pdn\src\PaintDotNet\Effects\EffectDriver`1.cs:line 346
at PaintDotNet.Effects.EffectDriver`1.RendererContext.RenderTile(Int32 tileIndex) in D:\src\pdn\src\PaintDotNet\Effects\EffectDriver`1.cs:line 254
at PaintDotNet.Effects.EffectDriver`1.RendererContext.RenderNextTile() in D:\src\pdn\src\PaintDotNet\Effects\EffectDriver`1.cs:line 249
at PaintDotNet.Effects.EffectDriver`1.<>c__DisplayClass51_0.<ThreadFunction>b__0() in D:\src\pdn\src\PaintDotNet\Effects\EffectDriver`1.cs:line 384
--- End of inner exception stack trace ---
at PaintDotNet.Effects.EffectDriver`1.DrainExceptions() in D:\src\pdn\src\PaintDotNet\Effects\EffectDriver`1.cs:line 528
at PaintDotNet.Effects.EffectDriver`1.Join() in D:\src\pdn\src\PaintDotNet\Effects\EffectDriver`1.cs:line 519
at PaintDotNet.Menus.EffectMenuBase.DoEffect(IEffect effect, EffectConfigToken token, Result`1 lazyAllRenderScans, Result`1 lazyRemainingRenderScans, Surface originalSurface, Exception& exception) in D:\src\pdn\src\PaintDotNet\Menus\EffectMenuBase.cs:line 1601