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

On old DB v1.4 stops collecting if inputscope.db-wal reaches >1024 KB #9

Closed
shenef opened this issue Feb 11, 2021 · 4 comments
Closed

Comments

@shenef
Copy link

shenef commented Feb 11, 2021

This happened when using my old 900+ MB database. Restarting InputScope or repacking the DB did not solve it.
When using a new database it seems to work correctly.
Is there some sort of logging i can enable to see what could cause that?

@suurjaak
Copy link
Owner

There is no easy way to see logging with the compiled binary.

Perhaps the case is simply that SQLite has queued the database changes it needed to do on the old database, but has not yet completed doing them? There were some schema changes on existing tables, those get queued to SQLite's write-ahead log (that's what the .db-wal file is) and carried out in the background. With a large database, the changes might take a while.

What happens if you let InputScope run for a while? Preferably with input logging disabled, so that there are no other constant writes.

@shenef
Copy link
Author

shenef commented Feb 12, 2021

Letting it run without logging doesn't solve the problem. Another thing i noticed is that the 1024KB is only true for my work PC with the big DB. At home with a smaller DB the file reaches a max of 4096 KB and continues to write into the DB but if there is too much activity then it seems to stop working.
It seems like 1.4 doesn't really work well with a 1.3 or older DB. I can make it lock up pretty much instantly by free-scrolling while starting the program. But if i let it create a new DB, then all of those problems disappear.

@suurjaak
Copy link
Owner

Found the problem - there was a bug in the database schema update.

I've put up InputScope v1.4.1 where this should be fixed.

@shenef
Copy link
Author

shenef commented Feb 14, 2021

can confirm that this has been fixed in v1.4.1

@shenef shenef closed this as completed Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants