lnreader icon indicating copy to clipboard operation
lnreader copied to clipboard

App not responding and crashing when restoring backup or updating library

Open kmhmubin opened this issue 3 months ago • 0 comments

Steps to reproduce

  1. Install LnReader v2.0.0, v2.0.1, or v2.0.2 on device.
  2. Open the app.
  3. Go to Backup/Restore and start restoring a backup (or go to Library and trigger an update).
  4. App becomes unresponsive, then crashes after a few seconds.
  5. extra step taken to disable battery restricitons

Expected behavior

The app should complete the backup restore or library update without freezing or crashing.

Actual behavior

  1. App becomes unresponsive (ANR) during restore or library update.
  2. After a few seconds it crashes.
  3. Requires reopening the app; sometimes the operation does not resume.

Screenshots

Image

Image

Logs

com.facebook.react.common.JavascriptException: Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops., stack: getRootForUpdatedFiber@1:222786 enqueueConcurrentRenderForLane@1:222401 forceStoreRerender@1:228152 anonymous@1:228080 set$@1:2989946 anonymous@1:3005646 batchedUpdatesImpl@1:522360 batchedUpdates$1@1:447122 unstable_batchedUpdates@1:197679 calculateItemsInView@1:3002544 updateScroll@1:3008936 _onScroll@1:3008511 onScroll@1:3023322 anonymous@1:689178 executeDispatch@1:207436 executeDispatchesAndReleaseTopLevel@1:213024 forEachAccumulated@1:208936 anonymous@1:213484 batchedUpdatesImpl@1:283339 batchedUpdates$1@1:212948 dispatchEvent@1:213228

at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.kt:52)
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.kt:21)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion.startNewBackgroundThread$lambda$1(MessageQueueThreadImpl.kt:175)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion.$r8$lambda$ldnZnqelhYFctGaUKkOKYj5rxo4(Unknown Source:0)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at java.lang.Thread.run(Thread.java:1119)

LNReader version

2.0.0, 2.0.1 and 2.0.2

Android version

Android 16 & 13

Device

Redmi Note 14 Pro & realme C31

Other details

No response

Acknowledgements

  • [x] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [x] I have written a short but informative title.
  • [x] If this is an issue with a plugin, I should be opening an issue in the plugins repository.
  • [x] I have updated the app to version 2.0.2.
  • [x] I will fill out all of the requested information in this form.

kmhmubin avatar Dec 12 '25 15:12 kmhmubin