The android app crashed

Operating system

Android

Joplin version

3.3.5

Sync target

S3

Editor

Markdown Editor

What issue do you have?

I tried to change Sync target from webdav to S3. After it updated about 2000 notebooks from mobile phone to the service, the app crashed. And I couldn't open the joplin again. I got the error information below:
java.lang.RuntimeException: Could not invoke RNFSManager.readFile
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:381)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:146)
at com.facebook.jni.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:233)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
... 9 more
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 155710368 byte allocation with 50331648 free bytes and 128MB until OOM, target footprint 183551680, growth limit 268435456
at android.util.Base64.encode(Base64.java:537)
at android.util.Base64.encode(Base64.java:497)
at android.util.Base64.encodeToString(Base64.java:459)
at com.rnfs.RNFSManager.readFile(RNFSManager.java:227)
... 11 more

Are there any methods to solve it? Thanks for any helping.

Is there any info before or after this error? As that could tell you which note is causing a problem so that you can delete it

No,it crashed suddenly. I just try close the net connecting, including WIFI and 5G, then I can open the app, It did not crash again. Then I changed the Sync choise, the app did not crash again. Now I'm tring to clear the file in S3 service and update from PC, then download the notes to my phone.

I return back webdav now. It does not crash again. I lost the 15 days notebooks, but thank goodness I did the backup.