Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Error: failed to render screenshot #10

Closed
igor-starostenko-ag opened this issue Oct 23, 2018 · 9 comments
Closed

Error: failed to render screenshot #10

igor-starostenko-ag opened this issue Oct 23, 2018 · 9 comments

Comments

@igor-starostenko-ag
Copy link

Started seeing these errors randomly in different tests:

Errors - 1 tests.

			1) Error: failed to render screenshot



Because this error occurred during a 'after all' hook we are skipping all of the remaining tests.

      at Context.send.then.resp (https://***.com/__cypress/tests?p=cypress/support/index.js-020:161:13)

@applitools/eyes.cypress@3.2.1
cypress@3.1.0

@amitzur
Copy link
Member

amitzur commented Nov 12, 2018

Hi @igor-starostenko-ag, so sorry we took so long to respond! We normally reply within the day.
Does this still happen to you?
If so, could you run the test with logs enabled and send them to us to amit.zur@applitools.com ?

You can enable logs by either defining the environment variable APPLITOOLS_SHOW_LOGS=true or by specifying in the applitools.config.js file the property showLogs: true.

Thanks!

@amitzur
Copy link
Member

amitzur commented Nov 15, 2018

Hi @igor-starostenko-ag , would you like us to take a look at the logs?

@igor-starostenko-ag
Copy link
Author

Hi @amitzur . I haven't ran into this issue since last week. It isn't consistently reproducible. I'll post the logs here if I manage to catch it. Thanks!

@igor-starostenko-ag
Copy link
Author

Now I'm getting the error on every run. Here is the final part of the logs:

2018-11-20T19:08:00Z Eyes: [LOG    ] {} Object.close(): [handlers] close: openErr=null, close=function, checkWindow=function, resources=count:5
2018-11-20T19:08:00Z Eyes: [LOG    ] {} (): closeEyes() aborting when started
    ✓ Test (109415ms)

2018-11-20T19:08:00Z Eyes: [LOG    ] {} (): [server] eyes api: batchEnd timeout
2018-11-20T19:08:00Z Eyes: [LOG    ] {} Object.batchEnd(): [handlers] batchEnd, timeout=180000
2018-11-20T19:08:00Z Eyes: [LOG    ] {} (): Waiting for test results of 1 closed tests. Going to abort 0 tests
2018-11-20T19:08:00Z Eyes: [LOG    ] {} (): errorDigest: diff errors
2018-11-20T19:08:00Z Eyes: [LOG    ] {} (): errorDigest: test errors Error: failed to render screenshot
2018-11-20T19:08:01Z Eyes: [LOG    ] {} (): [server] eyes api: batchEnd timeout
2018-11-20T19:08:01Z Eyes: [LOG    ] {} Object.batchEnd(): [handlers] batchEnd, timeout=180000
2018-11-20T19:08:01Z Eyes: [LOG    ] {} (): [server] error in eyes api: Error: Eyes.Cypress detected diffs or errors during execution of visual tests:
       Passed - 0 tests
       Diffs detected - 0 tests
       Errors - 1 tests
         ✖ Error: failed to render screenshot
    at /my-work-directory/node_modules/@applitools/eyes.cypress/src/plugin/waitForBatch.js:26:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

@amitzur Can you please take a look

@amitzur
Copy link
Member

amitzur commented Nov 21, 2018 via email

@amitzur
Copy link
Member

amitzur commented Dec 2, 2018

Hi @igor-starostenko-ag since we are handling this in our support system, can I close this issue?

@igor-starostenko-ag
Copy link
Author

Yes, feel free to close this issue. Let me know if you need more info from me.

@amitzur
Copy link
Member

amitzur commented Dec 4, 2018

thanks!

@amitzur amitzur closed this as completed Dec 4, 2018
@rocketsurgeonboic
Copy link

This happened to us because of the duplication of testName or tag properties between tests. Copy paste errors.
If the log message would indicate such a thing, that would help diagnosis.

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

No branches or pull requests

3 participants