Removed unused lock, allowing usage on Lambda#1550
Open
filipopo wants to merge 2 commits intoultrafunkamsterdam:masterfrom
Open
Removed unused lock, allowing usage on Lambda#1550filipopo wants to merge 2 commits intoultrafunkamsterdam:masterfrom
filipopo wants to merge 2 commits intoultrafunkamsterdam:masterfrom
Conversation
|
good find- bumping this. |
Author
|
@ultrafunkamsterdam Please do check this so I no longer have to maintain a fork of this project with just one line removed hah |
|
Bumping this. This is also the reason why I get "..../multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown" when running undetected in a mutiprocessing process. import undetected_chromedriver as uc # just importing it leads to the leakage
import multiprocessing
def worker(task_id: int):
print(f'worker {task_id}')
def run():
processes = []
# Launch multiple processes
for i in range(1):
process = multiprocessing.Process(target=worker, args=(i, ))
processes.append(process)
process.start()
# Wait for all processes to complete
for process in processes:
process.join()
if __name__ == '__main__':
run() |
Author
|
Maybe if this was branded as a "Fixed memory leak" it would get some more attention @KamilMroczek ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #441, #772 and #975
This line of code does nothing? and it's preventing undetected-chromedriver from working on AWS Lambda:

I have made a minimal working example with this change so correct me if I'm wrong but removing this line doesn't break anything:
https://github.com/filipopo/undetected-chromedriver-lambda