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

#41 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 21 November 2013 - 10:59 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 stopped

 

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

 

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

 

Thanks

Damn...I didn't notice that happening because I had stop command at the end of my testing code (and some other code bellow).

 

I was able to reproduce that: it worked the first time, and failed the second: http://screencast.com/t/oLo0G4Nu

 

However, that's really strange....it looks like that threads are not actually closed, although we reached "decrement" function inside thread. That makes me think that for some reason UBot doesn't close the threads once the end of thread container is reached. :/ That's why I don't think the problem is in plugin but rather with UBot, because plugin only provides counting of threads, which actually works.

 

As a workaround I think you are safe by adding stop command at the end of the script, since all threads should already be done by then (I don't think your thread code is actually executed at that time).

 

I'm investigating this issue now and will get back with answers later.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#42 kev123

kev123

    Advanced Member

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

Posted 21 November 2013 - 02:04 PM

ubotdev the problem happens when you run threads fast in large numbers or write to variables fast not just with your plugin but under many scenarios.



#43 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 21 November 2013 - 02:49 PM

ubotdev the problem happens when you run threads fast in large numbers or write to variables fast not just with your plugin but under many scenarios.

I only see popups if I add "in new browser" container, else I'm not able to reproduce.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#44 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 - 03:27 PM

Damn...I didn't notice that happening because I had stop command at the end of my testing code (and some other code bellow).

 

I was able to reproduce that: it worked the first time, and failed the second: http://screencast.com/t/oLo0G4Nu

 

However, that's really strange....it looks like that threads are not actually closed, although we reached "decrement" function inside thread. That makes me think that for some reason UBot doesn't close the threads once the end of thread container is reached. :/ That's why I don't think the problem is in plugin but rather with UBot, because plugin only provides counting of threads, which actually works.

 

As a workaround I think you are safe by adding stop command at the end of the script, since all threads should already be done by then (I don't think your thread code is actually executed at that time).

 

I'm investigating this issue now and will get back with answers later.

 

 

 

Waiting for the answer :-)


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 !


#45 Walter1

Walter1

    Advanced Member

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

Posted 22 November 2013 - 05:42 AM

^^^^ Same here, doesnt close after the second run. Odd.

 

 

EDIT: After i started Ubot again and ran my bot again it also kept a thread open btw...



#46 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 22 November 2013 - 09:17 AM

Waiting for the answer :-)

I was testing the code and I think the problem is related to UBot v4 not closing threads for some reason. I think so because I was able to run the same script in UBot v5 which seems to stop when we reach the end of code (even after multiple runs): http://screencast.com/t/q1PHaunHwc5B

 

FYI, threading without plugin in UBot v5 still suffers from the same problems.

 

I've contacted support to ask them to explain why threads don't close in v4 (although I'm not sure if they still support v4) and I also mentioned threading bug in UBot v5 (in case they want me to report a bug if they haven't started working on that already).


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#47 Walter1

Walter1

    Advanced Member

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

Posted 22 November 2013 - 10:04 AM

Hi Ubotdev,

 

 

Thanks for checking things out, really appreciated!



#48 jamesfar

jamesfar

    Advanced Member

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

Posted 22 November 2013 - 11:26 AM

I was testing the code and I think the problem is related to UBot v4 not closing threads for some reason. I think so because I was able to run the same script in UBot v5 which seems to stop when we reach the end of code (even after multiple runs): http://screencast.com/t/q1PHaunHwc5B

 

FYI, threading without plugin in UBot v5 still suffers from the same problems.

 

I've contacted support to ask them to explain why threads don't close in v4 (although I'm not sure if they still support v4) and I also mentioned threading bug in UBot v5 (in case they want me to report a bug if they haven't started working on that already).

 

So it became new problem then. The thread counter fixed but thread is not closed. How to close it?


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 !


#49 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 22 November 2013 - 12:36 PM

So it became new problem then. The thread counter fixed but thread is not closed. How to close it?

As I mentioned above stop at the end of the script should work as workaround (maybe I should bold that as well).


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#50 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 23 November 2013 - 08:13 AM

