microsoft / microsoft/Microsoft.IO.RecyclableMemoryStream
System.ArgumentException: blocks contains buffers that are not BlockSize in length.
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 213
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 14
Description
Hi @benmwatson
What does this exception mean ?
Parameter name: blocks System.ArgumentException: blocks contains buffers that are not BlockSize in length.
Parameter name: blocks
at Microsoft.IO.RecyclableMemoryStreamManager.ReturnBlocks(List`1 blocks, Guid id, String tag) in /_/src/RecyclableMemoryStreamManager.cs:line 554
at Microsoft.IO.RecyclableMemoryStream.Dispose(Boolean disposing) in /_/src/RecyclableMemoryStream.cs:line 337
at Microsoft.IO.RecyclableMemoryStream.Finalize() in /_/src/RecyclableMemoryStream.cs:line 272
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading ReturnBlocks in src/RecyclableMemoryStreamManager.cs around line 554, then trace the Dispose and Finalize paths in src/RecyclableMemoryStream.cs around lines 337 and 272. Determine what the exception indicates from the reported stack trace and document the conditions that lead to it, including how users can identify the cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100