RafidMuhymin / astro-imagetools

Image Optimization tools for the Astro JS framework

Home Page:astro-imagetools-docs.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Pages - Segmentation fault; command exited with code: 139

pavelbinar opened this issue · comments

Hi,

Thank you for the great astro-imagetools package.

I am having an issue building Astro website on https://pages.cloudflare.com

13:05:42.469 | ▶ src/pages/[...path]/index.astro
-- | --
13:05:42.476 | ├─ /index.html (+8ms)
13:05:42.482 | └─ /cs/index.html (+14ms)
13:05:42.483 |  
13:05:42.483 | generating optimized images
13:05:42.483 | Completed in 4.05s.
13:05:42.483 |  
13:05:42.536 | @astrojs/sitemap: `sitemap-index.xml` is created.
13:05:42.536 |  
13:05:45.537 | 11:05:45 AM [build] Waiting for the astro-imagetools integration...
13:06:31.455 | Segmentation fault
13:06:31.471 | Failed: build command exited with code: 139
13:06:32.411 | Failed: error occurred while running build command

It was already discussed over here: https://community.cloudflare.com/t/investigate-segmentation-fault-in-cloudfare-pages/387958 but without any progress.

It seems that the issue is related to the stack size/stack overflow.

Can we somehow debug this issue?

BUMP

Has to do with either image sizes or how many images you have. Just resize your images a little bit and it works again.

I have the same problem. What's strange though is that the log output from astro-imagetools is the same as on my computer where it doesn't segfault.

Does astro-imagetools do anything at the very end that does not generate any console output?