JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 11.06.2020, 03:40
zreenmkr zreenmkr is offline
JD Addict
 
Join Date: Feb 2020
Posts: 174
Default Exit JD but Delay

so i've noticed this problem long ago but didn't give it any thoughts.

i'm in and out of the es alot debuging and jd get slow to respond after a while to (e.g scrolling up/down, right-click ect..). my guess is because of repetitions of running the script over and over again -'debugging'.

due to this sluggishness, I tend to restart jd and that restore the responsiveness untill it happens again.
question: is this suppose to happen? getting slow to response if running script too many times?

here is the 'Exit but Delay' part
once clicked 'Exit JDownloader', it takes a couple of seconds for jd gui to close/disapear (normal stuffs). as soon as jd is fully closed -at lease to my eyes- i quickly startup jd again and jd gui startup instance fully loaded. but then after several seconds could be upto 15secs jd closed itself automatically.

after awhile i started to realize that, although jd gui closed/disapeared from the screen the 1st time but the jd core engine is still running in the background perhaps saving data. so when I thought i started up jd again, it just restore gui briefly and shut itself down one all the core tasks are completed.
question: am i understand this correctly? if i waited long enough after the initial exit and startup jd again to avoid the problem described above.
Reply With Quote
  #2  
Old 11.06.2020, 05:22
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

The fault of the program I used to experience it on was opera12 and earlier.

That said it could be caused due to slow system, common issue with every program specially on a bogged down or slow system more so than one or some apps.

In respects to JDownloader I have not experienced it tbh, other people seem to when memory runs out. Java goes on a continual garbage collection cycle to little to no gain.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 12.06.2020, 12:24
zreenmkr zreenmkr is offline
JD Addict
 
Join Date: Feb 2020
Posts: 174
Default

regarding to jd
Quote:
...slow to respond...
after running es script many many times. so, I think i found out where the problem is. I turns out it the for loop bug.

here is a simple example.
Code:
for (var i = 0; i < 4; i++) {
     sleep(2000);
     alert(i + '/4');
}
alert(i + '/4 - done for loop');

for some reasons the for loop became a while loop. it doesn't exit loop once i > 4 but rather it resets i to 0 and restart the loop again. this loop continue and never exit.

I've dont some double check by placing alert(i + '/4'); inside the for loop and watch alert populating 0/4, 1/4, 2/4, 3/4 then resets to 0/4, 1/4 ect... just like while loop. it never exit the for loop to alert(i + '/4 - done for loop')

i still don't know why but this happen randomly and very often. this explains why jd experiencing slow to respond and cpu usage @45-70% at all time while downloading no files unless restart jd.

thing like this should never happen but weird things happen to me
Reply With Quote
  #4  
Old 12.06.2020, 12:49
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

yeah shouldn't happen without i = meh;
very strange indeed.
See what others can say.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 07:40.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.