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

Splash 3.5 docker image hangs forever #1179

Open
r0oth3x49 opened this issue Apr 17, 2023 · 3 comments
Open

Splash 3.5 docker image hangs forever #1179

r0oth3x49 opened this issue Apr 17, 2023 · 3 comments

Comments

@r0oth3x49
Copy link

First of thanks you so much for this great project.

I am facing an issue with latest splash docker image 3.5 as well as 3.4 both. when we try to run it against https://securityfoster.com it never responds back, even timeout is not triggering, i tried the following lua_script (default ones) within the splash.

function main(splash, args)
  local ok, result = splash:with_timeout(function()
    -- try commenting out splash:wait(3)
    -- splash:wait(3)
    assert(splash:go(args.url))
  end, 2)

  if not ok then
    if result == "timeout_over" then
      return "Cannot navigate to the url within 2 seconds"
    else
      return result
    end
  end
  return "Navigated to the url within 2 seconds"
end

and

function main(splash, args)
  assert(splash:go(args.url))
  assert(splash:wait(0.5))
  return {
    html = splash:html(),
    png = splash:png(),
    har = splash:har(),
  }
end

with both of the script splash is not responding and hangs, I have to stop and re-run the image.
OS: Ubuntu 20.04.6 LTS

@andi4567
Copy link

andi4567 commented May 1, 2023

Well, in my case splash seems to hang at startup. Just tells me that it is listening on port 8050 and nothing else happens.

@nyzsirt
Copy link

nyzsirt commented May 2, 2023

Same problem with other web pages (alikeskin org) It seems splash:wait(3) parameter brokes somethings. Can you try without wait parameter? It worked for me.

Verbose log with wait parameter.

2023-05-02 11:08:39.034201 [render] [140115188771136] loadFinished: ok
2023-05-02 11:08:39.034307 [render] [140115188771136] loadFinished: disconnecting callback 0
2023-05-02 11:08:39.034536 [render] [140115188771136] [lua_runner] dispatch cmd_id=0
2023-05-02 11:08:39.034613 [render] [140115188771136] [lua_runner] arguments are for command 0, waiting for result of 0
2023-05-02 11:08:39.034699 [render] [140115188771136] [lua_runner] entering dispatch/loop body, args=(PyResult('return', True),)
2023-05-02 11:08:39.034801 [render] [140115188771136] [lua_runner] send PyResult('return', True)
2023-05-02 11:08:39.034902 [render] [140115188771136] [lua_runner] send (lua) (b'return', True)
2023-05-02 11:08:39.035167 [render] [140115188771136] [lua_runner] got AsyncBrowserCommand(id=None, name='wait', kwargs={'time_ms': 500.0, 'callback': '', 'onredirect': False, 'onerror': <function Splash.wait..error at 0x7f6f1c073730>})
2023-05-02 11:08:39.035338 [render] [140115188771136] [lua_runner] instructions used: 116
2023-05-02 11:08:39.035461 [render] [140115188771136] [lua_runner] executing AsyncBrowserCommand(id=1, name='wait', kwargs={'time_ms': 500.0, 'callback': '', 'onredirect': False, 'onerror': <function Splash.wait..error at 0x7f6f1c073730>})
2023-05-02 11:08:39.035712 [render] [140115188771136] waiting 500.0ms; timer 140115194400488

@nyzsirt
Copy link

nyzsirt commented May 2, 2023

It seems there is a general problem with splash wait parameter and web pages use gstatic.com

It can be same issue with this: #1167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants