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

Quota Exceeded #27

Open
bryanberger opened this issue Jun 17, 2022 · 3 comments
Open

Quota Exceeded #27

bryanberger opened this issue Jun 17, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@bryanberger
Copy link
Contributor

Describe the bug
Seems like the global_state in localStorage grows overtime and hits a quota and errors out resulting in the inability to move or interact with the UI at all.

Uncaught DOMException: The quota has been exceeded. main.832ea5e9.chunk.js:1
    a global-state.tsx:450
    <anonymous> self-hosted:1115
    update interpreter.js:259
    m interpreter.js:104
    process scheduler.js:64
    schedule scheduler.js:43
    send interpreter.js:98
    t.prototype.defer/this.delayedEventsMap[e.id]< interpreter.js:739
    (Async: setTimeout handler)
    setTimeout interpreter.js:1258
    t interpreter.js:1257
    defer interpreter.js:735
    exec interpreter.js:783
    execute interpreter.js:198
    update interpreter.js:224
    m interpreter.js:104
    process scheduler.js:64
    schedule scheduler.js:43
    send interpreter.js:98
    onChange scale.tsx:441
    React 11
    bind_applyFunctionN self-hosted:1313
    Jt self-hosted:1276
    unstable_runWithPriority scheduler.production.min.js:18
    React 3
    bind_applyFunctionN self-hosted:1313
    Xt self-hosted:1276
    receiveMessage SelectChild.jsm:272
    receiveMessage SelectChild.jsm:475

To Reproduce
Steps to reproduce the behavior:

  1. Use prism a lot, with a lot of scales

Environment

  • OS: macOS BigSur
  • Browser: Firefox
  • Version: latest
@bryanberger bryanberger changed the title Quote Exceeded Quota Exceeded Jun 18, 2022
@colebemis colebemis added the bug Something isn't working label Jun 19, 2022
@colebemis
Copy link
Contributor

Wow, I didn't know localStorage had a quota. Thank you for reporting this, @bryanberger ! If you have any idea on how to work around this, feel free to open a PR :)

@bryanberger
Copy link
Contributor Author

@colebemis We tried reducing the history size to 25 instead of 50 and debounced the serialization to localStorage that occurs onDrag right now. I haven't seen the error since.

@stevenpetryk
Copy link
Contributor

I'll open a PR at some point with the localstorage serialization changes.

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