mobile icon indicating copy to clipboard operation
mobile copied to clipboard

Android app crashes when dealing with large strings (with dozens of thousands symbols)

Open kirlut opened this issue 4 years ago • 1 comments

I've discovered this issue while using Secure Spreadsheet extension that store content in single-line json.

It's not related to 1-2 Mb limit issue, because both of the files I use to reproduce are less than 200kb long.

There are two gist you'll need to reproduce: https://gist.github.com/kirlut/efd8d4a9b32f0ea3fc2530f1dfc72c6c

Both gists are two 100% identical jsons, but one of them is single line and the other one is indented.

Steps to reproduce:

  1. In web app create two new documents with plain text editor
  2. Insert content from both gists
  3. Change editor to spreadsheet (Optionally. Bug will be reproducible even with plain text editor)
  4. Try to open them one by one in Android app. See dramatic delay while opening file with single line json. App can even crash sometimes.
  5. Notice, that web app doesn't have such issue, both files works fine. This means that this is mobile only issue

Those two spreadsheets are identical and simple, most of the json is formatting data (but I don't really think that content of string matter).

Device: Xiaomi Mi Note 10 Lite OS: Android 11 RKQ1.200826.002 MIUI: 12.1.4.0 Stable (RFNMIXM)

This issue is important to fix, because it makes very hard to work with even small and simple spreadsheets on mobile app (which might be important for many clients of extensions). And idk, may be some editors also store their content in single-line form.

kirlut avatar May 08 '21 10:05 kirlut

Thanks for the report @kirlut 🙂

arielsvg avatar May 10 '21 10:05 arielsvg