jasonjmcghee / rem

An open source approach to locally record and enable searching everything you view on your Mac.
https://rem.ing
MIT License
2.18k stars 60 forks source link

Intel version gobbling mem #77

Closed cori closed 3 months ago

cori commented 4 months ago

I've been running the intel version on and off on an intermittently-used 2019 16" MBP. I hadn't noted this until recently (so perhaps related to a recent Sonoma developer beta?) but it's been gobbling memory and causing my MBP to crash.

I'd recently recovered from a crash and hadn't yet restarted rem but had activity monitor up and was doing some "normal computing". I started rem and started recording, piddled around a bit and wandered away for a few minutes (maybe 10?). the WindowsServer memoruy was at ~1.5Gb and when i came back was almost at 10Gb. i just grabbed a rem video from a little while before while the laptop was sitting mostly idle and watched WindowsServer grow in memory from 4-5 Gb in the span of a single mp4.

I'm going to stop running it here at least until the next beta update and see how things look then; perhaps others not running the sonoma beta are havign better luck.

jasonjmcghee commented 4 months ago

Wow crazy. Thanks for logging.

Pinning this- serious issue.

Very curious if anyone has any insight as to why this might be happening.

Are we improperly handling a manager that is leaking memory?

cori commented 4 months ago

I'll play around a bit more - I thought I'd uncovered some evidence that rem had been unrelated - running it with nothing else going in both recording and non-recording states for a while without memory impact - but it turns out rem had stopped, so ¯_(ツ)_/¯.

cori commented 4 months ago

ha ok wow that was definitely not what I saw.

on the intel mac, running "nothing" but activity monitor and rem (I guess HomeAssistant was running in the bg - it popped up a window at some point), once i turned on Recording the WindowServer memory immediately started to climb, and reach 19Gb within around 15m.

I grabbed Activity Monitor samples from both WindowServer and rem that I can upload somwhere if they're helpful - no idea how anonymous / secure those are tho. not sure if that's the sort of thing that would help troubleshoot this or not.

For the time being I'm not going to run rem over there until the next Sonoma Beta update as i mentioned, but happy to hellp in any way i can

cori commented 3 months ago

I got a beta update this morning and have had rem recording on my idle MBP on and off for several hours with no noticeable memory impact. I think this was an ephemeral macOS developer beta bug.