creevey icon indicating copy to clipboard operation
creevey copied to clipboard

"unrecognised content at end of stream" for Mac/Windows team

Open varya opened this issue 3 years ago • 5 comments

The screenshots made under Unix (Mac) don't work on Windows. Every single story gave this error

[START:chrome.desktop:4468] Utilities/Typography/Link
[FAIL:chrome.desktop:4468] Utilities/Typography/Link
   Error: unrecognised content at end of stream
    at module.exports.SyncReader.process (node_modules\pngjs\lib\sync-reader.js:43:11)
    at module.exports (node_modules\pngjs\lib\parser-sync.js:68:10)
    at Object.exports.read (node_modules\pngjs\lib\png-sync.js:7:10)
    at compareImages (node_modules\creevey\lib\server\worker\chai-image.js:48:39)
    at assertImage (node_modules\creevey\lib\server\worker\chai-image.js:99:11)
    at Proxy.matchImage (node_modules\creevey\lib\server\worker\chai-image.js:107:28)
    at Context.storyTest (node_modules\creevey\lib\server\stories.js:43:5)

Screenshot_2021-05-24 Creevey

Perhaps it is related to https://github.com/lukeapage/pngjs/issues/235 ?

We use

node v14.15.4 npm 6.14.4 creevey 0.7.28

varya avatar May 24 '21 11:05 varya

Having the same problem.

hamitzor avatar Feb 14 '22 14:02 hamitzor

I strongly believe Git LFS has something to do with this, as @varya pointed out, because when I have PNGs that have not been interacted with Git LFS the error disappears.

hamitzor avatar Feb 14 '22 15:02 hamitzor

Yes, I got the same with an Azure Pipelines build when we used Git LFS in our repo. Removing Git LFS resolved the problem.

mwiemer-microsoft avatar May 13 '22 20:05 mwiemer-microsoft

I have this issue without git LFS being installed on our repo. Anyone have a workaround?

blingerson avatar Dec 08 '22 00:12 blingerson

I have this issue without git LFS being installed on our repo.

srpalwaidynamite avatar Feb 16 '23 19:02 srpalwaidynamite