I'm using the "Magick.NET-Q8-x64.7.0.0.0011" package and getting an ArgumentOutOfRangeException while reading ExifProfile.Values. The Message is:
> Number was less than the array's lower bound in the first dimension.
Parameter name: srcIndex
The stack trace is:
```
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at ImageMagick.ExifReader.GetBytes(UInt32 length)
at ImageMagick.ExifReader.CreateValue()
at ImageMagick.ExifReader.AddValues(List`1 values, UInt32 index)
at ImageMagick.ExifReader.GetThumbnail(UInt32 offset)
at ImageMagick.ExifReader.Read(Byte[] data)
at ImageMagick.ExifProfile.Initialize()
at ImageMagick.ExifProfile.get_Values()
```
I'm guessing that part of the problem is that this._Index (in ExifReader.GetBytes) is set to 4294901766 when it blows up (length is 65535). Is this maybe a 64-bit issue? I'm going to see if I can test with the 32-bit version.
I'm also attaching the image that it's blowing up on.
Comments: Quick update, using any other flavors (32/64 bit, Q8/Q16/Q16-HDRI) didn't seem to help it at all. Can you think of a workaround here?
> Number was less than the array's lower bound in the first dimension.
Parameter name: srcIndex
The stack trace is:
```
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at ImageMagick.ExifReader.GetBytes(UInt32 length)
at ImageMagick.ExifReader.CreateValue()
at ImageMagick.ExifReader.AddValues(List`1 values, UInt32 index)
at ImageMagick.ExifReader.GetThumbnail(UInt32 offset)
at ImageMagick.ExifReader.Read(Byte[] data)
at ImageMagick.ExifProfile.Initialize()
at ImageMagick.ExifProfile.get_Values()
```
I'm guessing that part of the problem is that this._Index (in ExifReader.GetBytes) is set to 4294901766 when it blows up (length is 65535). Is this maybe a 64-bit issue? I'm going to see if I can test with the 32-bit version.
I'm also attaching the image that it's blowing up on.
Comments: Quick update, using any other flavors (32/64 bit, Q8/Q16/Q16-HDRI) didn't seem to help it at all. Can you think of a workaround here?