Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.layout() call runs "forever" even if timeout is specified #724

Open
flc opened this issue May 3, 2022 · 0 comments · May be fixed by #790
Open

.layout() call runs "forever" even if timeout is specified #724

flc opened this issue May 3, 2022 · 0 comments · May be fixed by #790
Assignees
Projects

Comments

@flc
Copy link

flc commented May 3, 2022

The problem can be reproduced with the following code:

import indigo

ind = indigo.Indigo()
ind.setOption('timeout', 1000)
ind.setOption('layout-max-iterations', 1)
ind.setOption('smart-layout', False)

smiles = "O=[W]12345678(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)(=O)[W][W]1[W]2[W]3[W]4[W]5[W]6[W]7[W]8"

imol = ind.loadMolecule(smiles)
imol.layout()
# and now we wait forever...

Python version:
Python 3.9.12

Indigo version:
1.6.1.0-g5dbb0c0f4-x86_64-linux-gnu-10.2.1

I know this is a really silly structure/SMILES but we actually encountered it. :)

Thank you!

@flc flc added the Bug label May 3, 2022
@mkviatkovskii mkviatkovskii self-assigned this May 4, 2022
@mkviatkovskii mkviatkovskii added this to To do in Indigo via automation May 4, 2022
@mkviatkovskii mkviatkovskii added this to the indigo-1.7 milestone May 4, 2022
@mkviatkovskii mkviatkovskii removed this from the indigo-1.7 milestone May 19, 2022
@khyurri khyurri linked a pull request Jul 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Indigo
  
Product Backlog
Development

Successfully merging a pull request may close this issue.

2 participants