Firefox silently fails to save to localStorage

Hmm, I don’t think any of them would interfere, but here’s a list:

I’ve disabled Dark Reader and Stylus on Kinopio for the past while (used previously for fake dark mode), and uBlock never ever needs to block any domains on Kinopio (woohoo! haha) but I’ll disable it just in case too, and the others are mostly unrelated.

2 Likes

Ya I don’t think these are the cause , but thanks for looking into it

1 Like

additional report from @adamprocter:

also affects ppl using Brave, chrome

just so i’m sure , @jordanne, did you see the storeLocal error message with every subsequent attempt to save data/cards? Or just the three times and then no warning messages after that?

@adamprocter, are you using windows or mac? do you know if any of your students were on windows?

@jordanne are you using windows or mac?

Using Windows. Turns out I saved the console logs - view here

1 Like

extremely helpful thx

added additional logging info to 🐇 pruned localStorage spaces. not a fix , still working on this , but if you experience this issue in the short term plz let me know again what you get from the logs

I was using brave on macOS to avoid Firefox, other students where using Chrome on windows and same issue some cards just didn’t save. popped a few screen shots of consoles into discord adding here for safe keeping

if you compare screenshot 1 with the last one you can see some of the cards that then went missing.
Could it have something to do with quickly moving between spaces this is when I first noticed it in Firefox I was linking spaces together and moving between them

1 Like

these are both from my mac but I didnt write the comment about Dory… so how did it sync and then go ?

the leg shaking comment the same - most of the missing cards where not created by me . I think mine are missing on both screen shots

1 Like

@adamprocter, @jordanne,
just to double-check are you able to reproduce this consistently/all-the-time, or do you encounter the issue sporadically/unpredictably?

some more possible fixes added, and added a bunch more logging around pruning the cache. Let me know what the logs say if/when you see this again thx!

1 Like

Just got it today.
Logs here
I don’t know if this is related - but I have three monitors now, so I opened up three Kinopio spaces at the same time, one for each screen, hahaha. And that’s when it happened.

2 Likes

hm i’m guessing it’s too late to expand the keys in these messages? (i’ll try to work w this though)

especially the value in :

can you check your firefox version? it looks like a v similar sounding localstorage error was fixed in v85

1 Like

pushed out another potential fix and more logging, still not able to repro this myself :frowning:

1 Like

also added an error notification that should appear whenever a localstorage saving error occurs

Screen Shot 2021-11-15 at 11.25.11 AM

2 Likes

this was seen by @Charles in discord

storeLocal https://kinopio.club/assets/index.803050d6.js:1
    updateUser https://kinopio.club/assets/index.803050d6.js:1
    updateFavoriteSpaceIsEdited https://kinopio.club/assets/index.803050d6.js:1
    Bc https://kinopio.club/assets/vendor.b5b84eb1.js:6
    commit https://kinopio.club/assets/vendor.b5b84eb1.js:6
    commit https://kinopio.club/assets/vendor.b5b84eb1.js:6
    _withCommit https://kinopio.club/assets/vendor.b5b84eb1.js:6
    commit https://kinopio.club/assets/vendor.b5b84eb1.js:6
    commit https://kinopio.club/assets/vendor.b5b84eb1.js:6
    commit https://kinopio.club/assets/vendor.b5b84eb1.js:6
    restoreSpaceComplete https://kinopio.club/assets/index.803050d6.js:1
    Bc https://kinopio.club/assets/vendor.b5b84eb1.js:6
    dispatch https://kinopio.club/assets/vendor.b5b84eb1.js:6
    dispatch https://kinopio.club/assets/vendor.b5b84eb1.js:6
    dispatch https://kinopio.club/assets/vendor.b5b84eb1.js:6
    restoreSpaceInChunks https://kinopio.club/assets/index.803050d6.js:1
    Rc https://kinopio.club/assets/vendor.b5b84eb1.js:1

from the msgs:
he saw the error but The error seems to persist until I close the other tabs and reload twice. cards after the error do not persist (as expected).

perhaps I should also use stronger wording in the error dialog so that ppl know that cards added after seeing it won’t save correctly.

any extra info and context you could add here @charles would be appreciated!

1 Like

Hmm yeah so I think this has happened for me 4 or 5 times and each time I’ve had multiple browser tabs open. (This is something that I do maybe 50% of the time, so it’s unclear whether that itself is the problem.) I’ve noticed that cards that happen after this message shows up are not saved, however I’m pretty sure that cards that were created before this message shows up are.

I’m using firefox version 95.0.2 (64-bit) on an m1 macbook pro. If there’s anything else I can do, I’d be happy to test things out or provide more info!

2 Likes

I’m full time investigating this , using ff 96. When you update your FF, can you let me know if you still see this? (haven’t been able to repro this yet)

1 Like