Page 1 of 1

Wrong files shown in the Files Tab

Posted: Thu Nov 10, 2011 10:24 am
by bro
Hi

Sometimes some of the torrents in the list show the wrong files in the Files tab, more precisely the files of another torrent. It happens if I do a search in the torrent list, often after changing the sort order. Is this a known bug?

Reconnecting does not fix it, but after restarting the gtk-client the files are back to normal, until I change sort order and search again.

Re: Wrong files shown in the Files Tab

Posted: Thu Nov 10, 2011 1:30 pm
by Cas
There was a similar reported bug in ticket #1895 and I put together a fix. It was not applied to the Deluge codebase as I could not replicate so it was impossible to know if it actually worked. If you could test it out and let me know that would be helpful.

Re: Wrong files shown in the Files Tab

Posted: Thu Nov 10, 2011 1:38 pm
by bro
Perfect! I'll test and report back.

Re: Wrong files shown in the Files Tab

Posted: Fri Nov 11, 2011 1:05 am
by bro
Cas,
I'm using the git repo, and did a Developer Install as explained on the wiki. I have a problem; the info for each torrent (Status/Details/Files...) isn't properly displayed. All the fields are empty. I've tested 1.3 branch with 1.3.3 and 1.3.2 tags.

The logs on the server and client show nothing (of interrest).

I did get this on the server

Code: Select all

[ERROR   ] 00:40:53 rpcserver:303 Exception calling RPC request: 'int' object is unsubscriptable
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/deluge-1.3.3-py2.6.egg/deluge/core/rpcserver.py", line 290, in dispatch
    auth_level = self.factory.authorized_sessions[self.transport.sessionno][0]
TypeError: 'int' object is unsubscriptable
at one point, but I'm not sure if that is relevant, as it only occured once.

When I connect with the version installed with Ubuntu, it works as normal.

Do you have any idea what is wrong?

Re: Wrong files shown in the Files Tab

Posted: Mon Nov 14, 2011 2:58 pm
by Cas
Did you specify a new config as it will attempt to use your default location and is the pythonpath exported properly.

Re: Wrong files shown in the Files Tab

Posted: Mon Nov 21, 2011 9:35 am
by bro
Hi

I've no idea what was wrong, but when I tested later (after a reboot of the client machine and probably a reboot of the deluge daemon) it worked as expected when running from the git repo.

As for the patch, it doesn't seem to fix the problem. The torrent_id and self.torrent_id mismatches all the time, and it seems like it might be a little harder to reproduce the issue when the patch is applied, but that could just be coincidences. The problem is that I can't find a reliable way to easily reproduce the issue.

To reproduce I connect to the daemon, choose the Files tab, and search for different torrents. Eventually the issue reveals itself. When a torrent is tainted, it will show the wrong files until the client is restarted. When the wrong files are shown, the files can actually change if other torrents are selected, but it's hard to see any pattern. Sometimes it changes and sometimes it stays the same.

Re: Wrong files shown in the Files Tab

Posted: Sun Jan 08, 2012 6:41 pm
by Cas
Could you test an alternative patch posted here: http://dev.deluge-torrent.org/ticket/2000

Re: Wrong files shown in the Files Tab

Posted: Mon Mar 12, 2012 2:21 pm
by bro
Hi

Sorry for the late reply, but I haven't had the time to check this out. I see that a patch was applied to 1.3.4, so I'll upgrade and see if I still can reproduce the bug.

Bro