orleans icon indicating copy to clipboard operation
orleans copied to clipboard

System.Collections.BitArray Serializer bug with .net 10 - System.MissingFieldException : Field not found: 'System.Collections.BitArray.m_array'.

Open EricSites opened this issue 2 months ago • 1 comments

Getting this error while trying to get or send an object with a BitArray in it to an Orleans Grain using .net 10 with Microsoft Orleans 9.2.1:

Message:  System.MissingFieldException : Field not found: 'System.Collections.BitArray.m_array'.

Stack Trace:  BitArrayCodec.GetSetArray(BitArray bitArray) BitArray>.WriteField[TBufferWriter](Writer`1& writer, UInt32 fieldIdDelta, Type expectedType, BitArray value) MessageSerializer.Write(PipeWriter writer, Message message) Connection.ProcessOutgoing() <.cctor>b__4_0(Object state) --- End of stack trace from previous location ---

EricSites avatar Nov 14 '25 20:11 EricSites

Thank you for reporting, @EricSites! I have a fix in the .NET 10 PR here: https://github.com/dotnet/orleans/pull/9764

ReubenBond avatar Nov 14 '25 20:11 ReubenBond