Page 1 of 2

Not able to add multiple files

Posted: Tue Oct 22, 2024 6:35 pm
by sem1845
When trying to add multiple files at the same time, nothing happens.
It only works when you add one file at a time.

To recreate:

Hit Add
Select more than one file at the same time (shift or control click multiple files)
Hit "open"
Then attempt to add to the client
Image

Console is outputting Uncaught TypeError: this.torrents[torrentId] is undefined

This was working in a past version, but is now failing.

Re: Not able to add multiple files

Posted: Tue Oct 22, 2024 6:36 pm
by sem1845
I've spent some time testing out previous to find out when the bug was introduced, and this is the result of my tests :

v2.1.1-6-05 : bug present
v2.1.1-6-04 : bug present
v2.1.1-6-03 : bug present
v2.1.1-6-02 : bug present
v2.1.1-6-01 : bug present
v2.1.1-5-02 : bug present
v2.1.1-5-01 : not tested but i'm pretty sure the bug is present
v2.1.1-4-09 : Bug NOT present

Re: Not able to add multiple files

Posted: Wed Oct 23, 2024 10:49 pm
by PlayLoud
I get the same issue.

Re: Not able to add multiple files

Posted: Thu Oct 24, 2024 6:10 pm
by mhertz
Thanks, I did some testing, and it wasen't deluge or libtorrent related, but culprit seemingly python 3.12.x specifically, which was my least hunch/test-case honestly, as works fine in GTK-UI. Can use console-UI with globbing meanwhile as quick workaround(or GTK-UI as said), and i'm gonna locate the issue and make a ticket one of these day, or is the plan atleast. Thanks for reporting good-fellas :)

Edit: Apologies, seemingly not python312 itself anyway, something else triggering it which followed the py312 deluge install - will investigate more and follow up later, and sorry again for wrong info.

Re: Not able to add multiple files

Posted: Sun Oct 27, 2024 8:18 pm
by PlayLoud
mhertz wrote: Thu Oct 24, 2024 6:10 pm Thanks, I did some testing, and it wasen't deluge or libtorrent related, but culprit seemingly python 3.12.x specifically, which was my least hunch/test-case honestly, as works fine in GTK-UI. Can use console-UI with globbing meanwhile as quick workaround(or GTK-UI as said), and i'm gonna locate the issue and make a ticket one of these day, or is the plan atleast. Thanks for reporting good-fellas :)
Please forgive my newbness.

I'm not exactly sure what each of these workarounds mean. I'm using Deluge as a docker in unRAID. I see no options for a console-UI or GTK-UI. Is there something I'm missing?

Re: Not able to add multiple files

Posted: Sun Oct 27, 2024 8:20 pm
by ambipro
GTK-UI refers to connecting to the RPC Daemon via the Thin-Client - a mode where you are using a deluge install locally to "emulate" (if you will) the native UI with a remote server.

console would require you using `docker exec -it deluge /bin/sh` and running the deluge-console process from inside Docker or an install of it locally as well, like with the GTK-UI.

Re: Not able to add multiple files

Posted: Mon Oct 28, 2024 12:30 am
by PlayLoud
Thanks ambipro,

I was able to figure out how to get the thin-client working (I didn't even know that was an option), and it's making life easier as a workaround.

Re: Not able to add multiple files

Posted: Mon Oct 28, 2024 12:31 am
by ambipro
I consider the thin client the preferred way to use it if you aren't on mobile or something, vastly more performant and on parity with native experience.

Glad you got it sorted.

Re: Not able to add multiple files

Posted: Mon Oct 28, 2024 6:21 pm
by mhertz
As stated in my previous post's edit, I was wrong in this issue being about python 3.12, sorry again.

Anyway, just located the issue to twisted 24.x, which already is pinned for win32 as '<23', for a couple issues there, and apparently it goes beyond win32, atleast for 24.x. I submitted a PR to extend the pin to non-win32 also, as '<24'.

You can downgrade twisted e.g. with pip, though e.g. 'pip install twisted[tls]==23.8', but if distro incorporating pep668 then need a venv or --break-system-packages flag etc.

Just wanted expand as promised some time ago, sorry for slowness getting back into.

Re: Not able to add multiple files

Posted: Mon Oct 28, 2024 6:24 pm
by ambipro
DjLegolas is already looking into some problems with twisted, but its rather complex and will obviously only apply to develop until a stable release is published.