Bugs item #3376708, was opened at 2011-07-24 19:47
Message generated for change (Tracker Item Submitted) made by mkjensen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3376708&group_id=40728

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library Functions
Group: 2.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Martin Kamp Jensen (mkjensen)
Assigned to: Nobody/Anonymous (nobody)
Summary: OBMol.delete() crash in native code if containing conformers

Initial Comment:
If I load a PDB molecule and afterwards load an XTC trajectory for that 
molecule (which seems to be the way to load a trajectory in Open Babel), then 
at some point the JVM crashes due to a crash in native code. I found out the 
reason is that the OBMol.finalize() method (which is called by the garbage 
collector when there is no more references to an object) includes a call to 
OBMol.delete() which is responsible for calling into the native code that then 
crashes.

I have included the crash information in "crash.txt" and I will attach an 
example molecule and trajectory later (I do not see the possibility for 
multiple attachments). The code below is the reduced test case:

OBConversion conversion = new OBConversion();
conversion.SetInFormat("pdb");

OBMol molecule = new OBMol();
conversion.ReadFile(molecule, "/path/to/AcAANMe.pdb");

conversion.SetInFormat("xtc");
// Crash if next line is uncommented:
//conversion.ReadFile(molecule, "/path/to/trajectory.xtc");

molecule.delete();

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3376708&group_id=40728

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to