Errors when depicting some reactions

9 views
Skip to first unread message

Daniel Lowe

unread,
Mar 2, 2012, 9:01:22 AM3/2/12
to indigo-bugs
This occurs in beta9 but also occured in beta7

Indigo indigo = new Indigo();
IndigoRenderer renderer = new IndigoRenderer(indigo);
indigo.setOption("render-output-format", "png");
IndigoObject reaction = indigo.createReaction();
IndigoObject mol
=indigo.loadMolecule("NC1(CC2(C1)OCCO2)C2=CC=C(C=C2)C2=NC=1C=CN3C(C1C=C2C2=CC=CC=C2)=NN=C3NCCCN(C)C");
reaction.addProduct(mol);
reaction.layout();
renderer.renderToFile(reaction, "foo.png");

Exception in thread "main" com.ggasoftware.indigo.IndigoException:
pool: access to unused element 1
at com.ggasoftware.indigo.Indigo.checkResult(Indigo.java:64)

If the molecule's SMILES is changed to
NC1(CC2(C1)OCCO2)C2=CC=C(C=C2)C2=NC=1C=CN3C(C1C=C2C2=CC=CC=C2)=NN=C3NCCCNC
the error changes to :
Exception in thread "main" com.ggasoftware.indigo.IndigoException:
array: invalid index 5 (size=2)
at com.ggasoftware.indigo.Indigo.checkResult(Indigo.java:64)
Reply all
Reply to author
Forward
0 new messages