sampie777 / hymnbook2

Mobile hymn book app.
2 stars 0 forks source link

[bug] Accessing object of type Song which has been invalidated or deleted in SongDisplayScreen #252

Closed sampie777 closed 1 month ago

sampie777 commented 1 month ago
Error Accessing object of type Song which has been invalidated or deleted
(Most recent call first)
at
callFunctionReturnFlushedQueue(http://reactnativehost/address at index.android.bundle:1:83762)
at
__guard(http://reactnativehost/address at index.android.bundle:1:84757)
at
anonymous(http://reactnativehost/address at index.android.bundle:1:83804)
at
__callFunction(http://reactnativehost/address at index.android.bundle:1:85452)
at
apply(http://reactnativehost/(native))
at
receiveEvent(http://reactnativehost/address at index.android.bundle:1:370158)
at
_receiveRootNodeIDEvent(http://reactnativehost/address at index.android.bundle:1:316397)
at
batchedUpdates(http://reactnativehost/address at index.android.bundle:1:316124)
at
batchedUpdatesImpl(http://reactnativehost/address at index.android.bundle:1:375651)
at
anonymous(http://reactnativehost/address at index.android.bundle:1:316556)
at
forEachAccumulated(http://reactnativehost/address at index.android.bundle:1:313438)
at
call(http://reactnativehost/(native))
at
executeDispatchesAndReleaseTopLevel(http://reactnativehost/address at index.android.bundle:1:316204)
at
executeDispatch(http://reactnativehost/address at index.android.bundle:1:311955)
at
invokeGuardedCallbackAndCatchFirstError(http://reactnativehost/address at index.android.bundle:1:311823)
at
apply(http://reactnativehost/(native))
at
invokeGuardedCallback(http://reactnativehost/address at index.android.bundle:1:311791)
at
apply(http://reactnativehost/(native))
at
invokeGuardedCallbackImpl(http://reactnativehost/address at index.android.bundle:1:311734)
at
apply(http://reactnativehost/(native))
at
anonymous(http://reactnativehost/address at index.android.bundle:1:534280)
at
anonymous(http://reactnativehost/address at index.android.bundle:1:487409)
at
_maybeCallOnEdgeReached(http://reactnativehost/address at index.android.bundle:1:497156)
at
onListEndReached(http://reactnativehost/address at index.android.bundle:1:1651028)
at
get_verses(http://reactnativehost/(native))

in SongDisplayScreen in StaticContainer in EnsureSingleNavigator in SceneView in RCTView in Unknown in DebugContainer in MaybeNestedStack in RCTView in Unknown in RNSScreen in Unknown in Suspender in Suspense in Freeze in DelayedFreeze in InnerScreen in Screen in SceneView in Suspender in Suspense in Freeze in DelayedFreeze in RNSScreenStack in ScreenStack in NativeStackViewInner in RNCSafeAreaProvider in SafeAreaProvider in SafeAreaProviderCompat in NativeStackView in PreventRemoveProvider in NavigationContent in Unknown in NativeStackNavigator in RootNavigation in DeepLinkHandler in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner in RCTView in Unknown in AppRoot in RCTView in Unknown in RCTView in Unknown in MenuProvider in ThemeProvider in FeaturesProvider in RNGestureHandlerRootView in GestureHandlerRootView in ErrorBoundary in App in RCTView in Unknown in RCTView in Unknown in AppContainer

Way to reproduce:

  1. Go to downloads and update an existing bundle.
  2. While the bundle is downloading, go back and open a song from that bundle.
  3. When the bundle has been updated, try to scroll the screen.
  4. The error will occur, as the displayed song doesn't exist in the database anymore, due to the update.