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
Describe the bug
With versions of this plugin that add png meta data I am getting
CypressError: `cy.task('cp-visual-regression-diff-compareImages')` failed with the following error:
> unrecognised content at end of stream
https://on.cypress.io/api/task
<snip>
Error: unrecognised content at end of stream
at module.exports.SyncReader.process (C:\src\Avius4\UI\node_modules\pngjs\lib\sync-reader.js:43:11)
at module.exports (C:\src\Avius4\UI\node_modules\pngjs\lib\parser-sync.js:68:10)
at Object.read (C:\src\Avius4\UI\node_modules\pngjs\lib\png-sync.js:7:10)
at compareImagesTask (C:\src\Avius4\UI\node_modules\@frsource\cypress-plugin-visual-regression-diff\src\task.hook.ts:85:3
if I look at the PNG for that test I can see that it is invalid (the metadata tEXt block is after the IEND block )
To Reproduce
Update to a current version of this plugin (3.1.5 in this case - but I have not tested other v3 versions)
Run with pluginVisualRegressionUpdateImages=true to recreate all the images
Run a normal test run
see the error
Expected behavior
The generated images should be correct
Please complete the following information:
OS and version: Windows 11
Browser and version: electron(embedded)
Cypress version 11.1
Additional context
I think but am not sure that this only happens on small images
here is an example images example-pngs.zip
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'm looking into this issue, I've also created a bug report on bug tracker of meta-png (your can follow the ticket there as well) as I believe it's an issue with that library.
Let's try to investigate if further.
Describe the bug
With versions of this plugin that add png meta data I am getting
if I look at the PNG for that test I can see that it is invalid (the metadata tEXt block is after the IEND block )
To Reproduce
Expected behavior
The generated images should be correct
Please complete the following information:
Additional context
I think but am not sure that this only happens on small images
here is an example images
example-pngs.zip
The text was updated successfully, but these errors were encountered: