Live data from Hacker News

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

twitter.com

21–30 of 342 posts

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

#21
post #12

Earlier quoted context omitted.

From what I could understand, it's related to how much of your workflow runs over the RAM capacity, at which point the memory gets shuffled off to the SSD, and loaded back when it's needed. I got the 8GB RAM version, and been mainly using it for Unity + JetBrains Rider, both demanding around 4-6GB by themselves. Doesn't help neither of them are ARM native, I'd imagine. So I'm in big trouble :)

A suggestion until ARM native Rider is available. We have a few 8GB M1s that are used for .net development using Rider and we're using the DataGrip swap hack proposed here and it's working great (was unusable without it): https://youtrack.jetbrains.com/issue/RIDER-54092

Huh that's a funny hack, will give it a try, cheers!

I wonder if the GoLand/ PyCharm JBR folders will work, since I already have those and they are both ARM native. It's definitely the UI performance that kills me, have no issues with the other editors on the laptop otherwise. Running Unity in parallel likely doesn't help either, though.

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

#22

This is not a gif that somehow causes excessive allocations when rendered, the gif is being opened in a specific editor. The gif has nothing to do with it if anything, opening 700+ frames in an editor is causing a problem. It is a clickbait title trying to take advantage of the fact people will think this was like gif bombs of the past. - Downvoting me won't make your uninteresting bug in the systems layer of a new a…

> gif bombs of the past.

Which would also require opening it in a specific program. This is a strange complaint.

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

#24

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

No. There is no way this has anything to do with that. That's an issue with the OS swapper algorithm, and it should be fixed in macOS 11.4 according to reports.

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

#25

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?

The latest information I have suggests it's fixed in macOS 11.4.

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

#26

This is not a gif that somehow causes excessive allocations when rendered, the gif is being opened in a specific editor. The gif has nothing to do with it if anything, opening 700+ frames in an editor is causing a problem. It is a clickbait title trying to take advantage of the fact people will think this was like gif bombs of the past. - Downvoting me won't make your uninteresting bug in the systems layer of a new a…

> gif bombs of the past. Which would also require opening it in a specific program. This is a strange complaint.

They would require *rendering* in a specific program

This program is an image editor essentially opening 700 tabs, one for each frame.

It's not a "bomb" when you intentionally blow it up...

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

#27

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?

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 support than M1. I do think it is time that we became less fixated on x86 and more CPU architectures is better. Another reason for the skip is that the last two Apple products I've owned (both MacBook Airs) have not lived up to expectation, the one had a keyboard that went bad after only two years with nothing but perfectly normal use, the other has a battery that didn't even go through 50 full charge / discharge cycles and that only holds 5 minutes worth of charge. Both of these issues developed out of warranty.

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

#28

Earlier quoted context omitted.

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?

As you said, mixed reports ( https://news.ycombinator.com/item?id=26244093 ) and not much followup since then. The most common worst-case numbers from that thread, if sustained, would indicate a 4-5 year maximum lifetime. If this actually turns out to be a widespread problem and Apple doesn't address it in a timely update you may see a class-action lawsuit and/or Apple warranty repair service in a few years.

Wouldn't 4 to 5 years of full-day usage be just fine for worst case life expectancy for a laptop?

I've had one that gave up on 3 years, a couple months after warranty ended (that seemed to be quite common for that brand at the time).

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

#29
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.

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.

Post reply on HN