Can't open main dashboard, neverending spinner
Describe the bug The spinner never stops and clicking the chart button does nothing, can't open the main stats dashboard.
System (please complete the following information):
- OS: Debian 13
- Betterbird Version 128.10.0esr-bb26 (64-bit)
Additional context I've had this add-on installed for years and it's always worked fine, in Thunderbird and Betterbird. I've recently converted all my local mail from mbox to maildir format, so that might have confused or corrupted something, but I can still open the settings and it says the cache is empty. I've 15 local identities defined and that's not even all of them i'm sure, plus 10/13 accounts active and like 150,000 emails 😅 Hey I've been an internet nerd since early 90's and have multiple jobs and businesses I'm a busy liom. It's hardly anything to write home about I've read about others with much more.
I turned off the add-on for a while and have restarted Betterbird several times since then. Unfortunately nothing has changed. I'd rather avoid removing the add-on and clearing the settings and storage just because I don't want to have to reconfigure everything, but will go ahead if that's all that's left.
Thanks for this report. Haha no complaints from my side (I've only got 70k emails, but in the 90's I was still a kid, so not much email hoarding there for me 😇 ). 15 identities, 10 accounts and 150k messages shouldn't be a problem at all for ThirdStats.
Have you tried activating the debug mode in the ThirdStats settings and looking into the dev console? Maybe we get a hint of what's happening there. ThirdStats uses Thunderbirds web extension APIs, so if it's really related to switching from mbox to maildir, that might be a Thunderbird issue...
I also opened #463 for those never ending kind of issues, since we have a couple of users that are affected by this.
Thanks for this report. Haha no complaints from my side (I've only got 70k emails, but in the 90's I was still a kid, so not much email hoarding there for me 😇 ). 15 identities, 10 accounts and 150k messages shouldn't be a problem at all for ThirdStats.
Ok cool I thought so...
Have you tried activating the debug mode in the ThirdStats settings and looking into the dev console? Maybe we get a hint of what's happening there.
Nope but I tried it just now and nothing at all shows up in the console! Something must be really borked.
...Ok wait, I checked again just before posting and some console messages did show up now:
02:24:54.437 ⚠️Unrecognized at-rule or error parsing at-rule ‘@-o-keyframes’. options-C9MuXa2N.css:1:737 02:24:54.437 ⚠️Unrecognized at-rule or error parsing at-rule ‘@-o-keyframes’. options-C9MuXa2N.css:1:1011 02:24:54.439 ⚠️Unrecognized at-rule or error parsing at-rule ‘@-o-keyframes’. options-C9MuXa2N.css:1:21563 02:24:54.439 ⚠️Error in parsing value for ‘max-width’. Declaration dropped. options-C9MuXa2N.css:1:21962 02:24:54.726 ❗Uncaught (in promise) Error: Failed to create space with name third_stats: Space already exists for this extension. undefined 02:25:25.271 ⚠️Background event page was not terminated on idle because a DevTools toolbox is attached to the extension. _generated_background_page.html
I guess it's a related to a problem with this third_stats space? What space is it referring to? I didn't notice anything in the storage tab, except for "options" in Extension Storage. I also found some filesystem data in ${profile}/storage/default/moz-extension+++a41b3c3c-a05a-4781-8b68-fb80096fb236^userContextId=4294967295/ and ${profile}/storage/default/moz-extension+++a41b3c3c-a05a-4781-8b68-fb80096fb236/ with various cache data and sqlite databases too...
"Spaces" is a term Thunderbird uses for this toolbar:
So it seems like there is no other way than removing ThirdStats and reinstalling it. I don't think you have to clear the cache/settings. Thunderbird might even remember your settings after reinstalling ThirdStats (but not guaranteed). However I never used Betterbird, so no guarantee here that this helps either.
Ok... yeah I lost that icon in the Spaces toolbar. After Removing and restarting BB and reinstalling TS, the button is back in the Spaces toolbar. The main button in the top toolbar still has a spinner and the button there to open the stats still does nothing. Is that normal? The gear button brings up the options fine, all reset, but i did save a copy of the sqlite databases and will see if i can drop those in or copy settings from them into the new databases. The button in the Spaces toolbar opens up all the stat's, though.
@devmount I'm not seeing anything in the databases i saved, maybe they were corrupted or something. What are the places I can look to for previous settings? ...and I'll restore from a backup... Thanks
The main button in the top toolbar still has a spinner and the button there to open the stats still does nothing. Is that normal?
No. Normally the popup would show an overview of all accounts. I cannot reproduce that on my end. Without any console output, I'm afraid I cannot debug this in any way.
What are the places I can look to for previous settings?
ThirdStats uses local storage to save the add-on settings. So in your ThirdStats dev console, go to the storage tab > extension storage. There is everything ThirdStats stores (options and stats cache).
Sorry for the German screenshot:
I think it just needed time to rebuild the database. Everything seems to be functioning as intended again. Thanks for showing where the settings are saved, I'll see if i can extract those from a backup and manually update them, mostly all the colors I had configured and the list of local identities is what i'm after...
Alright, glad it's working!