File uploads stop with some files

Created on 27 April 2023, almost 2 years ago
Updated 20 November 2023, over 1 year ago

On some workstations - I personally couldn't yet reproduce the problem - upon uploading large files - e.g. above 200 MB - the upload stops and an exception is thrown similar to the one I report below (I used ROOT_DIRECTORY and HOSTNAME in place of the original text for privacy).

Uncaught
Object { message: "\nSi รจ verificato un errore HTTP in AJAX.\nCodice HTTP di risposta: 200\nDi seguito le informazioni di debug.\nPercorso: /node/add/video?element_parents=field_file_video/widget&ajax_form=1\nStatusText: OK\nResponseText: \nFatal error:  Out of memory (allocated 10485760) (tried to allocate 224396424 bytes) in /ROOT_DIRECTORY/web/core/lib/Drupal/Core/File/FileSystem.php on line 76", name: "AjaxError", stack: "@https://HOSTNAME/core/misc/ajax.js?v=10.0.8:184:32\n@https://HOSTNAME/core/misc/ajax.js?v=10.0.8:1798:3\n" }

I left the original Italian parts, but the meaning should be obvious.

"video" is a content type with a single file field that allows to upload one or more files.

I'm stuck, since I cannot even interpret that out of memory matter. Both the PCs where the problem occurs and where the problem does not have quite enough RAM available.

What can I do?

Thanks in advance!

Andrea

--- UPDATE ---
I finally got the error with a couple of files slightly above 200 MB and slightly below 400 MB, but very curiously I repeatedly uploaded a file above 400 MB! Then I tried with dummy files made with dd and found uploads are however OK with files slightly below 200 MB - I cannot yet tell what the edge is...
However, I eventually figured out I can see the error directly in the response to the POST request. I report an example below, with ROOT_DIRECTORY in place of the actual path.

: Out of memory (allocated 14680064) (tried to allocate 380428904 bytes) in on line

๐Ÿ’ฌ Support request
Status

Closed: outdated

Version

10.0 โœจ

Component
File systemย  โ†’

Last updated about 4 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly AppLEaDaY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024