Skip to content

[gatsby-plugin-sharp] Generating (all) images fails #3757

@LekoArts

Description

@LekoArts

Description

Since the middle of this month (I don't know which version change) the image generation fails if I try to generate all images. I've got images all over my site and Gatsby tells me that it will generate ~ 600 images (since I'm using gatsby-image and responsiveSizes).

Last year everything was fine. During the image generation there were messages (I don't recall them in detail):
MaxEventListener ...
And after that it started in a new line and went on. All images were generated.

Environment

Gatsby version: 1.9.172
"gatsby-plugin-sharp": "^1.6.27",
"gatsby-transformer-sharp": "^1.6.17",
"gatsby-remark-images": "^1.5.41",
Node.js version: 8.1.4
Operating System: Win 10 64bit

Actual result

Now it hangs during the image generation at no specific point.
Generating image thumbnails [==================-------] 402/603 44.3 secs
Sometimes it's at the half, sometimes before or after the middle.

If I remove content and let it build incrementally I can finish the image generation :/

Expected behavior

The image generation should throw an error (it just hangs and doesn't do anything) or work as intended.

Steps to reproduce

I can't provide a sample repo but a Gatsby project with a lot of images + responsiveSizes should be sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions