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

Memory Leak / CPU Leak when calling specific websites #42

Closed
ghost opened this issue Dec 17, 2020 · 3 comments
Closed

Memory Leak / CPU Leak when calling specific websites #42

ghost opened this issue Dec 17, 2020 · 3 comments
Labels
bug Something isn't working confirmed

Comments

@ghost
Copy link

ghost commented Dec 17, 2020

Please use the search bar at the top of the page and make sure you are not creating an already submitted issue.
Check closed issues as well, because your issue may have already been fixed.

Instruction on how to enable debug and html trace

Follow the instructions from this wiki page

Environment

FlareSolverr Version:
Latest

Docker: [yes/no]
yes

OS:
Centos 8.2

Last Working FlareSolverr Version:
None

Are you using a proxy or VPN? [yes/no]
no

Using Captcha Solver: [yse/no]
no

If using captcha solver, which one:

Description

[List steps to reproduce the error and details on what happens and what you expected to happen]

    static void Main(string[] args)
    {
        MainAsync().Wait();
    }

    static async Task MainAsync()
    {
        var handler = new ClearanceHandler("http://-snip-:8191/")
        {
            UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36",
            MaxTimeout = 60000,
        };

        var client = new HttpClient(handler);
        var content = await client.GetStringAsync("http://cfuam.audiograb.net/hit");
        Console.WriteLine(content);
    }

Logged Error Messages

[Place any relevant error messages you noticed from the logs here.]

[Make sure you attach the full logs with your personal information removed in case we need more information]

Screenshots

[Place any screenshots of the issue here if needed]

Screenshot_1

@abeloin abeloin added bug Something isn't working confirmed labels Dec 17, 2020
@abeloin
Copy link
Collaborator

abeloin commented Dec 17, 2020

Can reproduce on Chromium with puppeteer. Without it, it work.

@ngosang
Copy link
Member

ngosang commented Dec 19, 2020

The issue is in the line const cfChallengeElem = await page.$(selector) The method never returns and the browser is running forever. I think it's time to refactor the code and remove some hacks...

@ngosang
Copy link
Member

ngosang commented Dec 20, 2020

Fixed in FlareSolverr v1.2.1
https://github.com/FlareSolverr/FlareSolverr/releases/tag/v1.2.1

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

No branches or pull requests

2 participants