Hi Ubotdev,

 

 

Thanks for checking things out, really appreciated!

I'm not sure I'll get any answers from support, since they are even denying that threading bug even exists.

 

I'll try one more time to get answers, but I don't have time to argue with them.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#51 innerged

innerged

    Advanced Member

  • Members
  • PipPipPip
  • 93 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 23 November 2013 - 02:04 PM

Nice! thanks alot.



#52 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 27 November 2013 - 12:42 PM

Waiting for the answer :-)

 

I've got the answer from support but it doesn't explain the problem, since they were not able to reproduce that in v4. :/

 

However, they said that programer can look into that, but he is very busy...so I said that they should leave that and rather work on v5 and threading problem there: http://tracker.ubots....com/issues/208

 

That's why I suggest you use "stop" command at the end of the script as workaround for problems in v4 (btw, I've tested the same code in v5 and it  seems to work there OK ).


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#53 mamica

mamica

    Advanced Member

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

Posted 03 January 2014 - 09:55 AM

Can we "noobs" know how to use this plugin?

 

I installed it and copy pasted that example code. And i see all stuff, but how do i for example send mass emails with threads? Or surf list of pages in threads.

 

Where do i need to put my code?



#54 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 03 January 2014 - 11:55 AM

Can we "noobs" know how to use this plugin?

 

I installed it and copy pasted that example code. And i see all stuff, but how do i for example send mass emails with threads? Or surf list of pages in threads.

 

Where do i need to put my code?

The threading code with this plugin or without is very similar, this plugin only provides a thread counter which will allow you faster/proper threading.

 

Well, first you need to prepare "send mass emails"/"surf list of pages" code, and when you have that one working, you place that code into a define command (don't forget to use local variables!) and you call that command from inside THREAD START->thread (from line number 26 for example: http://ubotdev.com/f...reading-example).

 

Hope that helps.

 

Btw, I noticed that Gogetta released some free code which uses this plugin, so you could also check that as an example: http://www.ubotstudi...ed-source-code/


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#55 Sanjeev

Sanjeev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 268 posts
  • OS:Windows 8
  • Total Memory:1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 03 January 2014 - 09:36 PM

Hi UbotDev -

While using your threading plugin , would you recommend the Local dictionary plugin be used instead of the normal set command for setting variables to local ?

Thanks.



#56 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 04 January 2014 - 01:15 AM

Hi UbotDev -

While using your threading plugin , would you recommend the Local dictionary plugin be used instead of the normal set command for setting variables to local ?

Thanks.

I think you are good with UBot local variables, but you can also use "local dictionary" if you want.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#57 Sanjeev

Sanjeev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 268 posts
  • OS:Windows 8
  • Total Memory:1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 04 January 2014 - 02:18 AM

Good to hear that.

Thanks UbotDev!



#58 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 04 January 2014 - 12:13 PM

I noticed that a lot of people has hard times implementing threading with UBot, that's why I decided to provide another example:

http://www.ubotstudi...xed/#entry87936


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 


#59 mamica

mamica

    Advanced Member

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

Posted 05 January 2014 - 12:37 AM

Ok great, thanks. But can you tell me what is input count? I see when it hits zero bot stops. So is this some kind of loop limit?

 

And what do you mean by setting variables to local. I use define command and then call inside the thread a custom command. So i need to set variables in my define to local?



#60 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 05 January 2014 - 09:17 AM

Ok great, thanks. But can you tell me what is input count? I see when it hits zero bot stops. So is this some kind of loop limit?

 

And what do you mean by setting variables to local. I use define command and then call inside the thread a custom command. So i need to set variables in my define to local?

COUNT variable is from the previous example (it was set from UI there), that's why I haven't changed it's name. Yes, COUNT tells UBot how many times it should loop/how many items there are to process.

 

By setting variables to local I mean that define commands that are called from inside the thread should have most of variables local, so that 2 or more defines can run side by side, without effecting each other. I usually only have 2 global variables inside thread and they are global status and threads counter.


CLICK UBotDev.com - Download FREE UBot Plugins!

______________________________________________

 






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