lighterowl / transgui

A fork of Transmission Remote GUI
GNU General Public License v2.0
107 stars 0 forks source link

transgui freezes when adding torrents with really long names #84

Open SESNut opened 1 month ago

SESNut commented 1 month ago

the torrent still gets added but it freezes with the adding torrents dialog until you end task the program. magnet link for reference:

magnet:?xt=urn:btih:c8314ff99b14a744d944e1ae3441a90bfd692bc0&dn=%5BEMBER%5D%20Tensei%20shitara%20Dainana%20Ouji%20Datta%20node%2C%20Kimama%20ni%20Majutsu%20wo%20Kiwamemasu%20S01E09%20%5B1080p%5D%20%5BHEVC%20WEBRip%5D%20%28I%20Was%20Reincarnated%20as%20the%207th%20Prince%20so%20I%20Can%20Take%20My%20Time%20Perfecting%20My%20Magical%20Ability%20%7C%20Dainanaoji%29&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce

lighterowl commented 2 weeks ago

Sorry, couldn't reproduce with the latest version on either Linux or Windows.

The "Add Torrent" window is closed and the new torrent shows up properly in the main window. Tried with Automatically add torrent links from the clipboard both disabled and enabled.

SESNut commented 2 weeks ago

i suspect it has something to do with running transmission on entware on my router instead of a normal desktop installation

lighterowl commented 2 weeks ago

If that is so, you might just be breaking transgui's own expectations on how fast it expects messages to arrive from the daemon. The replies are read in a separate thread and I wouldn't be surprised if there is race of some kind at some point. The fact that this is triggered by a torrent/magnet with a longer name is probably just a coincidence.

Or maybe your daemon has already started the download and it's too busy to respond to the client's requests? This happens quite frequently to me when a "delete with local data" operation goes wrong and Transmission ends up copying the contents unnecessarily. Although, when that happens, the error message is usually "Connection timed out".

SESNut commented 2 weeks ago

the torrent is stopped when i reconnect to transmission. I have to manually start it. transgui itself never recovers no matter how long i wait, I just get stuck with the hourglass symbol

lighterowl commented 2 weeks ago

Ok, so that's not what I described, then. Will try slowing down my daemon and see where that gets me.