Skip to content

Memory exception while rendering a RXN file as CDXML #9

@abhimanyusirohi

Description

@abhimanyusirohi

I think the code that renders a reaction file to CDXML is missing from: "indigo/render2d/src/render_cdxml.cpp".

The method RenderParamCdxmlInterface::render is responsible for rendering CDXML format for both molecules and reactions but the code only considers params.mols structure. There is no usage of params.rxns that contains reaction components.

To reproduce:

  • Read a reaction file
  • set indigoSetOption("render-output-format", "cdxml");
  • Write a CDXML file using indigoRender or indigoRenderToFile
  • Memory exception occurs. Fails at (_getBounds(params, mols[i]->asMolecule(), p.str_min, p.str_max, p.scale);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions