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

slimerjs sometimes get stuck or throw a Segmentation fault #669

Open
amanda94 opened this issue Dec 19, 2017 · 4 comments
Open

slimerjs sometimes get stuck or throw a Segmentation fault #669

amanda94 opened this issue Dec 19, 2017 · 4 comments

Comments

@amanda94
Copy link

versions

  • SlimerJS: 0.10.3
  • Firefox: 52.4.0
  • Operating system: Centos 7.4

Steps to reproduce the issue

I am using slimerjs to log all http requests. And I tried to fill in the input elements then click some button or something to initiate a request.
It got problem when I am requesting the url (http://www.smfms.cn/2016/fms_column.asp?col_id=11).I thought it may be the click and fill part problem, then I remove that part code and I got an error saying Segmentation fault .

Actual results:

when I am using the xvfb-run with --debug=true, It has output some error just like this

JavaScript error: resource://slimerjs/addon-sdk/toolkit/loader.js -> resource://slimerjs/slimer-sdk/webpage.js, line 417: TypeError: win is null
JavaScript error: resource://slimerjs/addon-sdk/toolkit/loader.js -> resource://slimerjs/slimer-sdk/webpage.js, line 417: TypeError: win is null
JavaScript error: resource://slimerjs/addon-sdk/toolkit/loader.js -> resource://slimerjs/slimer-sdk/webpage.js, line 417: TypeError: win is null
JavaScript error: resource://slimerjs/addon-sdk/toolkit/loader.js -> resource://slimerjs/slimer-sdk/webpage.js, line 417: TypeError: win is null
JavaScript error: resource://slimerjs/addon-sdk/toolkit/loader.js -> resource://slimerjs/slimer-sdk/webpage.js, line 417: TypeError: win is null
...
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
JavaScript error: , line 0: too much recursion
...
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
JavaScript error: chrome://slimerjs/content/webpage.js, line 9: TypeError: browser.stop is not a function
...

when I delete the click and fill in part code, it still has the above output, and with the following lines.
2017-12-19T10:00:11.458Z [DEBUG] webpage: close
/usr/share/node/scanner-core/crawl/node_modules/slimerjs/src/slimerjs: line 167: 23805 Segmentation fault "$SLIMERJSLAUNCHER" -app "$SLIMERDIR/application.ini" $PROFILE -no-remote "$@"

Expected results:

@amanda94
Copy link
Author

during my clicking and filling code runs ,it will open some new pages,I thought that might be the problem,but I tried with some other url with a lot of resources, just works fine. I do not know what caused that problem

@laurentj
Copy link
Owner

Could you give us an example of a script which allow to reproduce the issue?

@amanda94
Copy link
Author

I tried to less the code. but it seems still long. example code
I delete the fillin part code, since I found it does not affect the error output and it is also very long
I use xvfb-run, and the output is here,also I delete the last item.click(), the output is here
Hope this can make something

@amanda94
Copy link
Author

also somethimes it seems works right log seems like this.

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

No branches or pull requests

2 participants