Troubleshoot Memory Issues
If you are working with large Files in Figma, then you may run into some issues with memory.
There is currently an active memory limit of 2GB on Files. This is a technical limitation with browsers. Figma serves both the web app and desktop app via a browser.
In this article we'll cover how to address memory issues:
Restore a Previous Version
In some rare circumstances, you may no longer be able to view, edit, or delete the File once your File size reaches this limit. If this happens, you will need to restore a previous version of the File before you can continue.
Note: Any changes you have made to the File between the last version and the restored version will no longer be available.
As the Error message indicated, you won't be able to access the normal version history view, as the file cannot be opened.
Instead, you can recover your previous work via a hidden menu option in the File Browser.
- Navigate to the File Browser.
- Access the hidden Version History menu item using these shortcuts:
Windows: Use [Alt] + [Shift] + Right-Click on the affected File.
Or, use [Alt] + [Shift] + Click on the three ellipses menu.
Mac: Use [Option] + [Shift] + Right-Click on the affected File.
Or, use [Option] + [Shift] + Click on the three ellipses menu.
- Select Restore from version from the options:
- You will then be able to select which version you wish to restore. Click Restore to open the required version:
If you are unable to view the last version of a File, then you may need to go back further. If you're having trouble accessing previous versions, please reach out to the Support Team. Click the " ?" in the bottom-right corner and select "Get Help". Or, send us an email on firstname.lastname@example.org.
Enable Resource Use
If you are working with large Files, then it may be helpful to keep an eye on your memory use.
The Resource Use feature allows you to track a number of useful limits, directly in the canvas:
- Total number of layers in the File
- Total active memory used by the File
- Current memory allocation
To enable Resource Use:
- Go to the menu (three horizontal lines in the top-left corner).
- Search for Resource Use:
- Or, select View > Resource Use to toggle this on:
- The memory allocation tool will then be displayed in the top-left corner of your canvas:
Tip! You can dismiss the Resource Use tool by double-clicking on it in the canvas. Or, by going to the Resource Use setting in the menu and toggling this off.
Managing Memory Usage
There are a number of factors that contribute to memory usage:
The most common reason for running out of memory in Figma is using multiple Instances of a Component within hidden layers. If a Component has a large number of hidden layers, a Figma file can potentially have millions of objects associated with it. This increases the risk of running out of memory.
We recommend that you avoid using hidden layers to represent different states. Instead, create separate Components for each state and switch between them.
Files with multiple Pages or Images
If you have a large file with a significant number of Pages, or lots of high resolution images included, your active memory will be affected.
We recommend splitting up large files into smaller files. This can be done by copying and pasting the content of individual Pages into a new Figma File.
Importing Large Assets
If you have imported a large text, image or vector based file into a Figma file, then this will also affect your memory usage.
The Resource Use tool will allow you to track your current usage (see above).
If you are near the memory limit, you may need to reduce the number of quality of assets you import. Alternatively, you may wish to:
- Break large files into smaller files.
- Compress high resolution images.
- Import complex SVGs in smaller parts.
Check out our Importing Files to Figma article for more information on importing files.