Operating system
Android
Joplin version
3.0.8
Sync target
S3
Editor
Markdown Editor
What issue do you have?
Hi folks,
I happened to create a note with a large file to upload and my sync target is S3. Now my Jopin app on Android crashed consistently on startup because it failed to sync with below OutOfMemory exception:
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:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
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 68538496 byte allocation with 4870568 free bytes and 4756KB until OOM, target footprint 268435456, growth limit 268435456
at java.lang.StringFactory.newStringFromChars(StringFactory.java:124)
at java.lang.StringFactory.newStringFromBytes(StringFactory.java:109)
at java.lang.StringFactory.newStringFromBytes(StringFactory.java:79)
at android.util.Base64.encodeToString(Base64.java:458)
at com.rnfs.RNFSManager.readFile(RNFSManager.java:227)
I think this probably is a known bug per Joplin crashed on Android · Issue #8047 · laurent22/joplin · GitHub . My question now is: is there any way to workaround to avoid the crash to make my Android app work again? I don't know how to skip this file upload given current situation/bug. I have lots of contents in my notebook and resync/decryption will take very long time so I'm trying to avoid reinstalling everything from scratch if possible.
Thanks in advance.
system
Closed
2
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.