fritter icon indicating copy to clipboard operation
fritter copied to clipboard

[BUG] Import doesn't work for saved tweets

Open superjkl opened this issue 2 years ago • 4 comments

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:

  1. Create an export file that includes saved tweets
  2. Import the export file
  3. The app will say it imported the data successfully
  4. Go to the saved tweets tab
  5. The following error message will show: type 'Null' is not a subtype of type 'String' in type cast
  6. 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 Screenshot_20220502-084033_Fritter

Device

  • Android 12
  • device locale/language: en_CA
  • Fritter version: f-droid v2.16.3+202201232

superjkl avatar May 02 '22 14:05 superjkl

@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?

jonjomckay avatar Sep 02 '22 12:09 jonjomckay

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?

superjkl avatar Oct 05 '22 03:10 superjkl

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.

jonjomckay avatar Dec 12 '22 18:12 jonjomckay

Okay, I've sent you the export.

superjkl avatar Mar 07 '23 21:03 superjkl