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

Uncaught DOMException: The quota has been exceeded. #4

Closed
nsatter opened this issue Sep 22, 2021 · 5 comments
Closed

Uncaught DOMException: The quota has been exceeded. #4

nsatter opened this issue Sep 22, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@nsatter
Copy link

nsatter commented Sep 22, 2021

Loving the game but ran into a fatal issue. From a quick search it looks like it is trying to save too much to local storage. Here is the full error message and save game info.

    We saveload.js:15
    We tick.js:18
    39 index.js:20
    (Async: setInterval handler)
    39 index.js:20
    i (index):1
    r (index):1
    t (index):1
    <anonymous> main.e6fa6888.chunk.js:1```

[save info.txt](https://github.com/spotky1004/Resource-Grid/files/7206994/save.info.txt)

@spotky1004
Copy link
Owner

I didn't even know there's a limit in localStorage... I'll try to fix that!

@spotky1004
Copy link
Owner

I wonder what browser you're using.
It looks like localStorage has 5MB of storage in my browser. (I'm using Chrome)

@nsatter
Copy link
Author

nsatter commented Sep 22, 2021

Firefox. From https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria
Looks like it is dynamic based on disk size and total usage.
Looks like it may have been a red herring anyway. Here are the numbers from Resource Grid { quota: 1505755136, usage: 5308411 }

@spotky1004 spotky1004 added the bug Something isn't working label Sep 26, 2021
@spotky1004
Copy link
Owner

I wonder this issue is fixed with this commit a052790

@tristo7
Copy link
Contributor

tristo7 commented Oct 15, 2021

Seeing this in Firefox still, taken from console logs today:

Uncaught DOMException: The quota has been exceeded. main.5565362a.chunk.js:1
    f saveload.js:41
    Kn tick.js:22
    41 index.js:20
    (Async: setInterval handler)
    41 index.js:20
    i (index):1
    r (index):1
    t (index):1
    <anonymous> main.5565362a.chunk.js:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants