Bug 74740 - Load/Save dialog suspends application for 5 minutes
Summary: Load/Save dialog suspends application for 5 minutes
Status: RESOLVED WORKSFORME
Alias: None
Product: kfile
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2004-02-09 19:27 UTC by Luke-Jr
Modified: 2018-10-27 03:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2004-02-09 19:27:06 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages

When the Load/Save dialog opens (tested from KWrite and Kate, though probably in other apps too), the application reads a bunch of files (appears to be from the recent file list).
I don't see any purpose for this from the UI (the data isn't actually used as far as I can see), but the actual problem is when it tries to open network files (where access to the file attempts to connect and, if the remote host is down, will block until it times out).
Either the file access should be removed or something should be done to prevent the blocking from freezing the entire app.
From strace while the app is frozen:
	stat64("/mnt/net/smb/kazumichan/home/Main_Memory/benedictine/classes/done.txt",
/mnt/net/smb/A/B makes a samba network connection to \\A\B and will usually block until it times out or succeeds.
Comment 1 Raúl 2006-12-14 18:38:22 UTC
I think I have suffered same problem. I have two dirs mounted on a NFS server. When this server was turned off, the system started to become unstable. One instance of Konqueror froze (with a lot of opened tabs :/ ). This instance was using those shared dirs among others.

After killing this freezy instance while trying on no success to get a backtrace with gdb, I tried to open the file selector dialog with cervisia. This also froze cervisia, but this time I got a backtrace:

#0  0xa7f91410 in __kernel_vsyscall ()
#1  0xa7da1ce3 in __xstat64 () from /lib/tls/i686/cmov/libc.so.6
#2  0xa7b8d57e in KMimeType::findByURL (_url=@0x8679220, _mode=0, _is_local_file=true, _fast_mode=false) at /usr/include/sys/stat.h:397
#3  0xa7b91b2b in KMimeType::iconForURL (_url=@0x8679220, _mode=0) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/kmimetype.cpp:508
#4  0xa7b922a4 in KMimeType::pixmapForURL (_url=@0x8679220, _mode=0, _group=KIcon::Panel, _force_size=22, _state=0, _path=0x0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/kmimetype.cpp:491
#5  0xa7c0ff53 in KURLBarItem::setIcon (this=0x86791e8, icon=@0xaff0aff4, group=Panel)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:141
#6  0xa7c3299d in KURLBarItem::init (this=0x86791e8, icon=@0xaff0aff4, group=Panel, description=@0xaff0b000, persistent=true)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:119
#7  0xa7c32a84 in KURLBarItem (this=0x86791e8, parent=0x80cb318, url=@0xaff0afb4, description=@0xaff0b000, icon=@0xaff0aff4, group=Panel)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:109
#8  0xa7c8006a in KURLBar::insertItem (this=0x80cb318, url=@0xaff0afb4, description=@0xaff0b000, applicationLocal=false, icon=@0xaff0aff4, group=Panel)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:362
#9  0xa7c316b4 in KURLBar::readItem (this=0x80cb318, i=7, config=0x80ccec8, applicationLocal=false)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:613
#10 0xa7c74860 in KURLBar::readConfig (this=0x80cb318, appConfig=0x80ccec8, itemGroup=@0xaff0b11c)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:590
#11 0xa7c801f0 in KFileSpeedBar (this=0x80cb318, parent=0x8347068, name=0xa7cba300 "url bar")
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfilespeedbar.cpp:40
#12 0xa7c828ba in KFileDialog::initSpeedbar (this=0x8323de0) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:1051
#13 0xa7c82b5d in KFileDialog::toggleSpeedbar (this=0x8323de0, show=true) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:2218
#14 0xa7c831ed in KFileDialog::readConfig (this=0x8323de0, kc=0x80ccec8, group=@0xaff0b938)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:1725
#15 0xa7c7c88e in KFileDialog::init (this=0x8323de0, startDir=@0xa776f768, filter=@0x837e41c, widget=0x0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:1045
#16 0xa7c7d03b in KFileDialog (this=0x8323de0, startDir=@0xa776f768, filter=@0x837e41c, parent=0x8509f58, name=0xa7cb92d1 "file dialog", modal=true)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:173
#17 0xa7c7d54b in KURLRequester::fileDialog (this=0x833d328) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlrequester.cpp:343
#18 0xa7c815bd in KURLRequester::slotOpenDialog (this=0x833d328) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlrequester.cpp:289
#19 0xa7c81b89 in KURLRequester::qt_invoke (this=0x833d328, _id=50, _o=0xaff0bbac) at ./kurlrequester.moc:178
#20 0xa7298cb3 in QObject::activate_signal (this=0x83ad988, clist=0x8382218, o=0xaff0bbac) at kernel/qobject.cpp:2356
#21 0xa7299744 in QObject::activate_signal (this=0x83ad988, signal=4) at kernel/qobject.cpp:2325
#22 0xa762ad3f in QButton::clicked (this=0x83ad988) at .moc/debug-shared-mt/moc_qbutton.cpp:152
#23 0xa7335c4e in QButton::mouseReleaseEvent (this=0x83ad988, e=0xaff0c014) at widgets/qbutton.cpp:836
#24 0xa72cf654 in QWidget::event (this=0x83ad988, e=0xaff0c014) at kernel/qwidget.cpp:4702
#25 0xa7230bd6 in QApplication::internalNotify (this=0xaff0c69c, receiver=0x83ad988, e=0xaff0c014) at kernel/qapplication.cpp:2635
#26 0xa7232d79 in QApplication::notify (this=0xaff0c69c, receiver=0x83ad988, e=0xaff0c014) at kernel/qapplication.cpp:2421
#27 0xa7926e0e in KApplication::notify (this=0xaff0c69c, receiver=0x83ad988, event=0xaff0c014)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:550
#28 0xa71c4445 in QApplication::sendSpontaneousEvent (receiver=0x83ad988, event=0xaff0c014) at kernel/qapplication.h:523
#29 0xa71c30df in QETWidget::translateMouseEvent (this=0x83ad988, event=0xaff0c448) at kernel/qapplication_x11.cpp:4301
#30 0xa71c1660 in QApplication::x11ProcessEvent (this=0xaff0c69c, event=0xaff0c448) at kernel/qapplication_x11.cpp:3478
#31 0xa71d7cb2 in QEventLoop::processEvents (this=0x80cc058, flags=4) at kernel/qeventloop_x11.cpp:192
#32 0xa724b129 in QEventLoop::enterLoop (this=0x80cc058) at kernel/qeventloop.cpp:198
#33 0xa724af4a in QEventLoop::exec (this=0x80cc058) at kernel/qeventloop.cpp:145
#34 0xa723276f in QApplication::exec (this=0xaff0c69c) at kernel/qapplication.cpp:2758
#35 0xa667a495 in kdemain (argc=2, argv=0x8084778) at /home/sid-user/kdebase/kdebase-3.5.5/./konqueror/konq_main.cc:206
#36 0xa7f8d524 in kdeinitmain (argc=2, argv=0x8084778) at konqueror_dummy.cc:3
#37 0x0804e457 in launch (argc=2, _name=0x8078fa4 "konqueror", args=0x8078fb6 "", cwd=0x0, envc=1, envs=0x8078fc7 "", reset_env=false, tty=0x0,
    avoid_loops=false, startup_id_str=0x8078fcc "Debian2;1166116762;570042;5359_TIME2180625261")
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:673
#38 0x0804ecf9 in handle_launcher_request (sock=9) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:1240
#39 0x0804f092 in handle_requests (waitForPid=0) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:1443
#40 0x080502b1 in main (argc=5, argv=0xaff0d154, envp=0xaff0d16c) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:1909
#41 0xa7cfaea8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#42 0x0804b911 in _start () at ../sysdeps/i386/elf/start.S:119

