-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
High RAM memory consume previewing gif #3575
Comments
@SalahAdDin What's the file size of the GIF you're uploading? |
1.0 Mb. |
Which is somewhat reasonable given the heavy weight of most GIFs. |
Yes. |
This also bit me just as I was preparing to deploy my first wagtail site! I never had a problem under the development server (Windows 7). Mine is an animated gif, if that matters. Size if 58kB. RAM consumption got so high that my shared host had to kill other processes associated with my account (with my production django app along with it). I can't have wagtail causing downtime.
Using:
So, this is now the only thing stopping me from going live with wagtail. Let me know if I can help in any way. |
I built a wagtail site to serve images, some of the images can be more than 10MB, the site would take memory in GBs and an unbearable CPU time which leading to a 504 response. I guess this is because gif image resizing takes too much resource, but I really don't care if animated images were compressed or not. Can I disable resize for gif images separately? |
Given that these reports have just started appearing recently (and as far as I'm aware there haven't been any recent changes on the Wagtail / Willow side regarding .gif support), I suspect this is a performance regression in the latest version of Wand or Imagemagick. I'd recommend downgrading to an earlier version to try and pinpoint when the regression occurred. |
My problem seems to be solved after upgrading "Wand": {
"version": "==0.4.4",
"hash": "sha256:fb50d0ad4cad995f0b59b13f76bced22682ab80b4299084a2c3c535b225850c9"
}, |
@kxxoling I will test it. |
@SalahAdDin Did the upgrade fix the problem for you as well? |
@kaedroho It still happens: [12/Nov/2017 18:02:30] "POST /admin/images/chooser/upload/ HTTP/1.1" 200 231
[12/Nov/2017 18:02:36] "GET /media/images/deepin-screen-recorder_Select_area_201709020.max-165x165.gif HTTP/1.1" 200 762554
[12/Nov/2017 18:04:21] "GET /admin/ HTTP/1.1" 302 0
[12/Nov/2017 18:04:24] "GET /admin/pages/4/edit/ HTTP/1.1" 302 0
Not Found: /blogs/feed/$
[12/Nov/2017 18:04:41] "GET /admin/login/?next=/admin/pages/4/edit/ HTTP/1.1" 200 3155
[12/Nov/2017 18:04:41] "GET /blogs/feed/$ HTTP/1.1" 404 2548
[12/Nov/2017 18:09:31] "GET /media/images/deepin-screen-recorder_Select_area_201709020.max-165x165.gif HTTP/1.1" 304 0
@kaedroho Ok, it works now, but it have other bug: |
It also happened to me with an 8 MB JPEG, leading to a 400 MB RAM consumption until Linux stops the process, leading to a 502 error on nginx for a few seconds. |
Have the same issue here. Using the following: |
We encountered what appears to be the same issue. After uploading a 600kb animated gif, the images picker in the admin wouldn't even load. Timeouts and memory errors. The solution was to uninstall Wand. |
Also Ran into this issue today. We removed Wand as @evantbyrne suggested, but it seems now any subsequent gif that is added will not work, as all the previous gifs that were added will work.(what i expected). |
There's a couple of fixes to this upcoming:
|
That’s great! We’ll finally have meme websites in Wagtail! |
I'm wondering if anyone has advice on working around this issue. I've tried updating to the 2.7rc, updating Willow, setting |
Having the same issue, I was wondering if there has been any progress on this? |
Loading a gif inside the Administration makes very slow the computer: First time i see this performance inside a Docker container, and i reviewed it in local environment and i got the same result.
Issue Summary
Each time that we upload animated gif and after we go to preview it(after creating the new image or since image section), the computer's memory becomes full and the SO have to kill django server for get back normally.
Steps to Reproduce
gif
imageOr:
Technical details
1.9
.The text was updated successfully, but these errors were encountered: