XML parser error with insert fragments

Bugs item #1977172, was opened at 2008-05-29 00:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=1977172&group_id=165310

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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Vandermeersch (timvdm)
Assigned to: Nobody/Anonymous (nobody)
Summary: XML parser error with insert fragments

Initial Comment:
Click “Fragment Library…”, select any cml fragment and click “Insert Fragment”

  1. click once on the canvas to add it --> no problem
  2. click a second time --> fragment isn’t added, terminal output reads:

:1: namespace warning : Namespace prefix (null) was not found

^

*** Open Babel Error in XML Parser
Namespace prefix (null) was not found

  1. click a third time --> 2nd fragment is added
  2. fourth time --> = second time

    And when you try to add a smiles after an even number of fragment insertions, it segfaults:

#0 0xb7db5272 in OpenBabel::OBConversion::ReadString () from /usr/lib/libopenbabel.so.2
#1 0xb654faaa in Avogadro::InsertFragmentDialog::fragment () from /usr/lib/avogadro/tools/libdrawtool.so
#2 0xb65467ea in Avogadro::DrawTool::mousePress () from /usr/lib/avogadro/tools/libdrawtool.so
#3 0xb70b8487 in Avogadro::GLWidget::mousePressEvent () from /usr/lib/libavogadro.so.0
#4 0xb7609fbd in QWidget::event () from /usr/lib/libQtGui.so.4
#5 0xb7bdd236 in QGLWidget::event () from /usr/lib/libQtOpenGL.so.4
#6 0xb70b8503 in Avogadro::GLWidget::event () from /usr/lib/libavogadro.so.0
#7 0xb75c028d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#8 0xb75c44f1 in QApplication::notify () from /usr/lib/libQtGui.so.4
#9 0xb722ac1b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#10 0xb761cb4a in ?? () from /usr/lib/libQtGui.so.4

Not sure what the bug could be… (but the segfault is probably because the XML parser leaves OBConversion in an undefined state??)


You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=1977172&group_id=165310