Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromedriver not closing properly #40

Closed
michaelhball opened this issue Feb 25, 2023 · 6 comments
Closed

Chromedriver not closing properly #40

michaelhball opened this issue Feb 25, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@michaelhball
Copy link
Owner

          just came back after having my computer off for about eight hours, google chrome has many instances open, so yeah seems to have something to do with that.

Originally posted by @ShiestGuy in #38 (comment)

Hey @ShiestGuy I created a new issue for you here, the place you were posting was for my tracking of a separate issue.

I will investigate this as soon as I can and try to work something out, but in preparation could you please let me know how you're running discogs_alert: which command are you using (docker vs python, etc.), are you running it as a cron job, which interval are you using, how many (roughly) items are in your wantlist etc.

@ShiestGuy
Copy link

im running it through python in a command prompt on windows. I don't think I am running it as a cron job, as I open it manually myself, however I do have it open on startup. There are about 30 items in my wantlist.
hmm

@michaelhball
Copy link
Owner Author

Alright, I'll do my best to work this out this week. Could you also attach some kind of screenshot showing how you know there are many Chrome instances running?

@michaelhball michaelhball self-assigned this Feb 26, 2023
@michaelhball michaelhball added the bug Something isn't working label Feb 26, 2023
@ShiestGuy
Copy link

lgkjsdhfgut
This is what it looks like after a few instances of powering off and on the computer. Only seems to multiply while powered off.

@michaelhball
Copy link
Owner Author

Only seems to multiply while powered off.

Interesting! I suppose it might always be tricky if the computer powers off while the chromedriver is running... That being said, I've pushed a couple of changes that I hope will help.

I found this issue mentioning issues with closing chromedriver.exe on Windows that are specific to a flag I was using, so I've stopped that. And furthermore I realised I wasn't properly shutting down the driver between executions. I'm hoping that the combination of those two changes will make a difference, but I'll leave this issue open until I hear from you that it worked.

As always, you can install the new version with pip install --upgrade discogs_alert

@ShiestGuy
Copy link

from what I see, seems to work great! computer isn't running out of RAM and I've had it open for about two days, no multiple chrome instances in the task manager. thanks for fixing it, runs a lot better now!

@michaelhball
Copy link
Owner Author

Awesome, enjoy! I'll close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants