fritter
fritter copied to clipboard
[BUG] Import doesn't work for saved tweets
Describe the bug After importing an export file which includes saved tweets I cannot see my saved tweets in the app. (also thanks so much for you work on fritter, I love it!)
To Reproduce Steps to reproduce the behavior:
- Create an export file that includes saved tweets
- Import the export file
- The app will say it imported the data successfully
- Go to the saved tweets tab
- The following error message will show:
type 'Null' is not a subtype of type 'String' in type cast
- The following error is also found in logcat:
05-02 08:32:46.294 15410 32119 E CursorWindow: The size of (459, 1) is too big (3038392), so replace the value to NULL
Screenshots
Device
- Android 12
- device locale/language: en_CA
- Fritter version: f-droid v2.16.3+202201232
@superjkl I think this might be fixed in the latest version. Please could you try with 3.0.0-beta1, or one of the CI builds from GitHub Actions?
Hi, so sorry for taking forever to reply here. I went ahead and updated to 3.0.0-beta3 and all the behavior is exactly the same including the logcat error. When I attempt to export my data everything exports properly except for my saved tweets. I hope my saved tweets aren't lost (but if they are that's my fault for continuing to use a broken version lol) so is there some other way I could access them though ADB?
OK, this looks like it's related to the maximum database cursor window, which appears to be limited inside Android itself, and the tweet that's trying to be loaded from the database is over that limit (3MB, wow!).
Are you able to send me the export via email, so I can try and fix it with a real use case? jonjo (at) jonjomckay.com will get it to the right place.
If not, I'm not sure I'll be able to fix your existing data, but I might be able to prevent it from happening with new saved tweets.
Okay, I've sent you the export.