Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very large files cause DOMException: The serialized keys and/or value are too large #115

Open
efokschaner opened this issue May 26, 2020 · 1 comment

Comments

@efokschaner
Copy link

efokschaner commented May 26, 2020

Not a huge issue, but wanted to raise it as potentially an enhancement.

When I try to import a 230 MB file, I get an uncaught exception, and the web-ide ends up a confused state where, on the next refresh of the webpage, the 230MB file appears in the folder hierarchy but fails to load:

The exception stack in console is:

Uncaught (in promise) DOMException: The serialized keys and/or value are too large (size=236739504 bytes, max=133169152 bytes).
Promise.then (async)
addNewFiles @ app.ts:196
(anonymous) @ app.ts:269
(anonymous) @ FileDrop.ts:31
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
d @ raven.min.js:2

Just speculation on solutions below

The error seems to be coming from indexeddb (by way of localForage) and while I'm sure there's no way anyone wants to want to put 230MB files in local storage, perhaps the web ide could do a pure in-memory, non-persistent mode for files too large for storage? Or, alternatively if there was a way to run the ide with true file access (such as bundled as an desktop app or vscode plugin or something) that would also unblock working with larger files.

@GreyCat
Copy link
Member

GreyCat commented May 27, 2020

I believe currently it's very unlikely that it will be fixed in the current modus operandi of Web IDE. For vscode plugin, however, you can check out fudgepop01's vscode extension (sources).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants