My Figma Plugin crashed when trying to Export while opening my Plugin

Hi there.

I’m developing a Figma plugin.
When I try to export some frame, my plugin gets crash.
And stack trace does not help me. (Stack trace is below)

Error: Saving the document
    at N (figma_app.min.js.br:1467:29637)
    at G0s (figma_app.min.js.br:1469:1154)
    at IO (figma_app.min.js.br:1469:1109)
    at figma_app.min.js.br:2541:98036
    at figma_app.min.js.br:2541:98477
    at figma_app.min.js.br:2536:203277
    at figma_app.min.js.br:2536:103365
    at figma_app.min.js.br:2536:116123
    at figma_app.min.js.br:2542:131589
    at figma_app.min.js.br:2542:37642
    at figma_app.min.js.br:217:3979
    at figma_app.min.js.br:2536:199619
    at figma_app.min.js.br:726:365680
    at figma_app.min.js.br:2542:93677
    at figma_app.min.js.br:2536:55857
    at e6 (figma_app.min.js.br:1686:27317)

My plugin does not care about exporting things.
So I’m stuck in this.

Does anyone have some advise?

Thanks.

This is an old known bug. Just don’t export anything while the plugin is open.

1 Like

Hi Gleb! Thank you for the reply!

So there is no solution, just close the plugin that’s it?

Yep, no solution until Figma fixes this.

1 Like

Still an issue in August 2023! I also found that using Copy as PNG (or SVG) or clicking on the Export button in the properties panel reproduces the issue consistently, regardless of the plugin open. I filed a support ticket for this.

This seems like a significant bug and could potentially result in data loss depending on what you’re doing in the plugin.

We are still having the crash issue here.