comfyui-workspace-manager icon indicating copy to clipboard operation
comfyui-workspace-manager copied to clipboard

Failed to execute setItem on Storage: Setting the value of workflow:blah exceeded the quota

Open darkpixel opened this issue 1 year ago • 4 comments

I frequently have problems saving my workflow and I notice a bunch of errors in the dev tools console.

I think it might be workspace-manager that is causing the issue.

Screenshot from 2024-04-03 07-05-52

I don't think my workflow is particularly large, but maybe... :)

darkpixel avatar Apr 03 '24 14:04 darkpixel

Hi can you please expand the error so I can view the callstack of the error? It would be very helpful for debugging, thank you very much!


From: Aaron C. de Bruyn @.> Sent: Wednesday, April 3, 2024 10:09:46 PM To: 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.***> Subject: [11cafe/comfyui-workspace-manager] Failed to execute setItem on Storage: Setting the value of workflow:blah exceeded the quota (Issue #335)

I frequently have problems saving my workflow and I notice a bunch of errors in the dev tools console.

I think it might be workspace-manager that is causing the issue.

Screenshot.from.2024-04-03.07-05-52.png (view on web)https://github.com/11cafe/comfyui-workspace-manager/assets/158380/5b7a1cd8-2f80-491f-bc25-68308d41d1c8

I don't think my workflow is particularly large, but maybe... :)

— Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/335, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOOEVOA6HSBUYIBL45LY3QESVAVCNFSM6AAAAABFVMXNT6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZDGMBUGU4DQNQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Weixuanf avatar Apr 04 '24 17:04 Weixuanf

Sorry for the delay. It took me a bit to grab it.

I'm noticing this starts happening after leaving the browser open and generating images for hours. Eventually it slows to a crawl and stops saving workflows. If I hammer the save button a handful of times it will eventually save instead of throwing the error, and then I close/re-open the tab to free up resources and it's back to being responsive.

Screenshot from 2024-04-04 17-31-44

darkpixel avatar Apr 05 '24 00:04 darkpixel

it seems there are 2 issues:

  1. you run out of the localstorage quota (usually 10mb)... did. you have lots of things stored in localstorage? you can F12 -> Application -> Localstorage to inspect

  2. the our disk db backup .json file becomes too large. I added some try catch around it so it won't throw (https://github.com/11cafe/comfyui-workspace-manager/commit/e6c502cd7a835ffa4c05bca878cc6436f0d18c76). Also we plan to move away from pure json files for db backup and instead using sqlite or some server db for db backup.

Weixuanf avatar Apr 06 '24 09:04 Weixuanf

Hmm...Chrome doesn't tell me how much space I'm using for localstorage...but inspecting it doesn't show too many items...but "workflow" probably has a lot of subkeys and stuff. Doing some searching shows that Edge is the only browser that lets you see how much localstorage you are using.

darkpixel avatar Apr 07 '24 02:04 darkpixel