Jump to content



Photo

[FREE PLUGIN] Threads Counter - UBot v4 Threading Fixed

threading fixed counter v4

  • Please log in to reply
158 replies to this topic

#21 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 03:15 PM

awesome plugin! although i seem to still have issues with thread counts. i used your exact demo script. I tried with 50 and 100 threads and the thread count was off as well a some of the error pop ups http://prntscr.com/25cdc0



#22 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 03:25 PM

awesome plugin! although i seem to still have issues with thread counts. i used your exact demo script. I tried with 50 and 100 threads and the thread count was off as well a some of the error pop ups http://prntscr.com/25cdc0

You are not using the plugin from the title, instead you are using the plugin that Blumi 40 keeps posting here (Blumi40, can you please open another thread for that plugin instead of discussing it here? ...you are only confusing people).

 

I've had the exact same problem with the plugin you are using, that's why I created this new plugin called "Threads Counter".

 

Earthlingj, please use my plugin instead and let me know if it solved the problems for you.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#23 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 03:33 PM

Ran some more tests. 

 

seems like if you use 'in new browser' you get that local tmp file error... once i removed it i didnt get that error anymore. 

 

secondly, check out this code below. all i did was add a variable "jesus" and an increment. at the end of the run jesus should = whatever COUNT you set, but when running with 100 threads its way off. i then tried adding thread safe container to the increment jesus and still off. so thread safe container is not working 100% i dont think as other people have stated. 

 

 

 

