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
Core dump when calling MolFromInchi #1206
Comments
On the other hand it's possible to convert this Inchi to InchiKey and google it. The only result gives this: |
I agree that the fact that Indigo also seg faults indicates that the problem is likely in the InChI library itself. Given that the problem is likely in the InChI library, I don't think there's anything that the RDKit can really do about it. But I'll look into it. If you haven't already: it would be worth reporting the crash to the InChI folks. |
I did via twitter as they don't have any other channel. I'm not a chemistry expert but would it be possible to predict this problem before feeding this to inchi lib? |
Ok, I found the crash and have a simple fix that requires a patch to the inchi code. Now it just fails instead of failing and generating a seg fault. I'll get that committed (though it will likely only work when InChI is downloaded by the RDKit build. I still need to figure that out). I'll also see if I can figure out who to send the patch to. |
Great, I always try to use the download-inchi.sh script where I can (I can't use it everywhere because it uses wget, it would be sooo much better if it tried wget OR curl instead), so this will work for me. Out of curiosity, can you paste a link to the commit? |
It will be linked here automatically after I make it |
Perfect, thanks! |
Hi - thanks for the twitter notification. If you could send the issue/patch to the inchi-discuss list on sourceforge that's probably best, or mail me at richard at inchi-trust org |
We think this is fixed in 1.05, publicly released shortly (final review on inchi-discuss to 10 Jan 2017 if you want to take a look) |
Nice, thanks. Would it be possible to get a patch I could apply to earlier versions to prevent the crash? |
@kiddr : it looks like a fairly large number of changes have been made to the InChI distribution. Certainly the new zips are laid out differently than the old ones and no longer build with the RDKit. |
@greglandrum , you said you have a simple fix for rdkit. Can you share it? |
Yeah, sorry I haven't done that yet. I was trying to get it "right" and then I got distracted by the holidays.
|
Great, thanks! |
Please let me know if that works for you. |
Will do. |
Hi,
I'm using RDkit version
2016.09.2
:Compiled with InChI support. Now for this InChI string:
RDKit crashes (Seg fault):
The same thing happens using the indigo toolkit:
So I suspect, that the crash may be inside InChI library. But is there any way to protect from this? With the Seg fault there is no possibility to catch anything and properly handle this error.
The text was updated successfully, but these errors were encountered: