Registered Member
|
I've had this crash three times since I recompiled today. Using KDE 4.1RC1 from Ubuntu Intrepid Ibex, and ktorrent svn r837230. Happens when right clicking on a torrent in the main torrent list. Not sure exactly what the pattern is; it doesn't happen every time.
|
Moderator
|
|
Registered Member
|
Yeah, I can't reproduce it reliably, but I did have it twice more after that post.
I also had two more crashes, both just after adding a fairly large multi-file torrent. I seem to have lost the crash report, but after adding the torrent, it didn't show up in the list right away, and I tried to do something else (5-10 seconds after adding the new torrent), and that resulted in a crash. Also, removing a multi-file torrent and its data seems to lock up KTorrent for as long as it takes to do, which on my computer can be more than a minute. Any way to remove it from the list right away and then remove its data in the background? |
Registered Member
|
Same happens when you fully reserve diskspace. |
Moderator
|
Haven't reproduced it yet, judging at the place it crashes. I'm thinking it is a KDE bug causing the menu not to be created. So I have just added a check for this. So if you can try latest SVN, if it happens no menu will be shown and this message should be logged : Failed to create ViewMenu
Send me those torrents so I can try to reproduce it.
It's going to be moved to a background job |
Registered Member
|
The multi-file torrent problem should be reproducible with any large (4gig) many file (1000) torrent on a slow computer (p3-600 laptop w/256 megs of ram, slow HD). It was a private torrent so I can't share it. I will try to reproduce so I can at least get you a crash report.
Might as well list another silly problem I'm having here. The width of the "name" column and width of the "status" column reset sometimes to the width of the longest torrent name / width of "download completed" when minimizing KTorrent to the system tray. In addition, the locked setting of toolbar, text setting of toolbar, and icon setting of the toolbar always reset when closing and reopening KTorrent, and sometimes when minimizing to the system tray.
Last edited by agforsyth on Tue Jul 29, 2008 3:02 pm, edited 1 time in total.
|
Registered Member
|
Here's a quick patch to improve log readability. The grab chunk function should only write out a log when it does something, it doesn't need to write out a log every time it's called when a chunk is already in memory, which seems to be about 99% of the times it's called.
Last edited by agforsyth on Tue Jul 29, 2008 3:04 pm, edited 1 time in total.
|
Registered Member
|
Sorry to span replies here, but one more thing for the moment. When I build, make links the shared libraries. Recently, when I then install, I get lines like this as well:
Linking CXX shared library CMakeFiles/CMakeRelink.dir/libbtcore.so The two files build/lib/libbtcore.so.7.0.0 made during "make" and build/libbtcore/CMakeFiles/CMakeRelink.dir/libbtcore.so.7.0.0 made during "make install" are identical, as are all of the other shared libraries in the two places, so time is being wasted relinking. I'm sure this doesn't matter on a fast computer, but it's a pain on mine since compiling is quite slow. |
Moderator
|
Not a bad idea |
Moderator
|
This is how cmake does it, to avoid it you can always do make install without the make, everything will be built before the install, and things will only be linked once. Downside ofcourse is that all the build files are created by root if you install to a system directory. |
Registered Member
|
Same right click crash happened three more times. Once I didn't get a backtrace, the stack was corrupt or something, and the other two times it was like this again:
|
Moderator
|
|
Registered Member
|
I built ktorrent from source and installed it to my home dir:
cmake -DCMAKE_INSTALL_PREFIX=~/ktorrent ./ make install ktorrentui.rc will be installed to ~/ktorrent/share/apps/ktorrent, where it is not found at runtime. Ktorrent will in this case crash on right click because MainWindow::container() returns null. I guess this is a pebcac installation error, which would cause reproducable crashes, unlike the one described in this thread. And also a lot widgets would be missing from the gui. Im just mentioning, maybe someone will google their way here and not waste the amount of time I did. :) Several ways to fix, I choose to copy $installdir/share/apps/ktorrent to ~/home/.kde4/share/apps/ktorrent This was ktorrent-3.1.2 |
Moderator
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]