[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Odd behavior of File->Quit
From: Stephen Allewell <stephen () mirramar ! fsnet ! co ! uk>
Date: 2003-03-09 22:16:01
[Download RAW message or body]
I have found some odd behaviour regarding File->Quit. The
application I am developing, when Quit would seem to close
correcly, but was still running with 100% cpu and taking more and
more memory. At first I put it down to my own dodgy coding and
have spent considerable time trying to hunt down why it happens,
but with no success. This only happens with Quit. Using
File->Close or clicking the Close button on the toplevel window,
closes the program normally.
I then created a default kapptemplate program, configured, make,
etc. Running it and immediatly using File->Quit would quit as
expected. Running it and loading a file, any file, then using
File->Quit would segfault, attached is the crash log.
Modifying the kmyapp.cpp setupActions function from
KStdAction::quit(kapp, SLOT(quit()), actionCollection());
to
KStdAction::quit(kapp, SLOT(closeAllWindows()), \
actionCollection());
connect(kapp, SIGNAL(lastWindowClosed()), kapp, SLOT(quit()));
cures the problem.
My system is SuSE 8.1 upgraded to KDE 3.1 / QT 3.1.1, SuSE rpms
linked to from kde.org. I have also tried another machine with a
new installation of SuSE 8.1, no updates, with the same result.
I have also tried downloading and compiling the cvs
3_1_0_RELEASE, again with the same result
Can anyone reproduce this?
["crash.text" (text/plain)]
[New Thread 1024 (LWP 783)]
0x41178899 in wait4 () from /lib/libc.so.6
#0 0x41178899 in wait4 () from /lib/libc.so.6
#1 0x411f3cd0 in __DTOR_END__ () from /lib/libc.so.6
#2 0x40fd3983 in waitpid () from /lib/libpthread.so.0
#3 0x40712967 in KCrash::defaultCrashHandler(int) ()
from /usr/local/kde-devel/lib/libkdecore.so.4
#4 0x40fd1a7a in pthread_sighandler () from /lib/libpthread.so.0
#5 <signal handler called>
#6 0xffffffff in ?? ()
#7 0x4072e924 in KLibLoader::close_pending(KLibWrapPrivate*) ()
from /usr/local/kde-devel/lib/libkdecore.so.4
#8 0x4072d196 in KLibLoader::~KLibLoader() ()
from /usr/local/kde-devel/lib/libkdecore.so.4
#9 0x4072c369 in KLibLoader::cleanUp() ()
from /usr/local/kde-devel/lib/libkdecore.so.4
#10 0x4068d59c in KApplication::~KApplication() ()
from /usr/local/kde-devel/lib/libkdecore.so.4
#11 0x08051320 in main ()
#12 0x410f34a2 in __libc_start_main () from /lib/libc.so.6
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic