Code:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SixLabors.ImageSharp.PixelFormats.Rgba32.ToRgba32(SixLabors.ImageSharp.PixelFormats.Rgba32 ByRef)
at SixLabors.ImageSharp.PixelFormats.PixelOperations`1[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]].UnpackIntoRgbPlanes(System.Span`1<Single>, System.Span`1<Single>, System.Span`1<Single>, System.ReadOnlySpan`1<SixLabors.ImageSharp.PixelFormats.Rgba32>)
at SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.SpectralConverter`1[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]].ConvertStride(Int32)
at SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.HuffmanScanEncoder.EncodeScanBaselineInterleaved[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.JpegFrame, SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.SpectralConverter`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, System.Threading.CancellationToken)
at SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.HuffmanScanEncoder.EncodeScanBaselineInterleaved[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Formats.Jpeg.JpegEncodingColor, SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.JpegFrame, SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.SpectralConverter`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, System.Threading.CancellationToken)
at SixLabors.ImageSharp.Formats.Jpeg.JpegEncoderCore.WriteHuffmanScans[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.JpegFrame, SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.JpegFrameConfig, SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.SpectralConverter`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder.HuffmanScanEncoder, System.Threading.CancellationToken)
at SixLabors.ImageSharp.Formats.Jpeg.JpegEncoderCore.Encode[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Image`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, System.IO.Stream, System.Threading.CancellationToken)
at SixLabors.ImageSharp.Formats.Jpeg.JpegEncoder.Encode[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Image`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, System.IO.Stream, System.Threading.CancellationToken)
at SixLabors.ImageSharp.Formats.ImageEncoder.EncodeWithSeekableStream[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Image`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, System.IO.Stream, System.Threading.CancellationToken)
at SixLabors.ImageSharp.Formats.ImageEncoder.Encode[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Image`1<SixLabors.ImageSharp.PixelFormats.Rgba32>, System.IO.Stream)
at SixLabors.ImageSharp.Image+EncodeVisitor.Visit[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]](SixLabors.ImageSharp.Image`1<SixLabors.ImageSharp.PixelFormats.Rgba32>)
at SixLabors.ImageSharp.Image`1[[SixLabors.ImageSharp.PixelFormats.Rgba32, SixLabors.ImageSharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13]].Accept(SixLabors.ImageSharp.Advanced.IImageVisitor)
at SixLabors.ImageSharp.Advanced.AdvancedImageExtensions.AcceptVisitor(SixLabors.ImageSharp.Image, SixLabors.ImageSharp.Advanced.IImageVisitor)
at SixLabors.ImageSharp.Image.Save(System.IO.Stream, SixLabors.ImageSharp.Formats.IImageEncoder)
at SixLabors.ImageSharp.ImageExtensions.Save(SixLabors.ImageSharp.Image, System.String, SixLabors.ImageSharp.Formats.IImageEncoder)
at SixLabors.ImageSharp.ImageExtensions.Save(SixLabors.ImageSharp.Image, System.String)
at Radar.Radar.GenerateMapTexture()