Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-05 Thread Joos Kiener
Hi Noel, Here a link to a zip file containing the compiled jar, mols.smi and windows cmd file: https://drive.google.com/file/d/0B1KuZlTEmhZNV2l5clhoVlZ5blk/edit?usp=sharing This application fails on 2 different Windows 7 PCs (one 32, the other 64 bit but both run java and OB 32-bit). I now real

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-05 Thread Noel O'Boyle
The test file didn't make it here, but I did succeed in compiling and running the code on Windows without any problems. What OS are you using? - Noel On 4 December 2013 05:24, Joos Kiener wrote: > Hi Noel, > > this is a test file with 10 molecules only. memory consumption of the > java.exe is 20

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-03 Thread Joos Kiener
Hi Noel, this is a test file with 10 molecules only. memory consumption of the java.exe is 20-25 mb, so not a problem. Moving the builder outside of the loop does not help with the issue. I also moved the OBConformerScore outside of the loop. But does not help either. -- View this message in co

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-03 Thread Noel O'Boyle
How many molecules are in mols.smi? Have you looked at task manager to see memory usage while running this? You should move the initialisation of OBBuilder outside the loop. I have a feeling you are eating up memory by creating this multple times. - Noel On 3 December 2013 06:43, Joos Kiener wr

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Joos Kiener
This is confusing. This issue is some weird memory issue. At the end of this post is the most simple code I could come up with that reproduces the problem for me. I can make the code work by removing or commenting just any of the following lines (only one of them is enough): - conformerSearch.Se

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Joos Kiener
Geoff Hutchison wrote > When you say "does not allow any options to be set," do you mean the > OBConformerScore isn't set? No I meant that the options are not exposed as cli parameters and hence it runs with default parameters (eg. nr of conformers, nr of children, mutability,...) -- View this

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Geoffrey Hutchison
> Not sure if this helps at all. The whole issue is kind of confusing as > again, the exact same code works when called from a simpler snippet that > does not write results to a file and does not allow any options to be set. When you say "does not allow any options to be set," do you mean the OBC

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Joos Kiener
I can reproduce this on a different PC also running windows 7. The Windows Event viewer generates an entry for this: Faulting application name: java.exe, version: 7.0.450.18, time stamp: 0x525404d0 Faulting module name: ntdll.dll, version: 6.1.7601.18205, time stamp: 0x51db96c5 Exception code: 0xc

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Joos Kiener
The code for generating the conformers is as below: private void generateConformers(OBMol mol) { OBConformerSearch conformerSearch = new OBConformerSearch(); OBConformerScore score = new OBEnergyConformerScore(); conformerSearch.SetScore(score); if (!conformerSear

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Noel O'Boyle
Just a hint: one common problem with the forcefield code is that you forgot to check that Setup was successful (Setup can fail with crazy molecules that are not supported by a particular forcefield). This can result in any number of interesting segfaults if you call any other forcefield methods aft

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-12-02 Thread Joos Kiener
It seems not possible to create a simple application were this issue happens. As a context I'm reading in molecules, generating 3D coordinates and then generate the Spectrophore. In a simple script-like snippet this works. In the complete application the results are written to an output file, the

Re: [Open Babel] Java API: setting OBConformerScore will crash application

2013-11-30 Thread Noel O'Boyle
Can you give an example of a complete Java program (as short as possible) that reproduces the problem? On 29 November 2013 11:18, Joos Kiener wrote: > Just using > > OBConformerSearch conformerSearch = new OBConformerSearch(); > > works. However I want to use different scoring than RMSD, which se

[Open Babel] Java API: setting OBConformerScore will crash application

2013-11-30 Thread Joos Kiener
Just using OBConformerSearch conformerSearch = new OBConformerSearch(); works. However I want to use different scoring than RMSD, which seems to be the default (not really documented). If I do this OBConformerSearch conformerSearch = new OBConformerSearch(); OBConformerScore score = new OBEner