Skip to content

Exception occurs when deserializing a huge file #43

@ishihara-ma

Description

@ishihara-ma

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the ReqIFSharp
  • I have searched open and closed issues to ensure it has not already been reported

Description

When I use the reqifsharp for deserialize a large ReqIF file, the program throw the exception.

It seems that the cause is that the position of the stream changes when the program reads the stream using ZipArchive().

I confirmed by debugging that the position of Stream does not return to 0 not only for ReqIF files but also for files with a large number of characters.

For example, is it possible to change the program to return the stream position to 0?

The sample file with the problem is attached below.

Thank you.

Steps to Reproduce

https://github.com/RHEAGROUP/reqifsharp/blob/development/ReqIFSharp/ReqIFDeserializer.cs#L240

System Configuration

sample-reqif file: sample.zip

  • ReqIFSharp version:
    • ReqIFSharp:
    • Other:
  • Environment (Operating system, version and so on):
  • .NET Framework version:.netstandard2.0
  • Additional information:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions