.layout() call runs "forever" even if timeout is specified
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.