ui drop down("COUNT""100,1000,10000"#Input Count)
ui drop down("Threads""10,20,30,40,50,100,250"#INPUT Threads)
ui stat monitor("Threads (Active/Total):""<b>{#THREADS Active}/{#THREADS Max}</b>")
ui stat monitor("COUNT:"#COUNT)
set(#COUNT#Input Count"Global")
set(#THREADS Max#INPUT Threads"Global")
comment("Reset counter to 0.")
set(#THREADS Active$plugin function("Threads Counter.dll""threads counter""reset"), "Global")
comment("Main Threading Loop")
plugin command("HTTP post.dll""http cookies folder""C:\\Cookies")
set(#jesus, 0, "Global")
loop while($comparison(#COUNT">", 0)) {
    if($comparison(#THREADS Active"<"#THREADS Max)) {
        then {
            comment("Increment Number Of Threads And Store Value to UBot Variable.")
            set(#THREADS Active$plugin function("Threads Counter.dll""threads counter""increment"), "Global")
            THREAD START()
            decrement(#COUNT)
        }
        else {
            wait(0.2)
        }
    }
}
comment("Thread Command")
define THREAD START {
    thread {
        wait(0.5)
        comment("Decrement Number Of Threads And Store Value to UBot Variable.")
        set(#THREADS Active$plugin function("Threads Counter.dll""threads counter""decrement"), "Global")
        plugin command("Open.Framework.dll""Thread safe container") {
            increment(#jesus)
        }
    }
}
comment("Wait For Threads To Close Or Timeout After 20 seconds.")
set(#THREADS Active$plugin function("Threads Counter.dll""threads counter""read"), "Global")
set(#WAIT Count, 0, "Global")
loop while($both($comparison(#THREADS Active">", 0), $comparison(#WAIT Count"<", 10))) {
    set(#THREADS Active$plugin function("Threads Counter.dll""threads counter""read"), "Global")
    increment(#WAIT Count)
    wait(2)
}
comment("Check How Many Threads UBot Sees.")
if($comparison(#THREADS Active">", 0)) {
    then {
        alert("Some threads were not closed/decremented properly.")
    }
    else {
        alert("All threads were closed")
    }
}


#24 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 03:35 PM

You are not using the plugin from the title, instead you are using the plugin that Blumi 40 keeps posting here (Blumi40, can you please open another thread for that plugin instead of discussing it here? ...you are only confusing people).

 

I've had the exact same problem with the plugin you are using, that's why I created this new plugin called "Threads Counter".

 

Earthlingj, please use my plugin instead and let me know if it solved the problems for you.

 

I've tested with both. It seems to happen only when using 'in new browser'. that threw off the thread count as well as the tmp error. when i removed in new browser it worked without error.



#25 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 03:48 PM

I've tested with both. It seems to happen only when using 'in new browser'. that threw off the thread count as well as the tmp error. when i removed in new browser it worked without error.

That error is produced by the other plugin, since I'm not saving any data to files....

 

Please remove the other plugin and test this one only; I can't provide you any help with the 2nd plugin, since I'm not the author, so please open another thread for that one here on forum.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#26 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 03:50 PM

That error is produced by the other plugin, since I'm not saving any data to files....

 

Please remove the other plugin and test this one only; I can't provide you any help with the 2nd plugin, since I'm not the author, so please open another thread for that one here on forum.

nah man, i was getting it by only using yours as well. then i tested with both. 



#27 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 04:03 PM

nah man, i was getting it by only using yours as well. then i tested with both. 

Well...in the code you posted above you used "Threads Safe Container", which is not part of my plugin, but part of another which caused the same errors to pop up when I tested it.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#28 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 04:09 PM

yeah that post was more to show HIM that thread safe container isnt really working 100%. 

 

But when i tested with just YOURS and no thread safe containers, i got the local tmp error when using in new browser and 100/250 threads. if im not using in new browser then it works beautifully. 



#29 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 04:19 PM

yeah that post was more to show HIM that thread safe container isnt really working 100%. 

 

But when i tested with just YOURS and no thread safe containers, i got the local tmp error when using in new browser and 100/250 threads. if im not using in new browser then it works beautifully. 

Can you then post the code that you used with my plugin? I'm trying to reproduce that here but I can't.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#30 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 04:25 PM

Can you then post the code that you used with my plugin? I'm trying to reproduce that here but I can't.

its the exact same code just remove the thread safe container from the increment. anyways ive added a longer delay and now not getting that tmp error and thread count is all dandy :) 



#31 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 04:30 PM

its the exact same code just remove the thread safe container from the increment. anyways ive added a longer delay and now not getting that tmp error and thread count is all dandy :)

Well just use the example code and don't add/change anything...it's working just OK here...on 250 threads, 10000 counts.

 

Why don't you contact me so we can solve this? I sent you a PM.

 

Also, please send me the exact code you used so I can try to reproduce the problem here.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#32 LazyBotter

LazyBotter

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 611 posts
  • LocationManchester
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 05:02 PM

I have been using this plugin with no problems, great plugin! Thank You!  :)


<p>SSUBV53-e1396282301731.png

#33 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 05:07 PM

I have been using this plugin with no problems, great plugin! Thank You!  :)

Glad to hear I'm not the only one for who this plugin works. :)


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#34 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 208 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 November 2013 - 05:18 PM

hahah dont get me wrong, it works great for me :) and im very happy and grateful!

 

but without a small delay of even .1 seconds i was getting that tmp error. Now that i have the .1 delay it works great :) so thank you



#35 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 05:24 PM

hahah dont get me wrong, it works great for me :) and im very happy and grateful!

 

but without a small delay of even .1 seconds i was getting that tmp error. Now that i have the .1 delay it works great :) so thank you

The problem is that you shouldn't get those errors...even without delay.

 

EDIT: I was thinking about the problem you have and it might be that UBot native "thread" command is throwing up those errors. I guess this happens because disks are too slow to write all the files in a short time, so Ubot fails to write a file and errors out when it can't find it later. I have a SSD, so maybe that's why it's working for me and not for you. However, (as you mentioned) I think we should use a small delay so that UBot is able to write to disk.

 

EDIT2: The error started popping up as soon as I added "in new browser" command, so I think the browser is writing to disk and causing errors.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#36 kev123

kev123

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 739 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 November 2013 - 05:55 PM

plugin works fine if your having problems post sample code for ubotdev so he can check it out. Otherwise its a conversation that goes nowhere and helps no one



#37 Walter1

Walter1

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 196 posts
  • OS:Windows Vista
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 20 November 2013 - 02:00 AM

Looking good UbotDev!

 

 

I am only puzzled on how i can keep the list positions apart...

 

Lets say i want to scan a url for something and it exists on the site, then it should delete the url from a list position.

 

But how can i keep the list positions all apart when running 50 threads?



#38 UBotDev

UBotDev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1395 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 20 November 2013 - 09:18 AM

Looking good UbotDev!

 

 

I am only puzzled on how i can keep the list positions apart...

 

Lets say i want to scan a url for something and it exists on the site, then it should delete the url from a list position.

 

But how can i keep the list positions all apart when running 50 threads?

I think the safest way is to handle that in the main/UI thread; when worker thread finishes you should send back some information  - if it should delete URL or now.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#39 Walter1

Walter1

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 196 posts
  • OS:Windows Vista
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 20 November 2013 - 10:18 AM

Hi UbotDev,

 

 

Thanks for the reply man, appreciated.

 

Yeah that would be the best way indeed, think ill start from scratch with this script as a base and then control the stuff with locals and see what it will do.

 

 

K, back to work ;)



#40 jamesfar

jamesfar

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 511 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 21 November 2013 - 02:32 AM

hi UbotDev

 

i try your plugin using the code you provided on the First Post but after i got the "All threads were closed" message the bot is not stopping.

 

Yes all threads are closed but it just the bot is not stopping. I have to add "Stop Script" node after the "All threads were closed" node in order for the bot to stoped

 

Here is the video : http://screencast.com/t/qpyELjRD5m

 

Is this just me or is that the way the plugin works?

 

Thanks


The best proxies provider so far.
* Fast and Great Support. * No software restriction.

* It is favourite proxies provider on GSA forum. * Almost 2000 positive reviews on fiverr. * More than 1000s active clients

 

Try It !






Also tagged with one or more of these keywords: threading, fixed, counter, v4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users