#40 closed defect (fixed)
Parsing mmCIF crashes if struct_conn table present
Reported by: | Tom Goddard | Owned by: | Greg Couch |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Input/Output | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | chimera |
Description
Calling pdbio.parse_mmCIF_file() on 1a0m.cif from Python causes a crash due to an uncaught C++ exception, reported to the shell as
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: missing category: audit_conform on line 1065
There error does not seem to have anything to do with the audit_conform table. The file is parsed without errors if I remove the struct_conn table from 1a0m.cif. Also if I open a file without a struct_conn table such as 1a0k.cif then it works correctly. Also if I comment out
register_category("struct_conn",
[this] (bool in) {
parse_struct_conn(in/*_loop*/);
}, { "atom_site" });
in pdbio/pdbio/mmcif.cpp the files are read correctly. The error is not specific to 1a0m, any file with a struct_conn table crashes with the same error, for example, I tried 1jj2.cif.
Change History (2)
comment:1 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 7 years ago
Component: | mmCIF Reader/Writer → Input/Output |
---|
reducing # of categories, so lumping into I/O category
Fixed. Bug was in molecular library used to return molecules.