transmission-remote-gui / transgui

🧲 A feature rich cross platform Transmission BitTorrent client. Faster and has more functionality than the built-in web GUI.
GNU General Public License v2.0
3.24k stars 281 forks source link

Hang on close #1153

Open rd1 opened 6 years ago

rd1 commented 6 years ago

TRG sometimes hangs on close, the interface stays on screen but no information is displayed, just the frame.

Sometimes i get a division by zero popup, but mostly just me forcing it to close after 1 or 2 minutes with the red X and the Windows standard popup to ask to "close" or "wait for program to respond".

Win10 x64 Transmission Deamon v2.94 from transmissionbt.com Transmission Remote GUI v5.15.4

leonsoft-kras commented 6 years ago

Did you try to run the program as an administrator?

rd1 commented 6 years ago

this happens after a while in the program, i'll give it a shot and get back to you.

rd1 commented 6 years ago

ok so a couple hours later, starting as admin did not resolve the problem.

now comes the fun part of trying to figure out how to replicate the problem. yay me.

leonsoft-kras commented 6 years ago

try compatibility mode. try to end the connection to the server, and then close the program.

When the program is terminated, it disconnects from the server and writes the data to the ini-file. Probably the problem is somewhere here.

You can find the file folder of transgui.ini and delete it.

rd1 commented 6 years ago

i did delete the ini file earlier this week because of this problem. But its still happening.

it happened once in admin mode. but it was late.

i don't think i can close the connection while its hanging like that. and i sure don't want to have to do it each and every time i want to quit the program.

i wonder if it might be because i minimize it as icon, or because i mess with the columns and adding/removing some with the popup window.

But i'm thinking more like it might be the close connection to the server.

So just thinking out loud here, could it also be because the server is finishing a file transfer from a recently finished torrent and can't respond to TRG's reqs... i wonder, i mean Transmission is not multi-threaded, as seen from all the rotating wait dial on the top right of TRG. if it were M.T. TRG would always get fresh info and never have to wait while transferring a finished torrent..

in that case it would be nice to have some kind of message saying so, so we don't force close trg. something simple like "Waiting for response from server..." or "Moving a torrent please wait..." instead of removing everything from screen. basically send the close connection first, wait for response, if it doesn't come within 5 seconds ask server for what's happening then show it and keep closing. idk if that would be possible, maybe ask before closing for status, if there's nothing to report like a file move then quit.

idk just thinking out loud here. We need more info on what's going on behind the scenes to establish probability.

i think a message, either popup or log file would help in knowing what's happening, is there a command line switch i can use to do that ?

leonsoft-kras commented 6 years ago

It would be easier to develop the program if it were written in C / C ++. We could use the CrashRpt library and do many other things. The program is essentially single-threaded (although this is 99.9% enough). It is extremely difficult to add information messages. In any case, the output of messages does not solve the problem of program failure.

I dont know the solution. Always there is a question - this problem is single (only for you) or for many. Accordingly, a different way to solve the problem.

rd1 commented 6 years ago

the popup/log would be informational, maybe a special beta version of the program.

As for using crashrpt, don't be lazy, put it in the code yourself, when the program ends write every action and the results to a log file one after the other (and close the file each time so if it crashes we know where).

And we can upload it to you for analysis when it happens.

Programmers today, sheesh.

rd1 commented 6 years ago

btw, starting the program as admin isn't great for when you have network shares. They disappear , as is part of windows security.

So back to non-admin mode for TRG.

leonsoft-kras commented 6 years ago
  1. I'm not the first day in programming. You wrote drivel.

  2. There is no admin mode for TRG.

rd1 commented 6 years ago

sigh seriously ? you wrote drivel.

You do know there is admin mode in windows yes ? or are you so inexperienced on windows, that you do not know this ?

You are not helping, it would be more helpful if you actually did some coding to make log files to help us figure out this problem and upload it as a beta.

leonsoft-kras commented 6 years ago
  1. I will not describe all the problems of writing log files. To explain this to you is useless. You suggested - you write. Source codes are available to everyone.

  2. About the admin mode in Windows. Some kind of stupidity, not a question. No comments.

rd1 commented 6 years ago

i knew it, it hangs when the busy wheel is turning and waiting for a response from server.

this needs a graceful exit.

Loki44 commented 4 years ago

I have this problem also