Comments (6)
I can confirm that the fix works like a charm!
from undetected-chromedriver.
Thank you so much, man, for that fix!
I'm really tired of the fact that parsing a few hundred pages completely drains memory. Today I've narrowed down the leak to tab.query_selector (and hence to CDP call that returns items), but tired as hell, used a dirty hack with running nodriver in separate process to completely clear memory, did a reprex for the bug report, and without much hope, I entered "nodriver memory leak" and found your solution that you posted just two days ago! What a happy coincidence!God bless you!
I'm glad I helped you and I really hope that the lead developer pushes this fix ASAP. thank you for the kind words!
from undetected-chromedriver.
Thank you so much, man, for that fix!
I'm really tired of the fact that parsing a few hundred pages completely drains memory. Today I've narrowed down the leak to tab.query_selector (and hence to CDP call that returns items), but tired as hell, used a dirty hack with running nodriver in separate process to completely clear memory, did a reprex for the bug report, and without much hope, I entered "nodriver memory leak" and found your solution that you posted just two days ago! What a happy coincidence!
God bless you!
from undetected-chromedriver.
this is implemented. thanks @zxsleebu
from undetected-chromedriver.
Unfortunately, this fix doesn't work. I also tried using a temporary file and adding a line to the library file - each time a browser.get(url) consumes about 100 KB. Also didn't help: page.close, page del, gc.collect(), etc.
from undetected-chromedriver.
this is implemented. thanks @zxsleebu
glad that you approved this fix. thanks for the library!
from undetected-chromedriver.
Related Issues (20)
- urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=65490): Max retries exceeded with url: /session/31240dfcb6938ff45dac0bff0c28adb4/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002976863E510>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
- line 52, in binary_location raise TypeError(self.BINARY_LOCATION_ERROR) TypeError: Binary Location Must be a String HOT 2
- [NODRIVER] Cross-origin iframes not working HOT 1
- Enhanced ad privacy in Chrome HOT 1
- Faing issue in headless mode
- Detected by Etoro
- Cannot init a driver
- Custom Download Path Not Working with undetected_chrome HOT 3
- There is a website that may still be blocked HOT 3
- Package not run when i use python 3.12+ HOT 1
- [nodriver] select frame
- headless mode is 400 error HOT 1
- [nodriver]How to select the frame or click 'Verify you are human' HOT 1
- cannot connect to chrome at 127.0.0.1:47585 from chrome not reachable HOT 2
- nodriver - how I can identify Javascript alert in the screen and click on OK HOT 1
- [nodriver] Find an element in an element
- [nodriver] Browser.stop throws exception if browser connection has failed
- Discord detects selenium (undetected-chromedriver)
- [nodriver] How to set language HOT 1
- [nodriver]How to get HttpOnly cookies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from undetected-chromedriver.