Live data from Hacker News

Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

twitter.com

61–70 of 342 posts

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#61
post #45

Earlier quoted context omitted.

All the M1 Macs can be upgraded to 16 GB, including the Air, and macOS uses memory compression by default, so there can be a bit more life to these machines than you'd otherwise expect. Edit: Since posting this comment, the parent has been edited to include "hope you got the 16G version" -- at the time I replied, jacquesm's comment mistakenly asserted an absolute "maximum memory size of 8G."

The ram is soldered onto the CPU package. How exactly does one upgrade it, short of doing hot-air rework of a dense BGA?

They probably mean upgrade on purchase

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#62
post #58

Earlier quoted context omitted.

They meant upgraded at the time of purchase.

on Apples shop website I can‘t see a 16Gb Macbook Air. Did I miss it? Or can‘t I see it if there is no availability anymore? Anyone a link?

It's a custom build option, I'm guessing you're onto the page with the couple of preset options? If you click "select" on a model you get a second page that lets you customise stuff like RAM and SSD.

This link might work: https://www.apple.com/shop/buy-mac/macbook-air/space-gray-ap...

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#63

Earlier quoted context omitted.

With a maximum memory size of 8G it's a bit anemic so you likely wouldn't get that much life out of it anyway, hope you got the 16G version. Apple is pretty good at the planned obsolescence game, so getting the larger memory would at least help stave that off for a bit. I'm skipping these for now, I run Linux on all my machines and it typically takes a while for the wrinkles to be ironed out, and x86 has much better…

It’s 16G and I just retired my 2012 MacBook Pro because I really wanted to try the M1. It was still going strong after almost a decade of use and got €300 as a trade-in. If that’s Apple‘s idea of planned obsolescence, I support their plan.

Same here. The home iMac Core Duo from early 2008 was finally decommissioned last year, after 12 years (had an SSD change only). Up until that moment it had been the "go to" computer in the home and 24/7 running a Plex server, Sonarr and Transmission.

My 2012 MBA is used daily and heavily by my mother and graphic designer sister. My 2015 MBA replaced that iMac and now I'm trying to find an excuse to replace my current 2019 MBA because M1s are reaaally attractive. Essentially I've convinced myself Apple is anouncing laptops later in the year that look like the newest iMacs, just so I wait.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#64
post #58

Earlier quoted context omitted.

They meant upgraded at the time of purchase.

on Apples shop website I can‘t see a 16Gb Macbook Air. Did I miss it? Or can‘t I see it if there is no availability anymore? Anyone a link?

Just select it and you'll see an option to upgrade to 16G (which adds a whooping $180 to the price): https://www.apple.com/us-hed/shop/buy-mac/macbook-air/space-...

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#66

Could this be related to the earlier reports of excessive SSD wear on M1 Macs?

Just purchased my first Mac after using Linux for most of my adult life. How big of a concern is this? I am seeing mixed reports when looking around - should I be questioning my purchase if I was expecting my M1 Air to last a few years?

AFAIK SSDs are generally replaceable, even in MacBooks. If you can replace it, I wouldn't worry too much

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#67
post #59

Earlier quoted context omitted.

Try this one: https://mrcn.st/t/bomb.gif It at least causes ImageMagick to explode, and generally anything that tries to flatten out the GIF into full canvas-sized frames.

iOS Safari seems to render it with no performance issues. Interestingly, it can’t seem to decide whether the background is black or green—it’s different each time I load the gif.

Browsers and other players will generally be fine, as they render the image progressively. However, editors /processing tools which attempt to load it as a series of frames or a video will usually break, as memory consumption explodes, unless they have a smart disk buffer system to handle it.

I wouldn't be surprised if some poorly implemented players were built on top of abstraction layers that end up flattening the whole thing too and also break, but browsers at least generally do it right.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#68
post #8

Even 360MB seemed a bit high to me so I had to open it up in a few apps to get some perspective. Ristretto: 48.8MB. EOG: 51.3MB. ImageMagick: 169MB. Firefox: 305.1MB. Vivaldi: 185.2MB. Edge: 196.5MB. GIMP: 244.8MB. OS memory usage remained relatively flat once app exited. xUbuntu 20.04.

My GIMP process reached 278MB (93MB of which was shared). According to the Dashboard tab, 60MB of that was cache, including layer thumbnails and mipmaps. It's definitely not inflating the memory footprint more than expected. It's hard to count the total pixels, since every frame has different dimensions.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#69
post #55

Earlier quoted context omitted.

730 frames of a 400x240 pixel image at 8 bits per pixel (which is all GIF allows) is 70MB (plus 768 bytes for the palette). We should be able to load each frame of the GIF many, many times before we reach even 1GB of RAM, let alone 35GB. The x86 version of the same editor can open this GIF in the same way with reasonable memory consumption. This is clearly an issue with either the image editor, or as seems to be the…

I don't like the title, it's as simple as that. No one said there isn't a bug, but not about the gif, it's about editing the gif. This title is like saying a guy killed 10 people with a pen, and it turns out he signed an order for their execution. It's a bug, but nowhere near what the title implies. - Edit: No it's not about the gif, just like it's not about the pen even if it was involved. The editor completely chan…

> but not about the gif, it's about editing the gif.

That sounds like it's about the gif. I don't see the word "viewing" in the title.

Re: Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likely due to memory leak

#70
post #52
post #8

Even 360MB seemed a bit high to me so I had to open it up in a few apps to get some perspective. Ristretto: 48.8MB. EOG: 51.3MB. ImageMagick: 169MB. Firefox: 305.1MB. Vivaldi: 185.2MB. Edge: 196.5MB. GIMP: 244.8MB. OS memory usage remained relatively flat once app exited. xUbuntu 20.04.

It would be very bad if OS memory usage did not return to flat no?

Depends on what you mean, there is no real reason to blank memory just because a program is exited.
Post reply on HN