BangleApps icon indicating copy to clipboard operation
BangleApps copied to clipboard

[Popcon] Resetting app favorites randomly

Open RKBoss6 opened this issue 2 months ago • 2 comments

Affected hardware version

Bangle 2

Your firmware version

2v27

The bug

I have used popcon for a while now (3 months), and it will randomly reset after a while, deleting all app favorites tracking, and resetting the count back to zero. When I looked in the files, I saw that the whole file changed, not just the code interpreting it wrong. To test this out, the only advice I can give is to use popcon for a few months, and see if it resets at all.

Installed apps

widlock (0.08), notify (0.14), boot (0.66), alarm (0.52), mylocation (0.11), clkinfosunrise (0.05), kbmulti (0.09), tictactoe (0.03), stacker (0.03), reply (0.03), messages (0.67), locale (0.20), files (0.08), calculator (0.08), chess (0.06), loadingscreen (0.01), kineticscroll (0.05), clkinfocal (0.05), widanclk (0.03), barometer (0.04), 2047pp (0.04), clkshortcuts (0.01), astrocalc (0.09), zambretti (0.01), themes (0.01), qmsched (0.10), clkinfostopw (0.03), wid_edit (0.05), guitar (0.03), clkinfosec (0.02), taglaunch (0.08), myprofile (0.02), clkinfodist (0.01), autoreset (0.02), activityreminder (0.12), swatch (0.07), stlap (0.04), ctrlpad (0.02), setting (0.81), health (0.37), backlite (0.02), powermanager (0.13), magnav (0.07), ios (0.21), banglexercise (0.06), modclock (0.05), clock_info (0.20), antonclk (0.12), tinydraw (0.04), textfacts (0.02), messageicons (0.10), messagegui (0.89), weather (0.31), thermom (0.07), meridian (0.01), inspire (0.03), lato (0.04), bordle (0.04), sched (0.35), fileman (0.04), widmsggrid (0.07), sleepsummary (0.01), messagesmusic (0.05), smartbatt (0.03), smpltmr (0.12), clockbg (0.08), pebblepp (0.12), drained (0.08), f9lander (0.05), phoneremind (0.01), dailycolorclk (0.01), worldclkinfo (0.02), sleeplog (0.23), widbtstates (0.02), widsmartbatt (0.01), popconlaunch (0.05)

RKBoss6 avatar Oct 23 '25 21:10 RKBoss6

It'll be a bug with popcon's cache trimming:

https://github.com/espruino/BangleApps/blob/87590cae26540531bdc9de80a3be22366245ede3/apps/popconlaunch/boot.ts#L25-L34

I'm not at a dev machine for a while but can take a look when I next am

bobrippling avatar Oct 24 '25 10:10 bobrippling

Can you upload your popcon.cache.json after some use? I'm interested in whether the .last is getting updated

Failing finding the bug, we change trimCache() to delete entires whose apps no longer exist

bobrippling avatar Oct 24 '25 10:10 bobrippling