Document crashes -- reading past end of stream

ERROR: on file #7141 C:\resumes\zres\ZPER0M76HQ31VKZZTXR3.doc
Unable to read beyond the end of the stream.
mscorlib
EndOfFile
at System.IO.\_\_Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadUInt16()
at x6c95d9cf46ff5f25.xa8866d7566da0aa2.xdb264d863790ee7b()
at x38a89dee67fc7a16.xdd1b8f14cc8ba86d.x29d047c5edca4872(xa8866d7566da0aa2 xe134235b3526fa75, Boolean x3d70d9580008e911)
at x38a89dee67fc7a16.xdd1b8f14cc8ba86d.x0e8c7099554b9940(xa8866d7566da0aa2 xe134235b3526fa75, xa2745adfabe0c674 x0ceec69a97f73617)
at x38a89dee67fc7a16.xdd1b8f14cc8ba86d.xbb061e7ac9208b52(Byte[] x43e181e083db6cdf)
at x38a89dee67fc7a16.xdd1b8f14cc8ba86d.x16a7fb03c627ebfb(Byte[] x43e181e083db6cdf)
at x639ad3f66698fe1b.x4cefe4b20532460c.xdff649fcfec740bd()
at x639ad3f66698fe1b.x4cefe4b20532460c…ctor(x21f0d20d41203be1 context, Shape shape)
at x639ad3f66698fe1b.x5fbed40a77205d71.x93386efb383a4e44(ShapeBase x8739b0dd3627f37e)
at x639ad3f66698fe1b.x5fbed40a77205d71.x6210059f049f0d48(ShapeBase x5770cdefd8931aa9, Boolean xa551490e89134536)
at x639ad3f66698fe1b.xc6381ce957044385.xa9a6cebffd173ca3(ShapeBase x5770cdefd8931aa9)
at x639ad3f66698fe1b.xc6381ce957044385.x69310f6cbc6d8f29(ShapeBase x5770cdefd8931aa9)
at x639ad3f66698fe1b.xc6381ce957044385.x92e9ca271095fc22(ShapeBase x5770cdefd8931aa9)
at x639ad3f66698fe1b.x93beff1c2303c6fc.VisitShapeStart(Shape shape)
at Aspose.Words.Drawing.Shape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at x639ad3f66698fe1b.x93beff1c2303c6fc.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveFormat xd003f66121eb36a0)
at Aspose.Words.Document.Save(Stream stream, SaveFormat saveFormat)

Hi,

I presume you save the document to RTF because this is the only format where I succeeded to reproduce the error. Please specify it to make sure. I have logged the issue as #1526 and we will try to resolve it shortly.

Hi,

I have fixed this issue and the fix will be included in the forthcoming release.

Fixed in Aspose.Words 4.2.1.

The URL for download is
https://downloads.aspose.com/words/net

Best regards,