testpushpleaseignore / acquisition

GNU General Public License v3.0
25 stars 5 forks source link

When starting the application stash content is not loaded from cache #16

Open aiolos01 opened 2 years ago

aiolos01 commented 2 years ago

When I start acquisition I get a list of all my tabs but they appear empty. The characters are listed with all their items (jewels included) but the tabs need to be loaded from the site which takes a long time on standard. Prices are retained properly (upgraded from xyzz's version) so the cache exists but is apparently not used for tabs (only for chars). After everything is loaded from the site all items show up properly.

testpushpleaseignore commented 2 years ago

A while ago, which creating my fork, that I had changed how the tabs (and not the items) were cached. So I think that this issue should be resolved after one full update from the website, but wasn't sure if you were still seeing this issue? Otherwise since my mod list is a lot longer than what xyzz hardcoded, it does take a bit too to load the items after an update.

aiolos01 commented 2 years ago

I've done many full updates from the PoE site (including multiple today with the latest version) but the issue persists. At startup I only see the items on the chars. All tabs appear empty. With throttling every 60 tabs it takes a long time to load everything but once they're loaded from the site they show up immediately. No delay because of the long mod list.

testpushpleaseignore commented 2 years ago

Could you see if my recent release (v0.9.2) fixes your issue at all? Otherwise if not, then I'll have to keep thinking as to what might be going on.

Every time an update finishes, it should cache the current tabs and items in the local database, which should then reload when relaunching the program. But yeah if you are still seeing this issue, then could you install the DB Browser for SQLite program, and then open up the database (by going to File -> Open Database Read Only...) stored in %LOCALAPPDATA\acquisition\data, and see if you find anything in the "tabs" or "items" tables when going to the "Browse Data" tab? For the "tabs" table, you should see two records in that table, and in the "items" table, you should see as many records as tabs/characters you have in Standard.

aiolos01 commented 2 years ago

As I said the latest version doesn't help.

I opened the most recently modified file (which is also the largest at 350MB). Tabs has indeed 2 records but items has 2800+ (including records for each char I have). Most have a name (I assume that's the tab's internal ID) but some have blank names. The values of all records are non-blank though regardless of the name.

aiolos01 commented 2 years ago

I just noticed that your fix for #18 also fixed this issue as well. Seems I was right in thinking the two were part of the same bug. Two birds with one stone. Nice. Thanks again.