PDA

View Full Version : crash on focus change from child



ebutz
8th April 2009, 16:43
Hi all,

I am not sure this question is right in the part of the forum, but since it seems pretty basic to me, I post it here.

I have a QApplication which calls daughter dialogs.

From the daughter dialog I call another one, which (on an emmited signal) calls a third with

frmDetails *myDetails_ = new frmDetails();
myDetails_->setSelectedMapAndTree(isElementSelected_, myTree_);
myDetails_->show();

while this works fine, the parent window behaves very unstable afterwards in the sense that it will crash basically on any change of the focus.

Probably it is a simple problem, but I don't seem to find a hint on what is going wrong.

Any hints appreciated.

Cheers,

Erik




The backtrace is


0x02e4b308 in waitpid () from /opt/cmsswLocal/lib/libc.so.6
#1 0x02eeaff4 in ?? () from /opt/cmsswLocal/lib/libc.so.6
#2 0x02df44b8 in do_system () from /opt/cmsswLocal/lib/libc.so.6
#3 0x01a52d4d in TUnixSystem::Exec () from /exports/slc4/CMSSW/Base/slc4_ia32_gcc345/lcg/root/5.18.00a-cms14/lib/libCore.so
#4 0x01a593d0 in TUnixSystem::StackTrace () from /exports/slc4/CMSSW/Base/slc4_ia32_gcc345/lcg/root/5.18.00a-cms14/lib/libCore.so
#5 0x01a55959 in TUnixSystem::DispatchSignals () from /exports/slc4/CMSSW/Base/slc4_ia32_gcc345/lcg/root/5.18.00a-cms14/lib/libCore.so
#6 0x01a55a03 in SigHandler () from /exports/slc4/CMSSW/Base/slc4_ia32_gcc345/lcg/root/5.18.00a-cms14/lib/libCore.so
#7 0x01a54aae in sighandler () from /exports/slc4/CMSSW/Base/slc4_ia32_gcc345/lcg/root/5.18.00a-cms14/lib/libCore.so
#8 0x07d8f071 in __pthread_sighandler () from /opt/cmsswLocal/lib/libpthread.so.0
#9 <signal handler called>
#10 0x062ba99e in QWidget::focusWidget () from /opt/cmsswLocal/lib/libqt-mt.so.3
#11 0x0620d7b2 in QApplication::setActiveWindow () from /opt/cmsswLocal/lib/libqt-mt.so.3
#12 0x061971c3 in QApplication::x11ProcessEvent () from /opt/cmsswLocal/lib/libqt-mt.so.3
#13 0x061ac2fb in QEventLoop::processEvents () from /opt/cmsswLocal/lib/libqt-mt.so.3
#14 0x062225d1 in QEventLoop::enterLoop () from /opt/cmsswLocal/lib/libqt-mt.so.3
#15 0x06222526 in QEventLoop::exec () from /opt/cmsswLocal/lib/libqt-mt.so.3
#16 0x0620936f in QApplication::exec () from /opt/cmsswLocal/lib/libqt-mt.so.3
#17 0x08052466 in main (argc=1, argv=0xbffbaae4) at main.cpp:81