question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High RAM memory consume previewing gif

See original GitHub issue

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.

[30/Apr/2017 10:41:49] "GET /admin/tag-autocomplete/?term=soluci%C3%B3n HTTP/1.1" 200 2
[30/Apr/2017 10:41:53] "POST /admin/images/multiple/2/ HTTP/1.1" 200 32
[30/Apr/2017 10:42:06] "GET /admin/images/ HTTP/1.1" 200 4071
[30/Apr/2017 10:42:06] "GET /media/images/problem.max-165x165.gif HTTP/1.1" 200 522647
[30/Apr/2017 10:42:06] "GET /static/wagtailadmin/images/transparency.svg HTTP/1.1" 304 0
[1]    13384 killed     ./manage.py runserver

Steps to Reproduce

  1. Create a new image
  2. Full all fields
  3. Load a gif image
  4. Save.

Or:

  1. Open and page or image in the admin

Technical details

  • Python version: 3.6.1.
  • Django version: 1.10.7
  • Wagtail version: Hover over the Wagtail bird in the admin, or look in the Settings menu, look in your requirements.txt, or run 1.9.
  • Browser version: Chrome
  • Sistema operativo: x86_64 Linux 4.10.11-1-ARCH
  • Wand version: 0.4.4
  • Pillow version: 4.1.1
  • Imagemagick version: 6.9.8.4-2

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
BertrandBordagecommented, Apr 25, 2019

That’s great! We’ll finally have meme websites in Wagtail!

3reactions
kaedrohocommented, Apr 25, 2019

There’s a couple of fixes to this upcoming:

Read more comments on GitHub >

github_iconTop Results From Across the Web

GIF image playback causes Firefox to eat RAM. Loads the ...
GIF image playback causes Firefox to eat RAM. Loads the same GIF into RAM over and over, without releasing the old one.
Read more >
Question / Help - Redcue How Much RAM Image Rotation Uses
How many is too many images? OBS does decode them all, but it would be hare to use up all your RAM unless...
Read more >
Animated GIF uses over 35GB RAM in Acorn on M1 Mac ...
Sometimes a buggy process (looking at you, Apple…) decides to go haywire and use 30-60 GB of virtual memory. I don't even notice...
Read more >
Reduce memory consumption while loading gif images in ...
Considering that UIImageView stores frames as 4-byte RGBA, this GIF occupies 4 × 10 × 480 × 288 = 5 529 600 bytes...
Read more >
Teamspeak RAM problem with gif?
Well, try this animated gif and verify the amount of memory. ... Then, back to your 6MB gif and if the memory returns...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found