You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor clockwiseOrderedNeighbors() to avoid NaN SEGV
Although the SEGV when coordinates are NaN has already been
bypassed, I refactored this function when trying to understand
what it did. I find this version more readable, it also happens
to be more efficient (although that probably doesn't matter
with 3-5 substituents).
This one was reported by @lucasmorin222 in the RDKit tracker (rdkit/rdkit#4845), but I've confirmed that it's a coordgen problem.
I don't have a straight reproducible for coordgen, but this bit of C++ using RDKit+Coordgen results in a segfault:
The crash occurs here:
https://github.com/schrodinger/coordgenlibs/blob/master/sketcherMinimizerAtom.cpp#L377
because
lastPoppedIndex
is 1 andneighs.size()
is 1.I'll do a PR.
The text was updated successfully, but these errors were encountered: