This forum has been archived. All content is frozen. Please use KDE Discuss instead.

CRASH after: Cannot open index file () :Too many open files

Tags: None
(comma "," separated)
switchcakes
Registered Member
Posts
14
Karma
0
Using CVS from 01/04/06. Two problems here.

Well I got this error for some torrents, "Cannot open index file (...): Too many open files", so I set my open file limit higher with ulimit. I guess this is the proper way to fix this (?) and I haven't had the error again, yet. Maybe someone can clarify this? I had a size of 1024 before, but I have no idea how this limit could possibly have been reached unless ktorrent keeps all files open in torrents EVEN those that are not checked for download (can somebody verify this..??).

However, in the meantime, when I did get this error, then sometimes in the same session, when I tried to restart the download that had the error, ktorrent would crash with this:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 20421)]
[KCrash handler]
#5 0xb69677e1 in kill () from /lib/libc.so.6
#6 0xb6b6d413 in pthread_kill () from /lib/libpthread.so.0
#7 0xb6b6d7ab in raise () from /lib/libpthread.so.0
#8 0xb69673b2 in raise () from /lib/libc.so.6
#9 0xb69692cf in abort () from /lib/libc.so.6
#10 0xb6b0dcd7 in __cxxabiv1::__terminate(void (*)()) ()
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5
#11 0xb6b0dd14 in std::terminate() ()
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5
#12 0xb6b0df5c in __cxa_rethrow ()
from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5
#13 0xb7f95678 in bt::TorrentControl::start() ()
from /usr/local/xstow/ktorrent-01-04-06/lib/libktorrent.so.0
#14 0x08060d80 in KTorrentView::startDownload() ()
#15 0x08061be5 in KTorrentView::qt_invoke(int, QUObject*) ()
#16 0xb704f2f0 in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#17 0xb739ae32 in QSignal::signal(QVariant const&) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#18 0xb706a7af in QSignal::activate() () from /opt/qt-copy/lib/libqt-mt.so.3
#19 0xb7156b63 in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#20 0xb7990436 in KPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
from /usr/kde/3.5/lib/libkdeui.so.4
#21 0xb7085531 in QWidget::event(QEvent*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#22 0xb6feea35 in QApplication::internalNotify(QObject*, QEvent*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#23 0xb6fee1fb in QApplication::notify(QObject*, QEvent*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#24 0xb76a2b8b in KApplication::notify(QObject*, QEvent*) ()
from /usr/kde/3.5/lib/libkdecore.so.4
#25 0xb6f7c3a0 in QETWidget::translateMouseEvent(_XEvent const*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#26 0xb6f7a3bb in QApplication::x11ProcessEvent(_XEvent*) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#27 0xb6f9234f in QEventLoop::processEvents(unsigned) ()
from /opt/qt-copy/lib/libqt-mt.so.3
#28 0xb7002b26 in QEventLoop::enterLoop() ()
from /opt/qt-copy/lib/libqt-mt.so.3
#29 0xb70029c8 in QEventLoop::exec() () from /opt/qt-copy/lib/libqt-mt.so.3
#30 0xb6feec81 in QApplication::exec() () from /opt/qt-copy/lib/libqt-mt.so.3
#31 0x0805b017 in main ()
George
Moderator
Posts
5421
Karma
1

Thu Jan 05, 2006 11:49 am
I can try messing around with my open files limit. To see if I can reproduce it.

KT keeps all files open, even the ones not selected for downloading, because we might need to write to them anyway (a torrent is divided into chunks, chunks do not follow file borders, so a chunk can lie in 2 or more files)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]