Menu

#521 Segfault looking at vibrations

v_1.1.0
open
Open Babel (66)
8
2012-09-12
2011-04-07
No

If you open the attached GAMESS US file under Win7 with Avo 1.0.1 and click on Extensions/Vibrations it will segfault.

Discussion

  • Noel O'Boyle

    Noel O'Boyle - 2011-04-07
     
  • Marcus D. Hanwell

    I see,

    // Sanity check
    // Currently disabled -- GAMESS does weird things.
    // if (displacementVectors.size() != m_molecule->numAtoms()) {
    // QMessageBox::warning(m_widget, tr("Vibrational Analysis"), tr("The computed vibrations do not match this molecule."));
    // return;
    // }

    For your molecule, in the debugger it looks like displacementVectors (from Open Babel) is of zero size. It looks like we should at least check that vector is bigger that the number of atoms (although I am not sure in which case it would be a different size).

     
  • Marcus D. Hanwell

    Adding back in that check prevents the crash, I think this will need fixing in Open Babel before we can actually display the vibrations in Avogadro.

     
  • Geoff Hutchison

    Geoff Hutchison - 2012-06-15

    Bump. I confirm the crash with latest OB and Avogadro master.