Then tried to open a file selector dialog on kopete and same result with this backtrace:
#0  0xa7f05410 in __kernel_vsyscall ()
#1  0xa618dce3 in __xstat64 () from /lib/tls/i686/cmov/libc.so.6
#2  0xa759357e in KMimeType::findByURL (_url=@0x890c188, _mode=0, _is_local_file=true, _fast_mode=false) at /usr/include/sys/stat.h:397
#3  0xa7597b2b in KMimeType::iconForURL (_url=@0x890c188, _mode=0) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/kmimetype.cpp:508
#4  0xa75982a4 in KMimeType::pixmapForURL (_url=@0x890c188, _mode=0, _group=KIcon::Panel, _force_size=22, _state=0, _path=0x0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/kmimetype.cpp:491
#5  0xa7615f53 in KURLBarItem::setIcon (this=0x890c150, icon=@0xafbfd214, group=Panel)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:141
#6  0xa763899d in KURLBarItem::init (this=0x890c150, icon=@0xafbfd214, group=Panel, description=@0xafbfd220, persistent=true)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:119
#7  0xa7638a84 in KURLBarItem (this=0x890c150, parent=0x893c608, url=@0xafbfd1d4, description=@0xafbfd220, icon=@0xafbfd214, group=Panel)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:109
#8  0xa768606a in KURLBar::insertItem (this=0x893c608, url=@0xafbfd1d4, description=@0xafbfd220, applicationLocal=false, icon=@0xafbfd214, group=Panel)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:362
#9  0xa76376b4 in KURLBar::readItem (this=0x893c608, i=7, config=0x8116890, applicationLocal=false)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:613
#10 0xa767a860 in KURLBar::readConfig (this=0x893c608, appConfig=0x8116890, itemGroup=@0xafbfd33c)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kurlbar.cpp:590
#11 0xa76861f0 in KFileSpeedBar (this=0x893c608, parent=0x8708850, name=0xa76c0300 "url bar")
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfilespeedbar.cpp:40
#12 0xa76888ba in KFileDialog::initSpeedbar (this=0xafbfdc40) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:1051
#13 0xa7688b5d in KFileDialog::toggleSpeedbar (this=0xafbfdc40, show=true)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:2218
#14 0xa76891ed in KFileDialog::readConfig (this=0xafbfdc40, kc=0x8116890, group=@0xafbfdb58)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:1725
#15 0xa768288e in KFileDialog::init (this=0xafbfdc40, startDir=@0x81074b8, filter=@0xafbfddc8, widget=0x0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:1045
#16 0xa768303b in KFileDialog (this=0xafbfdc40, startDir=@0x81074b8, filter=@0xafbfddc8, parent=0x881a818, name=0xa40e2cc5 "fileSaveDialog", modal=false)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kfile/kfiledialog.cpp:173
#17 0xa40d720b in ChatMessagePart::save () from /usr/lib/kde3/kopete_chatwindow.so
#18 0xa40db672 in ChatMessagePart::qt_invoke () from /usr/lib/kde3/kopete_chatwindow.so
#19 0xa68d0cb3 in QObject::activate_signal (this=0x87f8dc8, clist=0x863a450, o=0xafbfdecc) at kernel/qobject.cpp:2356
#20 0xa68d1744 in QObject::activate_signal (this=0x87f8dc8, signal=2) at kernel/qobject.cpp:2325
#21 0xa7205259 in KAction::activated (this=0x87f8dc8) at ./kaction.moc:176
#22 0xa723a971 in KAction::slotActivated (this=0x87f8dc8) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdeui/kaction.cpp:1102
#23 0xa731acfd in KAction::slotPopupActivated (this=0x87f8dc8) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdeui/kaction.cpp:1137
#24 0xa731afc1 in KAction::qt_invoke (this=0x87f8dc8, _id=16, _o=0xafbfe008) at ./kaction.moc:219
#25 0xa68d0cb3 in QObject::activate_signal (this=0x8996aa8, clist=0x88d75a0, o=0xafbfe008) at kernel/qobject.cpp:2356
#26 0xa6c59cef in QSignal::signal (this=0x8996aa8, t0=@0x8996ad0) at .moc/debug-shared-mt/moc_qsignal.cpp:100
#27 0xa68f0836 in QSignal::activate (this=0x8996aa8) at kernel/qsignal.cpp:212
#28 0xa69f5cb1 in QPopupMenu::mouseReleaseEvent (this=0x87fa378, e=0xafbfe544) at widgets/qpopupmenu.cpp:1697
#29 0xa720e0ee in KPopupMenu::mouseReleaseEvent (this=0x87fa378, e=0xafbfe544) at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdeui/kpopupmenu.cpp:508
#30 0xa6907654 in QWidget::event (this=0x87fa378, e=0xafbfe544) at kernel/qwidget.cpp:4702
#31 0xa6868bd6 in QApplication::internalNotify (this=0xafbfeb1c, receiver=0x87fa378, e=0xafbfe544) at kernel/qapplication.cpp:2635
#32 0xa686ad79 in QApplication::notify (this=0xafbfeb1c, receiver=0x87fa378, e=0xafbfe544) at kernel/qapplication.cpp:2421
#33 0xa7019e0e in KApplication::notify (this=0xafbfeb1c, receiver=0x87fa378, event=0xafbfe544)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:550
#34 0xa67fc445 in QApplication::sendSpontaneousEvent (receiver=0x87fa378, event=0xafbfe544) at kernel/qapplication.h:523
#35 0xa67fae38 in QETWidget::translateMouseEvent (this=0x87fa378, event=0xafbfe978) at kernel/qapplication_x11.cpp:4243
#36 0xa67f9660 in QApplication::x11ProcessEvent (this=0xafbfeb1c, event=0xafbfe978) at kernel/qapplication_x11.cpp:3478
#37 0xa680fcb2 in QEventLoop::processEvents (this=0x8165ca8, flags=4) at kernel/qeventloop_x11.cpp:192
#38 0xa6883129 in QEventLoop::enterLoop (this=0x8165ca8) at kernel/qeventloop.cpp:198
#39 0xa6882f4a in QEventLoop::exec (this=0x8165ca8) at kernel/qeventloop.cpp:145
#40 0xa686a76f in QApplication::exec (this=0xafbfeb1c) at kernel/qapplication.cpp:2758
#41 0x0807e070 in ?? ()
#42 0xafbfeb1c in ?? ()
#43 0xafbfec50 in ?? ()
#44 0xafbfec48 in ?? ()
#45 0x00000000 in ?? ()

Then I force umounting the NFS shares and everything went normally.

There shold be some way to avoid this major freezing behaviour or at least having a warning dialog about this issue. Common users should notice this is because of an dissapearing NFS share.
Comment 2 Raúl 2006-12-14 18:38:56 UTC
I forgot to mention I use debian testing with kde 3.5.5.
Comment 3 lexual 2010-01-23 05:38:37 UTC
Still relevant to recent KDE version?
If not please close the bug.

Thanks,

Lex.
Comment 4 Raúl 2010-08-25 23:50:11 UTC
Hello:

I've did some tests with 4.4.5. So far I just got to browse with NFS, not that I had much success on the attempt, but at least konqueror did not froze.

I'll try soonish also with the save dialog.

Regards,
Comment 5 Christoph Feck 2011-07-25 19:02:35 UTC
If you can provide the information requested in comment #3, please add it. The important information (whether it still happens with file dialogs) is missing from comment #4.
Comment 6 Raúl 2012-06-14 07:28:55 UTC
Hello:

I've just tested this and I think it's solved. KDE 4.7.4 on Debian testing.
Comment 7 Andrew Crouthamel 2018-09-23 02:41:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-27 03:59:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!