Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

RDI error in v5.0.0.2
ojamte
#1 Posted : Monday, March 4, 2024 5:12:01 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/25/2015(UTC)
Posts: 4
Location: Sweden

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
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)


1 user thanked ojamte for this useful post.
michaelkroes on 3/4/2024(UTC)
ojamte
#2 Posted : Monday, March 4, 2024 5:15:11 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/25/2015(UTC)
Posts: 4
Location: Sweden

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
If I disable RDI, then the tests works.
michaelkroes
#3 Posted : Monday, March 4, 2024 5:20:36 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
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?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download