Crash after deleting atoms

Bugs item #2497037, was opened at 2009-01-09 22:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

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: Geoff Hutchison (ghutchis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crash after deleting atoms

Initial Comment:
Easy to reproduce on the current git trunk.

Draw some atoms. Select some (or all). Delete them.


Thread 0 Crashed:
0 net.sourceforge 0x0000c0ef QListAvogadro::Primitive*::append(Avogadro::Primitive* const&) + 15 (qlist.h:414)
1 libavogadro.0.dylib 0x013c6855 Avogadro::PrimitiveList::append(Avogadro::Primitive*) + 69 (primitivelist.cpp:112)
2 libavogadro.0.dylib 0x013c69be Avogadro::PrimitiveList::PrimitiveList(QListAvogadro::Primitive* const&) + 158
3 libavogadro.0.dylib 0x01399026 Avogadro::GLWidget::selectedPrimitives() const + 54 (glwidget.cpp:1779)
4 0x1dc452f4 Avogadro::ManipulateTool::paint(Avogadro::GLWidget*) + 36 (manipulatetool.cpp:321)
5 libavogadro.0.dylib 0x0139d9a6 Avogadro::GLWidget::render() + 1830 (qlist.h:219)
6 libavogadro.0.dylib 0x013986bb Avogadro::GLWidget::paintEvent(QPaintEvent*) + 75 (glwidget.cpp:656)
7 QtGui 0x00a14640 QWidget::event(QEvent*) + 2912
8 QtOpenGL 0x000d9bff QGLWidget::event(QEvent*) + 63
9 libavogadro.0.dylib 0x01398915 Avogadro::GLWidget::event(QEvent*) + 37 (glwidget.cpp:1124)

You can respond by visiting: