Daily Usage Issues

RDI error in v5.0.0.2

Started by ojamte on 1,489 views

I get this error on mutliple tests.

System.ArgumentException: The output byte buffer is too small to contain the encoded data, encoding codepage '65001' and fallback 'System.Text.EncoderReplacementFallback'. (Parameter 'bytes')
at System.Text.Encoding.ThrowBytesOverflow()
at System.Text.Encoding.ThrowBytesOverflow(EncoderNLS encoder, Boolean nothingEncoded)
at System.Text.Encoding.GetBytesWithFallback(ReadOnlySpan`1 chars, Int32 originalCharsLength, Span`1 bytes, Int32 originalBytesLength, EncoderNLS encoder)
at System.Text.Encoding.GetBytesWithFallback(Char* pOriginalChars, Int32 originalCharCount, Byte* pOriginalBytes, Int32 originalByteCount, Int32 charsConsumedSoFar, Int32 bytesWrittenSoFar)
at System.Text.UTF8Encoding.GetBytes(String s, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.ReflectionTypeIdGenerator.addStringToHashAsUTF8(FNV64& hash, String str)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.ReflectionTypeIdGenerator.GenerateTypeId(Type type)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.ReflectionTypeIdGenerator.GenerateTypeId(Type type)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.RdiSession.resolveTypeId(Type type)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.RdiSession.GetTypeHandlingStrategyForObject(Object value)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.MemoryMappedLog.LogObjectValue(Object value, Int32 componentMappingId, UInt32 rdiDataPointId)
at nCrunch.TestRuntime.DotNetCore.RuntimeDataInspection.RdiEventListener.NCrunchLogWithReturnObject(Object value, Int32 componentMappingId, UInt32 rdiDataPointId)


If I disable RDI, then the tests works.
Hi thanks for taking the time to test RDI and reporting the issue you encountered. We appreciate the feedback!

Is there a way for you to reproduce this in a small unit test?

Post a reply

Log in to reply.