Making WordPress.org

Opened 3 years ago

Last modified 8 months ago

#6142 new defect (bug)

Photo Upload Fails

Reported by: markvanjaarsveld's profile MarkvanJaarsveld Owned by:
Milestone: Priority: normal
Component: Photo Directory Keywords:
Cc:

Description

Trying to upload an Image
IMGP0178.JPG size 12.9 MB and get the following error,
BLANK Screen and url https://wordpress.org/photos/wp-admin/admin-ajax.php

This is the 4th time I have encountered this error and the "failed" submissions are now stuck in my moderation queue, so only able to upload 1 image currently, and if I have another failure I would be unable to upload anything,...details below
Submissions awaiting moderation

You can have up to 5 photos in the moderation queue at a time. You currently have 4.
File Submission Date Caption
(unknown) 2022-02-26 Gilded Icons
(unknown) 2022-02-24 Parròquia de Nostra Senyora del Consol, Altea, Spain
(unknown) 2022-02-19 Spanish Street Scene
(unknown) 2022-02-19 Spanish Street Scene

Attachments (1)

Firefox_Screenshot_2022-02-26T10-38-49.647Z.png (52.1 KB) - added by MarkvanJaarsveld 3 years ago.
Screenshot of moderation queue

Download all attachments as: .zip

Change History (16)

@MarkvanJaarsveld
3 years ago

Screenshot of moderation queue

#1 follow-up: @Otto42
3 years ago

There is a limit of 10 MB for uploads, 12 is too large.

#2 follow-up: @Otto42
3 years ago

Question: Were all your photos this large? If so, then that would explain some things we've been seeing.

#3 in reply to: ↑ 2 @MarkvanJaarsveld
3 years ago

Replying to Otto42:

Question: Were all your photos this large? If so, then that would explain some things we've been seeing.

Yes! All the "failures" had a file size greater than 10MB.
Dimensions of 6000x4000 - Most of my image files are between 10 -15MB.
I have reduced the dimensions of the images to 4000x3000 same resolution and the new files upload without a problem.

I will keep this 10MB limit in mind for future uploads.

Many thanks

#4 in reply to: ↑ 1 @MarkvanJaarsveld
3 years ago

Replying to Otto42:

There is a limit of 10 MB for uploads, 12 is too large.

I have checked back on previous successful uploads, and I did manage to upload image files with size greater than 10MB
Example 13.8 MB :- https://wordpress.org/photos/photo/6556217670/ without a problem??
Another 12.7 MB : https://wordpress.org/photos/photo/9106210cf0/

Version 1, edited 3 years ago by MarkvanJaarsveld (previous) (next) (diff)

#5 @webdados
2 years ago

I'm experiencing this for photos not larger than 10MB: https://meta.trac.wordpress.org/ticket/6439

#6 follow-up: @webdados
2 years ago

I suspect this is not directly related to file size but rather something is failing when they're getting the information from the picture with PHP, and it only fails in some particular scenarios (which I have no idea what are).

#7 in reply to: ↑ 6 @MarkvanJaarsveld
2 years ago

Replying to webdados:

I suspect this is not directly related to file size but rather something is failing when they're getting the information from the picture with PHP, and it only fails in some particular scenarios (which I have no idea what are).

My experience was that the Dimensions of the Images(not file size), where exceeding the limit of 7500x7500 pixels, and that caused the failures,...

Last edited 2 years ago by MarkvanJaarsveld (previous) (diff)

#8 @dd32
2 years ago

#6439 was marked as a duplicate.

#9 @dd32
2 years ago

#6430 was marked as a duplicate.

#10 @dd32
2 years ago

There's been an uptick in reports in the last month of this, I suspect this might be related to the fact that we generate the resized versions of the images, and as of #core55443 also webp images. That corresponds with the OOM fatals being during image-save class-wp-image-editor.php:601.

To take https://wordpress.org/photos/photo/33462fcf29/ for example, the following files were generated:

33462fcf296c37071.52699659-300x225.jpg
33462fcf296c37071.52699659-300x225-jpg.webp
33462fcf296c37071.52699659-1024x768.jpg
33462fcf296c37071.52699659-1024x768-jpg.webp
33462fcf296c37071.52699659-150x150.jpg
33462fcf296c37071.52699659-150x150-jpg.webp
33462fcf296c37071.52699659-768x576.jpg
33462fcf296c37071.52699659-768x576-jpg.webp
33462fcf296c37071.52699659-1536x1152.jpg
33462fcf296c37071.52699659-2048x1536.jpg
33462fcf296c37071.52699659.jpg
33462fcf296c37071.52699659-jpg.webp

although some images, such as https://wordpress.org/photos/photo/91462f0d89/ don't generate any resized variants / webp's - the thumbnails (including original, and 2x in the srcset) and singular view all use the full size image.

(Both of the above images were uploaded within the last 24hrs)

#11 @dd32
2 years ago

although some images, such as https://wordpress.org/photos/photo/91462f0d89/ don't generate any resized variants

This has the additional side-effect that the "Download" dropdown lists the various sizes, but all links point to the original file rather than a resized variant.

The affected uploads in that group appear to be those where the webp conversion ran out of memory on the smaller resizes, but had enough memory to complete the initial conversion of the original fullsize image.

These OOM upload errors are also what's causing the Photo Moderation admin to show incomplete uploads, no photo shown and likely the photo caption of Untitled post submission.

#12 @dd32
2 years ago

In 12023:

Photo Directory: Disable jpeg -> webp conversions, due to significant increased memory usage causing uploads to fail.

See #6142.

#13 @dd32
9 months ago

#7479 was marked as a duplicate.

#14 @coffee2code
8 months ago

#7525 was marked as a duplicate.

#15 @coffee2code
8 months ago

#7463 was marked as a duplicate.

Note: See TracTickets for help on using tickets.