Skip to content

OpenStudio gbXML ReverseTranslator crash on file from ArchiCad/StruSoft #5234

@macumber

Description

@macumber

Issue overview

User reported crash of OpenStudio Application when importing gbXML file from ArchiCad/StruSoft. File is attached to original issue openstudiocoalition/OpenStudioApplication#726

Current Behavior

The date format in the gbXML file may be invalid according to the schema. This generates an assertion/crash in the gbXML ReverseTranslator::translateSchedule.

Expected Behavior

It would be better if the ReverseTranslator skipped invalid elements rather than crashing.

Steps to Reproduce

Use ReverseTranslator to convert the gbXML file https://github.com/user-attachments/files/16567495/M-K.OS.test.file.xml.zip to OpenStudio

Possible Solution

Skip importing invalid elements rather than crash or provide alternate method to handle invalid elements.

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version):
  • Version of OpenStudio (if using an intermediate build, include SHA):

Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions