ilpersi / BHBot

A bot that automates a game called Bit Heroes
GNU General Public License v3.0
28 stars 32 forks source link

Chromium pop up...i think help if able #141

Closed E7t7t7 closed 4 years ago

E7t7t7 commented 4 years ago

Started a few days ago will run the bot as normal then will crash randomly. First the bot would crash when I had fishing enabled so I turned that off and the bot would run its course just fine the entire cycle for awhile then randomly crash out. If this is entirely user error just let me know so I can get it fixed :D

Ive attached a photo of the last console message. Windows 10 x64 - VMware Workstation 15 Player (Non-commercial use only) 1_9_2020 11_23_08 PM

E7t7t7 commented 4 years ago

seems to stem when it resets chromium it brings up the window " chrome did not restore properly" then the restore button is there.

is there a way to disable that popup?

Fortigate commented 4 years ago

Looks like a browser issue, the browser page crashes then BHBot crashes as it can't detect anything from the browser.

I use a batch file to force close my browser which gives me the same 'did not restore' popup and don't have any issues

E7t7t7 commented 4 years ago

Looks like a browser issue, the browser page crashes then BHBot crashes as it can't detect anything from the browser. I use a batch file to force close my browser which gives me the same 'did not restore' popup and don't have any issues

its the exact browser suggested in the wiki. odd. anyway to disable that popup?

ilpersi commented 4 years ago

I have the same problem and I am struggling to find a fix. The issue is probably with Chrome non with the bot.

I also think that this is related to the machine hosting the bot did you change something recently?

I can confirm that the pop-up is irrelevant, I had the bot running for weeks with the pop-up out.

E7t7t7 commented 4 years ago

I have the same problem and I am struggling to find a fix. The issue is probably with Chrome non with the bot. I also think that this is related to the machine hosting the bot did you change something recently? I can confirm that the pop-up is irrelevant, I had the bot running for weeks with the pop-up out.

its a fresh w10 pro install on vmware. i can confirm aswell that its an issue within chromium that causes it.

I did alter a properties file since last posting here to see if that helps at all if im right it should disable the popup entirely and ill post here what was done in that case.

E7t7t7 commented 4 years ago

my attempt to disable that popup diddnt work.

I fixed every issue I have with this bot but two.

1 issue is that on my end the bot has problems integrating the fishing bot into bhbot 2 the restore issue with chromium

ilpersi commented 4 years ago

Issue 1 is due to vmware: the fishing bot is reading the screen and when executed in VMWare the screen is handled in a particular way.

For issue 2, what you can try to do is increase the resources for the VM so to make sure that the CPU is never capped.

E7t7t7 commented 4 years ago

Issue 1 is due to vmware: the fishing bot is reading the screen and when executed in VMWare the screen is handled in a particular way. For issue 2, what you can try to do is increase the resources for the VM so to make sure that the CPU is never capped.

I disabled chromiums ability to record browsing history and turned on the tab "Continue running background apps when Chromium is closed" been 1 day which for me is a record hopefully that's the end of it.

as for fishing its fine I just let the bot do its thing and every few ays just run the fisher seperately

E7t7t7 commented 4 years ago

Issue 1 is due to vmware: the fishing bot is reading the screen and when executed in VMWare the screen is handled in a particular way. For issue 2, what you can try to do is increase the resources for the VM so to make sure that the CPU is never capped.

Fishing still doesn't work properly for me in the bot so yeah maybe youre right as per VMware but this isn't a huge issue really.

As for the crash it seems you were correct as for the resources. I have a VMware setup for carious bots that works very well but I suppose not for this for some reason

so setting the ram to 3 over just 2 seemed to get chrome to stfu and run without issue. Ill go ahead and close this now if the same issue arrises for others INCREASE RESOURCES.

ilpersi commented 4 years ago

It is intresting becuase I am not having crashes in this moment as well. May this be related to the events that are available in Bit Heroes?

Let's see what will happen...

E7t7t7 commented 4 years ago

It is intresting becuase I am not having crashes in this moment as well. May this be related to the events that are available in Bit Heroes? Let's see what will happen...

for me personally it was 100% resource management. increasing the available memory to 3 gb has solved all issues (not counting the fishing thing) atleast for me

this is good work man curious are you ever going to put a price tag on this work?

ilpersi commented 4 years ago

this is good work man curious are you ever going to put a price tag on this work?

Thanks for the good words. 😄 For the moment it is not my intention to do so: everybody is free to contribute as preferred (with code, helping with issues or with a donation).