Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

segfault in orbitals using testfiles/methane.mpo #390

Closed
cryos opened this issue Jun 9, 2009 · 3 comments
Closed

segfault in orbitals using testfiles/methane.mpo #390

cryos opened this issue Jun 9, 2009 · 3 comments

Comments

@cryos
Copy link
Owner

cryos commented Jun 9, 2009

This is with avogadro-0.9.6 and Qt-4.4.3.

Open testfiles/methane.mpo, go to Extensions->Create Surfaces..., hit "Calculate MO", then switch to Isosurfaces tab and hit "Calculate Mesh" -> I get a segfault in QMutex::lock (this=0xa190094) at thread/qmutex.cpp:147:
#0 0xb6e7818f in QMutex::lock (this=0xa190094) at thread/qmutex.cpp:147
#1 0xb6f6cd47 in QCoreApplication::postEvent (receiver=0x9c60610, event=0xa19b238, priority=0) at kernel/qcoreapplication.cpp:971
#2 0xb6f6d00c in QCoreApplication::postEvent (receiver=0x9c60610, event=0xa19b238) at kernel/qcoreapplication.cpp:925
#3 0xb6f7d80d in queued_activate (sender=0xa00ada0, signal=6, c=@0x9fea0b8, argv=0x0, semaphore=0x0) at kernel/qobject.cpp:2934
#4 0xb6f81b07 in QMetaObject::activate (sender=0xa00ada0, from_signal_index=6, to_signal_index=6, argv=0x0) at kernel/qobject.cpp:3006
#5 0xb6f82952 in QMetaObject::activate (sender=0xa00ada0, m=0x80e4890, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3101
#6 0xb6fbbb47 in QAbstractItemModel::layoutChanged (this=0xa00ada0) at .moc/release-shared/moc_qabstractitemmodel.cpp:137
#7 0xb77cc062 in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0xa00adb0, source_top_left=@0xbfe61dc8,

source_bottom_right=@0xbfe61db8) at itemviews/qsortfilterproxymodel.cpp:1011

#8 0xb77ccb4f in QSortFilterProxyModel::qt_metacall (this=0xa00ada0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfe61d78)

at .moc/release-shared/moc_qsortfilterproxymodel.cpp:119

#9 0xb6f81bd0 in QMetaObject::activate (sender=0xa00ac08, from_signal_index=4, to_signal_index=4, argv=0xbfe61d78) at kernel/qobject.cpp:3031
#10 0xb6f82952 in QMetaObject::activate (sender=0xa00ac08, m=0x80e4890, local_signal_index=0, argv=0xbfe61d78) at kernel/qobject.cpp:3101
#11 0xb6fbbbf9 in QAbstractItemModel::dataChanged (this=0xa00ac08, _t1=@0xbfe61dc8, _t2=@0xbfe61db8)

at .moc/release-shared/moc_qabstractitemmodel.cpp:124

#12 0x0807ff63 in Avogadro::EngineItemModel::engineChanged (this=0xa00ac08)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/avogadro/src/engineitemmodel.cpp:85

#13 0x08080243 in Avogadro::EngineItemModel::qt_metacall (this=0xa00ac08, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfe61e88)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/obj-i486-linux-gnu/avogadro/src/engineitemmodel.moc:71

#14 0xb6f81bd0 in QMetaObject::activate (sender=0xa0d0e10, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#15 0xb6f82952 in QMetaObject::activate (sender=0xa0d0e10, m=0x80e48e0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#16 0xb7daa827 in Avogadro::Engine::changed (this=0xa0d0e10)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/obj-i486-linux-gnu/libavogadro/src/engine.moc:110

#17 0xb7daa8d4 in Avogadro::Engine::setEnabled (this=0xa0d0e10, enabled=false)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/libavogadro/src/engine.cpp:103

#18 0xb7dabe43 in Avogadro::Engine::readSettings (this=0xa0d0e10, settings=@0xbfe62184)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/libavogadro/src/engine.cpp:292

#19 0xb5d93249 in Avogadro::OrbitalEngine::readSettings (this=0xa0d0e10, settings=@0xbfe62184)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/libavogadro/src/engines/orbitalengine.cpp:464

#20 0xb5af417f in Avogadro::OrbitalExtension::meshGenerated (this=0x9f4e390)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/libavogadro/src/extensions/orbitalextension.cpp:737

#21 0xb5b24203 in Avogadro::OrbitalExtension::qt_metacall (this=0x9f4e390, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xa1962a0)

at /build/mbanck-avogadro_0.9.6-1-i386-xYLYAr/avogadro-0.9.6-1/obj-i486-linux-gnu/libavogadro/src/extensions/moc_orbitalextension.cxx:100

#22 0xb6f7ad6b in QMetaCallEvent::placeMetaCall (this=0xa125ae0, object=0x9f4e390) at kernel/qobject.cpp:529
#23 0xb6f7c8e1 in QObject::event (this=0x9f4e390, e=0xa125ae0) at kernel/qobject.cpp:1155
#24 0xb727c79c in QApplicationPrivate::notify_helper (this=0x9b83960, receiver=0x9f4e390, e=0xa125ae0) at kernel/qapplication.cpp:3803
#25 0xb728461e in QApplication::notify (this=0xbfe629c8, receiver=0x9f4e390, e=0xa125ae0) at kernel/qapplication.cpp:3393
#26 0xb6f6d0d1 in QCoreApplication::notifyInternal (this=0xbfe629c8, receiver=0x9f4e390, event=0xa125ae0) at kernel/qcoreapplication.cpp:587
#27 0xb6f6dd55 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9b83a18)

at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209

#28 0xb6f6df4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1091
#29 0xb6f9798f in postEventSourceDispatch (s=0x9b8aad0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#30 0xb69302e1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#31 0xb6933973 in ?? () from /usr/lib/libglib-2.0.so.0
#32 0x09b8aa50 in ?? ()
#33 0x00000000 in ?? ()

I will attach the full backtrace.

Reported by: @mbanck

@cryos
Copy link
Owner Author

cryos commented Jun 9, 2009

full backtrace

Original comment by: @mbanck

@cryos
Copy link
Owner Author

cryos commented Jun 26, 2009

This looks like it's a race condition as the orbital engine is enabled.

Original comment by: @ghutchis

@cryos
Copy link
Owner Author

cryos commented Aug 22, 2009

Think that I fixed this in a recent set of updates. Please reopen if this is still causing issues for you. It was a race arising from geometry updates being called more than they should have been on the molecule.

Original comment by: @cryos

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants