You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@garris yes, my second try is at 1:1
It’s better but travis return positive whereas backstop was not able to finish test and I have some errors in logs.
ChromyJS returned an unexpected error while attempting to capture a selector. { WaitTimeoutError: evaluate() timeout
at EvaluateTimeoutError.ExtendableBuiltin (/home/travis/build/20minutes/colette/node_modules/chromy/dist/error.js:44:28)
at EvaluateTimeoutError.TimeoutError (/home/travis/build/20minutes/colette/node_modules/chromy/dist/error.js:73:128)
at new EvaluateTimeoutError (/home/travis/build/20minutes/colette/node_modules/chromy/dist/error.js:118:145)
at Chromy._evaluateWithReplaces$ (/home/travis/build/20minutes/colette/node_modules/chromy/dist/document.js:484:21)
at tryCatch (/home/travis/build/20minutes/colette/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/home/travis/build/20minutes/colette/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:299:22)
at Generator.prototype.(anonymous function) [as throw] (/home/travis/build/20minutes/colette/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:117:21)
at tryCatch (/home/travis/build/20minutes/colette/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:65:40)
at invoke (/home/travis/build/20minutes/colette/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:155:20)
at /home/travis/build/20minutes/colette/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:167:13
at <anonymous> name: 'WaitTimeoutError' }
I have just verified that asyncCaptureLimit and asyncCompareLimit are working as designed. At this point I think you need to look at why your particular test is failing.
I add log for test scenario label.
It seems fail on ./docs/item-theme-skins.html or the next one ./docs/item-theme-styles.html.
I check this files with html validator, they are valid.
So I’m blocked. All is fine in local environment.
for number 1: open your app in Chrome browser press f12 then click on
console then copy and paste your selector and hit enter. if you find element
wait for your selector to be visible (probably chromy.visible() )
I got the same error. The async limits at 1 did not help, however setting "selectors" to "viewport" from "document" did. So it might be something with chromy with 'document' as the selector.
Edit: Setting asyncCaptureLimit to 1 AND not using "document" together worked. Setting the capture limit to something higher broke it.
I was getting this WaitTimeoutError, too, not running natively, but when switching to run in docker. Happened more often with higher asyncCaptureLimit and more complex pages, but even sometimes with asyncCaptureLimit: 1.
Eventually tracked the problem down to chrome dying with a bus error, and finally tracked this down to running out of space in /dev/shm. Docker allocates 64MB to /dev/shm by default.
Running docker with --shm-size 512m fixed the issue for me. Lets me run with default asyncCaptureLimit: 10.
Reacted by Vladislav Altanov, Kohei Mikami, Yury Shevchenko, Michal Vyšinský, Luke Hall, mt-deva, Tyler Fahey, Tobias Weyer and Evan Mattson
Activity
garris commentedon Sep 2, 2017
Did you try to reduce to 1?
ryuran commentedon Sep 2, 2017
@garris yes, my second try is at 1:1
It’s better but travis return positive whereas backstop was not able to finish test and I have some errors in logs.
garris commentedon Sep 5, 2017
I have just verified that asyncCaptureLimit and asyncCompareLimit are working as designed. At this point I think you need to look at why your particular test is failing.
[-]asyncCaptureLimit and asyncCompareLimit seems not working[/-][+]WaitTimeoutError during test[/+]ryuran commentedon Sep 5, 2017
I add log for test scenario label.
It seems fail on
./docs/item-theme-skins.htmlor the next one./docs/item-theme-styles.html.I check this files with html validator, they are valid.
So I’m blocked. All is fine in local environment.
kiran-redhat commentedon Sep 5, 2017
@ryuran 1. are you about to find that in chrome console ?
If 1 &2 are yes, clone latest master and test. asyncCaptureLimit and asyncCompareLimit we're working fine for me
ryuran commentedon Sep 5, 2017
@kiran-redhat
asyncCaptureLimit: 1https://travis-ci.org/20minutes/colette/builds/271948792 I have the errorkiran-redhat commentedon Sep 5, 2017
ryuran commentedon Sep 5, 2017
No error in my local chrome.
Backstop.js run fine in local environment with all test to green.
I update backstopjs:
And I try to change delay to
200(it was100), but it stops always on the same test.Without error this time but with travis timeout:
https://travis-ci.org/20minutes/colette/builds/271982035
ryuran commentedon Sep 5, 2017
It seems fail most often on test with
<img>reynaldoapb commentedon Sep 5, 2017
Try to kill chrome with shell command
taskkill /F /IM chrome.exeand run everything again.axe312ger commentedon Oct 10, 2017
Turning it down to
worked for me on travis :)
mhavelant commentedon Oct 17, 2017
Hi!
I got the same error. The async limits at 1 did not help, however setting "selectors" to "viewport" from "document" did. So it might be something with chromy with 'document' as the selector.
Edit: Setting asyncCaptureLimit to 1 AND not using "document" together worked. Setting the capture limit to something higher broke it.
garris commentedon Oct 17, 2017
What version of chrome and backstop are you using?
mhavelant commentedon Oct 17, 2017
The newest ones:
Note: I'm running under a dockerized Ubuntu 16.04
tfrijsewijk commentedon Oct 19, 2017
I'm experiencing the same issue, with the same versions as mhavelent
garris commentedon Oct 19, 2017
Hello all. Thank you very much for posting.
It may be possible that #561 (running out of memory) is related to this issue — which only seems to happen on Linux.
@vdekov posted a fix for #561 here... #571
Would it be possible for someone to pull this PR and see if the problem resolves?
mhavelant commentedon Oct 19, 2017
For me, the error
is thrown before the 'BackstopTools have been installed.' step in chromy. So long before comparisons are even considered, in the reference command.
So the PR, although sounding insanely good overall, I don't think will help here.
At least for me, it seems that the 'document' selector is not working with Chromy.
garris commentedon Oct 19, 2017
Oh. Crap. You’re right. Ok — scratch that. 😕
kevineye commentedon Oct 26, 2017
I was getting this WaitTimeoutError, too, not running natively, but when switching to run in docker. Happened more often with higher asyncCaptureLimit and more complex pages, but even sometimes with asyncCaptureLimit: 1.
Eventually tracked the problem down to chrome dying with a bus error, and finally tracked this down to running out of space in /dev/shm. Docker allocates 64MB to /dev/shm by default.
Running docker with
--shm-size 512mfixed the issue for me. Lets me run with default asyncCaptureLimit: 10.garris commentedon Oct 26, 2017
@kevineye Nice debugging — thanks for posting!
garris commentedon Nov 22, 2017
cross referencing this issue... #603 (comment)
Changes in dockerfile:
Changes in dockerfile: (#668)