Crash when clicking on the canvas while no molecule loaded

Bugs item #1890582, was opened at 2008-02-10 13:46
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: Rendering
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carsten Niehaus (cniehaus)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crash when clicking on the canvas while no molecule loaded

Initial Comment:
This is the backtrace:

[Switching to Thread 0xb6d6a6d0 (LWP 17065)]
0xb6f106cc in memcpy () from /lib/
(gdb) bt
#0 0xb6f106cc in memcpy () from /lib/
#1 0xb72ee8b8 in QString::insert () from /usr/lib/
#2 0xb7331910 in QSettingsPrivate::actualKey () from /usr/lib/
#3 0xb7332558 in QSettings::value () from /usr/lib/
#4 0xb722b7ab in Avogadro::Engine::readSettings () from /home/kde-devel/kde/lib/
#5 0xb720ddad in Avogadro::GLWidget::addPrimitive () from /home/kde-devel/kde/lib/
#6 0xb72102be in Avogadro::GLWidget::qt_metacall () from /home/kde-devel/kde/lib/
#7 0xb736fc70 in QMetaObject::activate () from /usr/lib/
#8 0xb73705b2 in QMetaObject::activate () from /usr/lib/
#9 0xb7227982 in Avogadro::Molecule::primitiveAdded () from /home/kde-devel/kde/lib/
#10 0xb7229095 in Avogadro::Molecule::CreateAtom () from /home/kde-devel/kde/lib/
#11 0xb722b13b in covariant return thunk to Avogadro::Molecule::CreateAtom() ()
from /home/kde-devel/kde/lib/
#12 0xb7e13e5f in OpenBabel::OBMol::NewAtom (this=0x81e9d8c) at mol.cpp:1437
#13 0xb69cc1e8 in Avogadro::DrawTool::newAtom ()
from /home/kde-devel/kde/build/avogadro/libavogadro/src/tools/
#14 0xb69cd82b in Avogadro::DrawTool::mousePress ()
from /home/kde-devel/kde/build/avogadro/libavogadro/src/tools/
#15 0xb721063c in Avogadro::GLWidget::mousePressEvent () from /home/kde-devel/kde/lib/
#16 0xb77b9f4d in QWidget::event () from /usr/lib/
#17 0xb7d2b6d6 in QGLWidget::event () from /usr/lib/
#18 0xb72106e2 in Avogadro::GLWidget::event () from /home/kde-devel/kde/lib/
#19 0xb777509d in QApplicationPrivate::notify_helper () from /usr/lib/
#20 0xb777b80d in QApplication::notify () from /usr/lib/
#21 0xb735e90b in QCoreApplication::notifyInternal () from /usr/lib/
#22 0xb77cbdd3 in QETWidget::translateMouseEvent () from /usr/lib/
—Type to continue, or q to quit—
#23 0xb77cb436 in QApplication::x11ProcessEvent () from /usr/lib/
#24 0xb77eeaba in x11EventSourceDispatch () from /usr/lib/
#25 0xb6e1b5d6 in g_main_context_dispatch () from /usr/lib/
#26 0xb6e1e972 in ?? () from /usr/lib/
#27 0x080b9e20 in ?? ()
#28 0x00000000 in ?? ()

All I am doing is to click on the black canvas while nothing is loaded.

Todays SVN of Avogadro.

You can respond by visiting: