*OLD-THREAD - SEE NEW* [Unofficial] Deluge 2.0.x installer

Specific support for Deluge on Microsoft Windows OS
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0.x unofficial Windows installer.

Post by mhertz »

I fixed the warning about junk at end, on the win32 theme used by default, and also a small other fix to that, which was comitted to gtk3 bugtracker, but the other warnings about t_size smaller than 15 or whatever it was there weren't provided fix for, though I don't think is important and is a warning not an actual error. I cannot see any difference in the two fixes currently added, but whatever, might as well provide them when available.

I had forgot that win32 theme is built-into gtk3, so no files to change and apply patch to, and I didn't wanted to rebuild whole gtk3 stack with cairo and gobject etc for such small change, so I downloaded the GTK3 source-code archive and extracted the win32 theme files and added them as a new custom theme, and I couldn't call it win32 anymore as would not be picked up(reserved name, so built-in used instead) so I named it win32x and defined that in the settings.ini - This also means that you now can mod the win32 theme, now called win32x, as there's now two css files available that customizes the default interface and you can switch around colors and whatnot.

Finally I added the two checkboxes I talked about before, enabled by default, for installing libtorrent 1.2.3 and win32 theme. I changed my scripting code to behave a little differen't now with regards to portable install and reg-assocs, as I don't grey out the reg-assoc's anymore when selecting portable install, but just unselects them, as you before had to deselect portable install checkbox to be able to select reg-assocs again, but now you can just select reg-assocs, either one or both, and the portable install checkbox becomes unselected automatically. I added radio-buttons instead of checkboxes for the themes and libtorrent selections, meaning it's now impossible to unselect them all, and I made selecting one to unselect the other. I had some problems again with coding this so had to get little help again from the NSIS lead-dev at the NSIS developer forum.
friedpuppet
New User
New User
Posts: 5
Joined: Thu Dec 19, 2019 10:34 am

Re: Deluge 2.0.x unofficial Windows installer.

Post by friedpuppet »

Thanks for the reply.

The debug mode starts like this:
> deluge.exe -L debug -l d:\deluge.log

And then nothing, not even a windows shows up.

The log file is created though. It has just theese lines:
17:35:07 [INFO ][deluge.ui.ui :70 ] Deluge ui 2.0.3
17:35:07 [DEBUG ][deluge.ui.ui :71 ] options: Namespace(config=None, logfile='d:\\deluge.log', loglevel='debug', logrotate=None, profile=False, quiet=False, remaining=[], torrents=[])
17:35:07 [INFO ][deluge.ui.ui :72 ] Starting gtk ui..

The other PC uses the same installer and connects to the same gentoo box and works fine.

With empty list on this PC the app doesn't crash. As I add a torrent with it - it immediately crashes.

Probably it has to something with system libs here, or anvivirus or whatever.
Well, I'll just stick to web gui for now, I guess.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0.x unofficial Windows installer.

Post by mhertz »

The only thing I can suggest, and i'm not sure I can make it work even then, but regardless, is my previous suggestion to other poster:
In mean time, the only thing I can suggest, is running dependency-walker and profiling deluge.exe and pasting me the log. It's honestly hard for me to fully understand these logs, but they sometimes help me narrow the issue down, and have come in handy several times for me already during making these installers.

If up to it, then here's instructions:

Download dependency-walker zip and unpack: http://www.dependencywalker.com/depends22_x64.zip

Run it and press ctrl+o and select deluge.exe and ok. Some error(s) will show.

Press f7, select the checkbox of third last option(for enabling full paths), and press return. Some errors will show.

Press with mouse on some text to activate cursor on lowest window log, press ctrl+a and ctrl+c, quit dependency-walker and paste the copied log into a new empty document you make e.g. using notepad.exe or whatever.
(There's an option already in dependency-walker for saving the log, but it saves alot of other stuff too(unless i'm missing a second option somewhere), and where over 5mb big in my test of this, so better do it manually and only get the text log.)

You can attach the log txt-file in a post here on forum, or post here in codetags, or e.g. paste to pastebin and post link - whatever.

As said, I don't know if even being able to decipher the solution for your specific issue from that, but it's surely better than now where i'm working in blind, as need to be able to reproduce the issue you have, for actually fixing it.

Thanks again.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0.x unofficial Windows installer.

Post by mhertz »

I'm sorry, I reverted the installers to previous version, as now after finding a way to make the components-page selection-window as big as I need to show all checkboxes without needing scrolling, I found some of the checkboxes have wrong conditional coding, so I have to sort that out(hard to code/test all combinations with 11 checkboxes), so i'll fix that shortly and edit this post again, when fixed/reupp'ed, but you don't need updating anyways if already having it, as only a small theme change unnoticable and rest internal installer changes.

Edit: Fixed now and reupp'ed - Merry christmas and happy hollidays everybody celebrating such :)
friedpuppet
New User
New User
Posts: 5
Joined: Thu Dec 19, 2019 10:34 am

Re: Deluge 2.0.x unofficial Windows installer.

Post by friedpuppet »

Oh. Thanks for the advise.
It all ends with some unhandled exception in ntdll.
Not that it gives much info, i'm afraid.
Attachments
2019-12-26 12_11_10-Dependency Walker - [PYTHONW.EXE].png
2019-12-26 12_11_10-Dependency Walker - [PYTHONW.EXE].png (10.95 KiB) Viewed 8190 times
deluge_deptrack.zip
(48.91 KiB) Downloaded 778 times
asd178
New User
New User
Posts: 8
Joined: Mon Dec 16, 2019 5:19 pm

Re: Deluge 2.0.x unofficial Windows installer.

Post by asd178 »

Thin client in "Status" reports what should be "Uploaded" as "Down Speed" and vice versa. I checked by WebUI.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0.x unofficial Windows installer.

Post by mhertz »

asd178, Yeah that's fixed in git-develop I believe, as I don't see it here on deluge 2.0.4.dev23 unless i'm missing something. (EDIT: Yes, bug in 2.0.3 fixed in 2.0.4.dev23 - I could backport the fix, but don't think it's needed, as both small issue, and since there's already a git-develop installer available to choose from)

friedpuppet, I'm sorry, I cannot decipher what the issue is from log unfortunetly. It doesn't look like any files are mismatched and read from system32 instead of deluge's folder, and i'm thinking it's likely a general deluge issue which for the most part unfortunetly is out of my hands. Sorry again.
Last edited by mhertz on Fri Dec 27, 2019 11:04 pm, edited 1 time in total.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0.x unofficial Windows installer.

Post by mhertz »

Patched file from git-develop, fixing status tab showing reverted upload/download info:

Code: Select all

$instdir\Deluge\Lib\site-packages\deluge\ui\gtk3\glade\main_window.tabs.ui
* [GTK] Fix Status tab download speed and uploaded Calum Lind 2019-10-31

Edit: To clarify, above is only needed for deluge 2.0.3 as already included in 2.0.4.dev23.
Attachments
main_window.tabs.ui.zip
(4.61 KiB) Downloaded 534 times
Last edited by mhertz on Fri Dec 27, 2019 11:17 pm, edited 4 times in total.
dmtml
New User
New User
Posts: 1
Joined: Fri Dec 27, 2019 5:36 pm

Re: Deluge 2.0.x unofficial Windows installer.

Post by dmtml »

Hey all,

I'm running Deluge on my UnRAID server, and also have installed 2.0.4 on my windows machine.

The problem I'm having is with thin client mode. I'm trying to connect to the deluge install on my UnRAID server and that works fine. I can connect in, and Deluge shows me my current download/upload stats, etc. It also shows the number of torrents I have with different labels etc. However, I can't actually see any torrents that are downloading. It is just blank. Shouldn't it be showing me downloads that are already active?

Thank you!
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 2.0.x unofficial Windows installer.

Post by mhertz »

No, that's not normal, and i'm affraid I cannot reproduce it either. These two reported thinclient issues doesn't sound like an installer issue and most general deluge issues are out of my hands. Sorry.

I googled the issue, and I read the same thinclient issue of missing but loaded torrents in several old threads, so not deluge2, but regardless. One issue was a different version of server vs client, as major version need to be the same, but i'm sure you've got that covered.

Another poster showed a screenshot showing the issue you described, and Cas stated: "Try removing each torrent, could be a problem with one being displayed."

Further discussion went:

"How can I remove them if I can't see them?"

"You can remove the torrent files from config and restart"

"But if I remove the torrents they'll stop downloading. Right now they are downloading fine, I don't want them to stop. This is not the first time it happens, I usually wait for the broken torrent to finish downloading, and remove it by logging in to the server and launching Deluge in Client mode."

Source: viewtopic.php?t=47669

This guy had same issue when connecting with webUI, though in another thread then another poster stated it worked fine there and only issue in thinclient(gtkui).

Anyway, the guy above made a debug-log run, and an error was reported there too, so you could test if the error is the same, or if getting one at all, by running 'deluge.exe -L debug -l %userprofile%\Desktop\deluge.log'. Exchange 'debug' to 'error' and change log path, if wanted/preferred(if having writing-rights to current-dir, then you can use "%cd%\deluge.log" as path - path needs be defined on windows in contrary to linux where filename is enough).
Post Reply