Bliss 194 Posted September 21, 2012 Report Share Posted September 21, 2012 Well this one has annoyed me forever! We know poor old Eddie (your not really old Eddie cant do much about it until awesomium has sorted thier stuff out. Anyway, if this has annoyed you as much as it has annoyed me then your gonna love this one! I figured out how to not suffer from them when they happen. Awesomium can crash but if you use my nice little code below then your bot will carry on after the crash and recover from it. I have tested this out for a few weeks before writing this thread (even in production bots with hundreds of users) and my latest software has hundreds of users with not one complaint about out. Ok Here we go. All you have to do is 3 things to include this in any of your bots which will then allow them to recover from the crash and continue. Now to use this you need to copy the code below into your bot. define CheckForAwesomiumCrash { set(#crashtestresult, "System OK", "Global") set(#crashtest, "started", "Global") thread { loop while(#crashtest = "started") { if($url != $nothing) { then { if($url != "local://base_request.html/") { then { set(#checkforcrashurl, $url, "Global") } } } } wait(1.5) if($url = "local://base_request.html/") { then { navigate(#checkforcrashurl, "Wait") set(#crashtestresult, "crashed", "Global") } } } } } Once you have either copied the above code into your bot then if you use the Run button to make your bots start then place the next line at the very first line of your bot CheckForAwesomiumCrash() If you use defines and buttons then place it at the first line of each define that is called from your button in your ui which starts your software or each button that does something really. At the end of your code (or the end of the code in your define, if your using defines) the very last line you must past this. set(#crashtest, "finished", "Global") What the above does in short is samples the url every 1.5 seconds (you can make this every second if you want, but i found 1.5 seconds to be good and work fine) and if it detects a crash it will navigate back to the last url it was at before the crash. I have also put in the variable #crashtestresult which will say System OK if your software has not crashed and it changes to crashed if it crashes on the awesomium browser crash. It runs in a separate thread so it does not effect your bots and is not a resource hog Thats it really, i hope you enjoy it as much as i have so far If you get stuck (not that you will) or have any questions then give me a shout Jane 6 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted September 21, 2012 Report Share Posted September 21, 2012 Hi Jane, I been doing this workaround for sometime now and its working great on my bots.The only problem with this is when the ubot browser crash pops up. The user need to manually close that in order for the bot to move on.. K Quote Link to post Share on other sites
Bliss 194 Posted September 21, 2012 Author Report Share Posted September 21, 2012 Cool K ty. I forgot to mention - It's for DEV and Pro users only as it uses the thread command (sorry standard users) Quote Link to post Share on other sites
a2mateit 395 Posted September 21, 2012 Report Share Posted September 21, 2012 Testing this now... Thank you! Quote Link to post Share on other sites
Bliss 194 Posted September 22, 2012 Author Report Share Posted September 22, 2012 Cool, im sure you will love it.. Quote Link to post Share on other sites
Big Jay 35 Posted September 25, 2012 Report Share Posted September 25, 2012 Awesome share, thanks for sharing this. I have learned a lot from some of your threads. Thanks again. Quote Link to post Share on other sites
Bliss 194 Posted October 20, 2012 Author Report Share Posted October 20, 2012 Awesome share, thanks for sharing this. I have learned a lot from some of your threads. Thanks again. No problem, anytime. Quote Link to post Share on other sites
AutomationNinja 194 Posted December 15, 2012 Report Share Posted December 15, 2012 Man you just saved me some time. I was just about to work on something like that. Thanks. Quote Link to post Share on other sites
jamesfar 15 Posted January 15, 2013 Report Share Posted January 15, 2013 still confuse how to place the code on my bot. please help Quote Link to post Share on other sites
Bliss 194 Posted January 16, 2013 Author Report Share Posted January 16, 2013 Hey everyone, Since the update which updated awesomium the dev team have changed it from to somthing else.local://base_request.html/ I have not yet had awesomium crash on me yet so i can not modify the code above until this happens. If anyone has any code that can replicate an awesomium crash in the latest versions (not sure if it still happens or not) then please give me a shout and i will modify the above code. The above still works in versions before the awesomium update (think that was 4.2.0 and below but not 100% sure on the version, so please check) Quote Link to post Share on other sites
Security 17 Posted May 18, 2013 Report Share Posted May 18, 2013 Compiling now! This is great. thanks a lot. Quote Link to post Share on other sites
Security 17 Posted May 18, 2013 Report Share Posted May 18, 2013 Doesn't seem to work for me : / but i have code that can replicate the crash.. Its funny cuz it does not crash on any other server i have except one. Quote Link to post Share on other sites
Frank 177 Posted July 14, 2013 Report Share Posted July 14, 2013 Any more thoughts on this thread. This is a problem I need to overcome, especially with multithreading multiple browse sessions. F Quote Link to post Share on other sites
blumi40 222 Posted July 14, 2013 Report Share Posted July 14, 2013 Frank watch out for TJs Plugin to free Memin many situation that helps Quote Link to post Share on other sites
Frank 177 Posted July 14, 2013 Report Share Posted July 14, 2013 Yea I got that one, but it will not deal with a crashed browser, unless I'm missing something. F Quote Link to post Share on other sites
Security 17 Posted July 14, 2013 Report Share Posted July 14, 2013 Yea I got that one, but it will not deal with a crashed browser, unless I'm missing something. FI have it also, does not do anything about the crash. Id like to know what it is, if anything, is missing to make that solve the problem. Quote Link to post Share on other sites
Automator 2 Posted July 30, 2013 Report Share Posted July 30, 2013 Thanks for this, awesome! Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted August 28, 2013 Report Share Posted August 28, 2013 For a long time a wanted to say just two words THANK YOU better late than never. So far it seems to be working fine. Quote Link to post Share on other sites
webpro 31 Posted October 18, 2013 Report Share Posted October 18, 2013 I will have to try this as i get this awesomium crap more often now.Hope it works out for me !! Thanks Bliss Quote Link to post Share on other sites
Bliss 194 Posted October 18, 2013 Author Report Share Posted October 18, 2013 I will have to try this as i get this awesomium crap more often now.Hope it works out for me !! Thanks Bliss Hi, The code above wont work no more, since they did an update back in January.. you need to change the To what ever they are using now. i think its assets but you will have to check. It may work then. The code was sampling the url and if it detected the base_request window which showed when it crashed it would go back to the url it was using before the crash...it was more of a workaround (but did the trick) Quote Link to post Share on other sites
webpro 31 Posted October 19, 2013 Report Share Posted October 19, 2013 Ahhhhhhhh damn. BlissIf you got a couple of spare minutes, it would be cool if you could come out with something new for an old musican trying to code !!!!!I'm not asking, i'm begging hahahahaha Next song's on me... What do you like ?Usually i get paid for it but for you it will be free lol. Chow Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted October 25, 2013 Report Share Posted October 25, 2013 hmm... isn't this issue fixed in v.5 !? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted October 25, 2013 Report Share Posted October 25, 2013 hmm... isn't this issue fixed in v.5 !? Sadly, it's not. Quote Link to post Share on other sites
brusacco 20 Posted March 3, 2014 Report Share Posted March 3, 2014 My bots where running with no problems untill some weeks ago, whats happening? I have no pay updates, so nothing has changed in my side.Any ideas? Getting many many Browser.exe crashes ... cant get a single rountrip of my bots, they are ... useless for now. Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted March 3, 2014 Report Share Posted March 3, 2014 My bots where running with no problems untill some weeks ago, whats happening? I have no pay updates, so nothing has changed in my side.Any ideas? Getting many many Browser.exe crashes ... cant get a single rountrip of my bots, they are ... useless for now. ...unfortunately there isn't much you can do to fix it because it is caused by both the UI and internal browser. This issue is present for more than a YEAR and they have not fixed it nor i would expect it to be fixed soon. Possible fix that may help to minimize the effect if you can clear the cookies and navigate to "about:blank" between the pages/actions. (assuming you are using browser based actions)Try optimizing the UI by using as less statuses as possible and also clear the code by moving all scripts and CSS at the bottom of the UI. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.