skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. Following can be the possible reasons for the too much memory consumption:

    • Using widgets excessively (Each widget seperately consumes memory)
    • Complex widgets (widgets with animations)
    • Third-party plugins (possibly some third party plugins xan be poorly written)
    • Wrong rendering mode (Flutter has two rendering modes, software and hardware. Software rendering is slower, but it uses less memory. Hardware rendering is faster, but it uses more memory.)

    For simmetalhost:

    • Reduce the size of your images
    • Use less animations
    • Use less text
    • Use a lighter theme

    Bonus: Close unused to reduce the risk of swap.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search