I’ve been using my 8GB M1 Macbook Air to make a Flutter mobile app. I’m testing it on an iPhone 14 Pro Max iOS simulator. I recently got a popup saying my system was out of application memory. None of the apps I had open seemed to be taking up that much RAM. I checked in activity monitor and found the process SimMetalHost (iPhone 14 Pro Max: default)
was using around 40GB of RAM. I stopped the process which stopped the simulator. That fixes the error temporarily, but then the issue comes back after an hour or so.
2
Answers
Please check issue number 127482 at Flutter repository (from 4 days ago).
Try to downgrade Flutter to an older version (before 3.10) and see if the behavior persists.
Following can be the possible reasons for the too much memory consumption:
For simmetalhost:
Bonus: Close unused to reduce the risk of swap.