Closed MWEckert closed 4 years ago
Eventually, it times out and displays,
[1575346009.000][SEVERE]: Timed out receiving message from renderer: 299.226 [1575346009.001][SEVERE]: Timed out receiving message from renderer: -0.002 21:06:49,013 ERROR - Something went wrong with driver restart. Will retry in a few minutes... (sleeping) org.openqa.selenium.TimeoutException: timeout (Session info: chrome=69.0.3497.0) (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90),platform=Windows NT 10.0.17763 x8664) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: [deleted]_ Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.44.609538 (b655c5a60b0b54..., userDataDir: ./chrome_profile}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:51317}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: ignore, unhandledPromptBehavior: ignore, version: 69.0.3497.0, webStorageEnabled: true} Session ID: 5c7b2556850f651154e48911bf46bf7d at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_201] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_201] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_201] at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214) ~[BHBot.jar:?] at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166) ~[BHBot.jar:?] at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40) ~[BHBot.jar:?] at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80) ~[BHBot.jar:?] at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44) ~[BHBot.jar:?] at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) ~[BHBot.jar:?] at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) ~[BHBot.jar:?] at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) ~[BHBot.jar:?] at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:277) ~[BHBot.jar:?] at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:857) ~[BHBot.jar:?] at MainThread.restart(MainThread.java:830) [BHBot.jar:?] at MainThread.run(MainThread.java:922) [BHBot.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_201]
Oh, and sometimes it will find the game element, but doesn't actually do anything. Attempts to 'do raid' forces the raid with zero change. Then it just times out again.
When this is happening, how many Chromium instances is the bot running? Can you check that it is only one?
By any chance does the window title have a 'Select' prefix?
ilpersi: Only one instance of Chromium is running on the desktop. Fortigate: It does not.
I had a similar issue earlier and had the idea to delete the 'chrome_profile' folder. Reran init.bat, and now it seems to be working without issue.
Good to hear, I'll add that fix to the frequent issues list
I am having similar issues and this is happening when Chrome crashes.
In those circumstances, the bot throws a timeout error and the Chromium windows become unresponsive, so when the bot tries to reboot two windows are present.
Recently I'm having a resurgence of this issue. The bot will crash, and appears to dissociate from chromium. So, I only have one (1) window, but it never recovers from what seems like frequent crashes.
java.lang.Thread.getStackTrace(Unknown Source) Misc.getStackTrace(Misc.java:29) MainThread.dumpCrashLog(MainThread.java:786) MainThread.restart(MainThread.java:811) MainThread.restart(MainThread.java:800) MainThread.restart(MainThread.java:886) MainThread.run(MainThread.java:922) java.lang.Thread.run(Unknown Source)
I've had similar issue recently as I've been having internet issues, after a crash (due to no connection) and restart the bot doesn't reassociate with the open chrome session, and hangs.
I think I've figured out what triggers the frequent crashes I was having. Any time the bot couldn't read a value, due to hover text from alerts/notifications/etc, it would be unable to recover and time-out. Then, when it attempted to restart, it couldn't re-associate with the new window.
Timeout is exactly the issue and I've put some code to manage it but it seems it is not effective.
The issue is that when I timeout is triggered, it seems that the bound between the bot and Chrome is broken and there is no way to restore it.
One question: when you get this kind of error, the bot should create a screenshot with the error. What do you see in that screenshot? Is it just the bot window or the whole desktop?
Thank you.
Just the bot window.
@MWEckert The new v44pr1 has some improvements on this issue even if they can not be considered a final solution: can you have a test with it?
Alright. I'll look into it when I get an opportunity.
On Thu, Jan 2, 2020, 09:36 Lorenzo Persichetti notifications@github.com wrote:
@MWEckert https://github.com/MWEckert The new v44pr1 https://github.com/ilpersi/BHBot/releases/tag/v44pr1 has some improvements on this issue even if they can not be considered a final solution: can you have a test with it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilpersi/BHBot/issues/138?email_source=notifications&email_token=ALU25QW33KD775ULQT3IIE3Q3X3YXA5CNFSM4JURQ6CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6PJYY#issuecomment-570225891, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU25QVUHTPEQLQTG6WLNTDQ3X3YXANCNFSM4JURQ6CA .
@MWEckert how is it going? This is not happening anymore for me lately
It's not as frequent, but it still happens. It seems there's a fairly large chance when it resets to dissociate with chromium.
On Fri, Jan 31, 2020, 01:36 Lorenzo Persichetti notifications@github.com wrote:
@MWEckert https://github.com/MWEckert how is it going? This is not happening anymore for me lately
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilpersi/BHBot/issues/138?email_source=notifications&email_token=ALU25QUYQEZWZQA2EDZH7MLRAPPHJA5CNFSM4JURQ6CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKN5K2I#issuecomment-580638057, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU25QWCM7UHU3OMWSZSSWTRAPPHJANCNFSM4JURQ6CA .
Can you please add the useDoNotShareURL 1
parameter to your settings.ini
and try again?
It is not a fix, but it will run BH without the Kongregate interface consuming fewer resources. For me it seems to reduce the issues.
I'll give it a try.
On Fri, Jan 31, 2020, 12:09 Lorenzo Persichetti notifications@github.com wrote:
Can you please add the useDoNotShareURL 1 parameter to your settings.ini and try again?
It is not a fix, but it will run BH without the Kongregate interface consuming fewer resources. For me it seems to reduce the issues.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilpersi/BHBot/issues/138?email_source=notifications&email_token=ALU25QRN6EZG455U67HA2ODRARZQDA5CNFSM4JURQ6CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKPV3AA#issuecomment-580869504, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU25QTN2PCLMNFZZDWGJFTRARZQDANCNFSM4JURQ6CA .
@MWEckert do you have any feedback on how it is going?
Zero noticeable change.
On Sat, Feb 1, 2020, 14:22 Lorenzo Persichetti notifications@github.com wrote:
@MWEckert https://github.com/MWEckert do you have any feedback on how it is going?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilpersi/BHBot/issues/138?email_source=notifications&email_token=ALU25QRXG6IIOVCKKGHZIBTRAXRZZA5CNFSM4JURQ6CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKRG6UQ#issuecomment-581070674, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU25QUHINVG4F3LWDUTZR3RAXRZZANCNFSM4JURQ6CA .
I reviewed the code once more and at the moment there is nothing I am able to change to fix this so I will mark this as wont fix. I am sorry about this.
I can only say that the latest version is pretty stable for me: I have it running from more than a week with no issues so far
I don't know what, if anything, changed, but I've been a lot more stable. Haven't had an issue since the newest version went live.
On Tue, Feb 11, 2020, 14:51 Lorenzo Persichetti notifications@github.com wrote:
I reviewed the code once more and at the moment there is nothing I am able to change to fix this. I am sorry about this so I will mark this as wont fix.
I can only say that the latest version is pretty stable for me: I have it running from more than a week with no issues so far
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilpersi/BHBot/issues/138?email_source=notifications&email_token=ALU25QRCR4YR55X3DBFQ3WLRCMMXLA5CNFSM4JURQ6CKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELOG62Y#issuecomment-584871787, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU25QVKWZYWPJPRTZ2ALUDRCMMXLANCNFSM4JURQ6CA .
@MWEckert I encourage you to update to the new v44.1 just released. If fixes a very long-standing memory leak issue in BHBot core.
Based on my findings, the issue reported in this thread, is affected by resource availability so this can be one more step to increased stability.
Awesome! Thank you so much.
On Fri, Mar 20, 2020, 09:57 Lorenzo Persichetti notifications@github.com wrote:
@MWEckert https://github.com/MWEckert I encourage you to update to the new v44.1 https://github.com/ilpersi/BHBot/releases/tag/v44.1 just released. If fixes a very long-standing memory leak issue in BHBot core.
Based on my findings, the issue reported in this thread, is affected by resource availability so this can be one more step to increased stability.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ilpersi/BHBot/issues/138#issuecomment-601774395, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU25QRDOHDZD7ZA52X5BI3RIOG5XANCNFSM4JURQ6CA .
When I try to load the bot, I get the initial text,
21:01:44,898 INFO - BHBot v43 build on Mon Dec 02 20:59:31 MST 2019 started. 21:01:44,902 INFO - GIT commit id: b6d9a70f1f5d3ebf58a9f1ffec857bc1f095879e time: 2019-11-23T22:45:30+0100 21:01:45,484 INFO - Settings loaded from file 21:01:45,485 INFO - Character: 21:01:46,602 INFO - Bot started successfully! Starting ChromeDriver 2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90) on port 19019 Only local connections are allowed.
And then nothing. I've tried everything but a complete reinstall of chromedriver/chromium. IT was happening sporadically in a previous version, but I would just type 'reset' and it would normally pick it back up. Now I get nothing.