Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image optimization crash #515

Open
dontic opened this issue Sep 17, 2024 · 1 comment
Open

Image optimization crash #515

dontic opened this issue Sep 17, 2024 · 1 comment

Comments

@dontic
Copy link

dontic commented Sep 17, 2024

First of all, let me congratulate you guys on an amazing template.

I'm having a bit of trouble when building a site with image optimization as it crashes because, apparently, it runs out of memory.

I've been trying to debug it to no avail, for every image it takes exponentially more time to optimize it, plus it seems to optimize every image multiple times(?)

I've looked at merged pull requests and issues but couldn't find a similar problem.

Here are some logs of the build stage using Docker, I've highlighted with asterisks the ones that seem to be used when deploying or using preview.

#12 9.882  generating optimized images 
#12 10.56 16:56:19   ▶ /_astro/og_image.DjeSJXm0_2pwumd.webp (before: 8kB, after: 7kB) (+674ms) (1/71)
#12 10.67 16:56:19   ▶ /_astro/cover.Cy96Mp6X_Z1m9dQm.webp (before: 7kB, after: 4kB) (+114ms) (2/71)
#12 11.00 16:56:20   ▶ /_astro/cover.Cy96Mp6X_Z1bQbWV.webp (before: 7kB, after: 9kB) (+330ms) (3/71)
#12 12.10 16:56:21   ▶ /_astro/cover.Cy96Mp6X_DwBGO.webp (before: 7kB, after: 21kB) (+1.09s) (4/71)
#12 12.31 16:56:21   ▶ /_astro/cover.Cy96Mp6X_ZPMXzo.webp (before: 7kB, after: 6kB) (+212ms) (5/71)
#12 12.43 16:56:21   ▶ /_astro/hero-image.BBA2wiYG_Z2rD7VR.webp (before: 8kB, after: 16kB) (+122ms) (6/71)
#12 12.54 16:56:21   **▶ /_astro/hero-image.BBA2wiYG_Z1st96O.webp (before: 8kB, after: 7kB) (+112ms) (7/71)**
#12 12.64 16:56:21   ▶ /_astro/hero-image.BBA2wiYG_Z1msWQQ.webp (before: 8kB, after: 20kB) (+95ms) (8/71)
#12 12.75 16:56:22   ▶ /_astro/hero-image.BBA2wiYG_Zp2L0H.webp (before: 8kB, after: 24kB) (+113ms) (9/71)
#12 12.89 16:56:22   ▶ /_astro/hero-image.BBA2wiYG_KMelP.webp (before: 8kB, after: 31kB) (+140ms) (10/71)
#12 13.07 16:56:22   ▶ /_astro/hero-image.BBA2wiYG_1eVeTD.webp (before: 8kB, after: 39kB) (+179ms) (11/71)
#12 13.37 16:56:22   ▶ /_astro/hero-image.BBA2wiYG_Z1J3OBW.webp (before: 8kB, after: 50kB) (+300ms) (12/71)
#12 13.76 16:56:23   ▶ /_astro/hero-image.BBA2wiYG_eg839.webp (before: 8kB, after: 58kB) (+385ms) (13/71)
#12 14.46 16:56:23   ▶ /_astro/hero-image-2.B6tDytos_ZVdxcU.webp (before: 690kB, after: 49kB) (+706ms) (14/71)
#12 15.21 16:56:24   ▶ /_astro/hero-image-2.B6tDytos_8VBR6.webp (before: 690kB, after: 61kB) (+748ms) (15/71)
#12 16.05 16:56:25   ▶ /_astro/hero-image-2.B6tDytos_16mNIf.webp (before: 690kB, after: 70kB) (+834ms) (16/71)
#12 16.99 16:56:26   ▶ /_astro/hero-image-2.B6tDytos_2hcO5M.webp (before: 690kB, after: 87kB) (+940ms) (17/71)
#12 18.22 16:56:27   ▶ /_astro/hero-image-2.B6tDytos_2r96nH.webp (before: 690kB, after: 100kB) (+1.23s) (18/71)
#12 19.68 16:56:28   ▶ /_astro/hero-image-2.B6tDytos_ZwPX8S.webp (before: 690kB, after: 125kB) (+1.46s) (19/71)
#12 21.70 16:56:31   ▶ /_astro/hero-image-2.B6tDytos_Z1tfFJj.webp (before: 690kB, after: 177kB) (+2.03s) (20/71)
#12 24.28 16:56:33   **▶ /_astro/hero-image-2.B6tDytos_1welnO.webp (before: 690kB, after: 209kB) (+2.57s) (21/71)**
#12 27.21 16:56:36   ▶ /_astro/hero-image-2.B6tDytos_ZGTM9R.webp (before: 690kB, after: 227kB) (+2.93s) (22/71)
#12 31.33 16:56:40   ▶ /_astro/hero-image-2.B6tDytos_Zt12Ug.webp (before: 690kB, after: 297kB) (+4.12s) (23/71)
#12 36.31 16:56:45   ▶ /_astro/hero-image-2.B6tDytos_Z1jlv52.webp (before: 690kB, after: 337kB) (+4.97s) (24/71)
#12 41.31 16:56:50   ▶ /_astro/hero-image-2.B6tDytos_Z1KPHu7.webp (before: 690kB, after: 390kB) (+5.00s) (25/71)
#12 48.33 16:56:57   ▶ /_astro/hero-image-2.B6tDytos_Zpb7GD.webp (before: 690kB, after: 476kB) (+7.02s) (26/71)
#12 58.14 16:57:07   ▶ /_astro/hero-image-2.B6tDytos_Z2pqw0I.webp (before: 690kB, after: 557kB) (+9.81s) (27/71)
#12 69.74 16:57:19   ▶ /_astro/hero-image-2.B6tDytos_1mUWem.webp (before: 690kB, after: 648kB) (+11.60s) (28/71)
#12 85.86 16:57:35   ▶ /_astro/hero-image-2.B6tDytos_Zhkw3I.webp (before: 690kB, after: 737kB) (+16.11s) (29/71)
#12 86.57 16:57:35   ▶ /_astro/hero-image-3.BIu0HDmr_Z25O0Wd.webp (before: 15kB, after: 26kB) (+700ms) (30/71)
#12 87.17 16:57:36   ▶ /_astro/hero-image-3.BIu0HDmr_Z10DPRc.webp (before: 15kB, after: 29kB) (+601ms) (31/71)
#12 87.66 16:57:36   ▶ /_astro/hero-image-3.BIu0HDmr_Z3dE13.webp (before: 15kB, after: 36kB) (+489ms) (32/71)
#12 88.27 16:57:37   ▶ /_astro/hero-image-3.BIu0HDmr_17Bllu.webp (before: 15kB, after: 42kB) (+613ms) (33/71)
#12 88.92 16:57:38   **▶ /_astro/hero-image-3.BIu0HDmr_1Ssszl.webp (before: 15kB, after: 15kB) (+647ms) (34/71)**
#12 89.61 16:57:38   ▶ /_astro/hero-image-3.BIu0HDmr_2a0v66.webp (before: 15kB, after: 51kB) (+688ms) (35/71)
#12 90.52 16:57:39   ▶ /_astro/hero-image-3.BIu0HDmr_ZNYyqu.webp (before: 15kB, after: 68kB) (+918ms) (36/71)
#12 91.93 16:57:41   ▶ /_astro/hero-image-3.BIu0HDmr_Z1Koh1U.webp (before: 15kB, after: 108kB) (+1.41s) (37/71)
#12 93.70 16:57:43   ▶ /_astro/hero-image-3.BIu0HDmr_1f5K6d.webp (before: 15kB, after: 130kB) (+1.77s) (38/71)
#12 96.11 16:57:45   ▶ /_astro/hero-image-3.BIu0HDmr_Z17QrJm.webp (before: 15kB, after: 105kB) (+2.41s) (39/71)
@prototypa
Copy link
Contributor

Hi @dontic

Can you give us more information about the way you use the images? For example, if you import it from several places, something like that.

It would help us to review in detail any bugs that the library may have. Thank you

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

No branches or pull requests

2 participants