Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Database got corrupted and created an empty task, deleting it, deleted everything #291
I have searched for existing issues that may be the same as or related to mine.
I'm submitting a bug report for version:
One day I noticed an empty task in the task list. Clicking on it will open an empty task to edit.
I had a backup to restore from, and restore went fine. I since deleted the offending entries manually using sqlite, but here they are for reference, so you can try to figure out what may have introduced them, and how to fix them.
As you can see, I have 3 notebooks, and it looks like a broken one was created for each.
I still have a copy of the corrupt database, if there's anything you need from it.
I'm using LineageOS 14.1 (Android 7.1.2) on an herolte if that helps.
Hmm strange. There is a root node with level "0" (level should be 6th column in your example), but that node should never appear in the app. And deleting a note also deletes all its sub-notes, so what you describe could happen if that's the note you deleted somehow.
If you still have a full DB before deletion, that could help. "notes" table should be enough. You can set "title" and "content" to an empty string before sending it.
Widget is a flat list though and you couldn't delete a note from it. Still, looks normal too.
BTW, do you move notes around or cut & paste them a lot? That's the only way to somehow mess things up, though I still don't see how that one root note would be made visible.
Just adding that this is still an issue in 1.6.5. I frequently have a blank item show up in searches and the widget, but not in the actual corresponding notebook. Deleting it deletes the notebook.
Ah, got it, it can be reproduced by simply OR-ing any two (or more) notebooks.
It's SQL operator precedence issue. Root note would show up all notebooks expect the last one. It's fixed now, thanks.
Is this a different issue? Is "something" referring to a non-empty note?