Skip to content

Android crashes randomly on app start #8592

@micahlt

Description

@micahlt

Description

I'm getting crash reports from other users' Android devices that all look like the following stack trace. However, I'm unable to replicate it on any of my devices or simulators.

11-12 null:null:null.373   453   501 E AndroidRuntime: FATAL EXCEPTION: mqt_v_native
11-12 null:null:null.373   453   501 E AndroidRuntime: Process: org.scratchclient4.itchy, PID: 453
11-12 null:null:null.373   453   501 E AndroidRuntime: com.facebook.react.common.JavascriptException: TypeError: undefined is not a function
11-12 null:null:null.373   453   501 E AndroidRuntime: 
11-12 null:null:null.373   453   501 E AndroidRuntime: This error is located at:
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Feed (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultTransitions/JumpingTransition.ts:35:build)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at FastSquircleView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/react-native-gesture-handler/src/handlers/gestures/hoverGesture.ts:20:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at AnimatedComponent(FastSquircleView) (address at /node_modules/react-native-reanimated/src/Colors.ts:681:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at FastSquircleView (address at /node_modules/react-native-reanimated/src/Colors.ts:45:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at View (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:53:renderApplication)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTScrollView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ScrollView (address at /node_modules/react-native/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js:68:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ScrollView (address at /node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js:1673:render)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NativeViewGestureHandler (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultAnimations/Bounce.ts:642:<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultAnimations/Flip.ts:27:FlipInXUp)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultAnimations/Zoom.ts:490:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Wrap (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultAnimations/Lightspeed.ts:129:<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at AnimatedComponent(Wrap) (address at /node_modules/react-native-reanimated/src/Colors.ts:681:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Wrap (address at /node_modules/react-native-reanimated/src/Colors.ts:45:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at GestureDetector (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultAnimations/Flip.ts:115:FlipInYLeft)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at View (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:53:renderApplication)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at HomeScreen (address at /node_modules/color-name/index.js:51:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspense (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Route (address at /node_modules/expo-router/build/layouts/withLayoutContext.js:94:<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at BaseRoute (address at /node_modules/expo-router/build/useScreens.js:39:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at StaticContainer (address at /node_modules/@react-navigation/core/lib/module/SceneView.js:87:SceneView)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at EnsureSingleNavigator (address at /node_modules/@react-navigation/core/lib/module/checkSerializable.js:27:checkSerializableWithoutCircularReference)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SceneView (address at /node_modules/@react-navigation/core/lib/module/useDescriptors.js:43:useDescriptors)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspender (address at /node_modules/react-native-screens/src/components/Screen.tsx:111:InnerScreen)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspense (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Freeze (address at /node_modules/react-native-screens/src/components/Screen.tsx:145:InnerScreen)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at DelayedFreeze (address at /node_modules/color/index.js:370:Color.prototype.rotate)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at View (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:53:renderApplication)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RNCTabView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at TabView (address at /node_modules/color/index.js:85:Color)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NativeBottomTabView (address at /node_modules/@bottom-tabs/react-navigation/lib/module/navigators/createNativeBottomTabNavigator.js:45:NativeBottomTabNavigator)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at PreventRemoveProvider (address at /node_modules/@react-navigation/core/lib/module/NavigationContext.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationStateListenerProvider (address at /node_modules/@react-navigation/core/lib/module/useLazyValue.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationContent (address at /node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:90:React.Children.toArray.reduce$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:90:React.Children.toArray.reduce$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NativeBottomTabNavigator (address at /node_modules/@radix-ui/react-slot/dist/index.js:74:React.forwardRef$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/@react-navigation/native/lib/module/useScrollToTop.js:28:useScrollToTop)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at TabLayout (address at /app?ctx=e6a1aea4960de44c18a5ce9190ce6cab071b72da:18:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspense (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Route (address at /node_modules/expo-router/build/layouts/withLayoutContext.js:94:<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at BaseRoute (address at /node_modules/expo-router/build/useScreens.js:39:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at StaticContainer (address at /node_modules/@react-navigation/core/lib/module/SceneView.js:87:SceneView)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at EnsureSingleNavigator (address at /node_modules/@react-navigation/core/lib/module/checkSerializable.js:27:checkSerializableWithoutCircularReference)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SceneView (address at /node_modules/@react-navigation/core/lib/module/useDescriptors.js:43:useDescriptors)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RNSScreenContentWrapper (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ScreenContentWrapper (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at DebugContainer (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RNSScreen (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Animated(Anonymous) (address at /node_modules/react-native/Libraries/Animated/animations/TimingAnimation.js:79:TimingAnimation)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspender (address at /node_modules/react-native-screens/src/components/Screen.tsx:111:InnerScreen)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspense (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Freeze (address at /node_modules/react-native-screens/src/components/Screen.tsx:145:InnerScreen)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at DelayedFreeze (address at /node_modules/react-native-screens/src/components/Screen.tsx:86:InnerScreen)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at InnerScreen (address at /node_modules/react-native-screens/src/index.tsx:68:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/react-native-screens/src/components/Screen.tsx:20:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ScreenStackItem (address at /node_modules/react-native-screens/src/components/ScreenStack.tsx:14:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SceneView (address at /node_modules/@react-navigation/native-stack/lib/module/views/NativeStackView.native.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RNSScreenStack (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at null:null:null)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ScreenStack (address at /node_modules/react-native-screens/src/fabric/SearchBarNativeComponent.ts:3:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at FrameSizeProviderInner (address at /node_modules/react-native-safe-area-context/src/SafeAreaContext.tsx:97:SafeAreaProvider)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at FrameSizeProvider (address at /node_modules/react-native-safe-area-context/src/SafeAreaContext.tsx:56:SafeAreaProvider)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at View (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:53:renderApplication)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SafeAreaProviderCompat (address at /node_modules/@react-navigation/elements/lib/module/Header/HeaderSearchBar.js:106:React.useEffect$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NativeStackView (address at /node_modules/expo-router/build/fork/native-stack/createNativeStackNavigator.js:22:<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at PreventRemoveProvider (address at /node_modules/@react-navigation/core/lib/module/NavigationContext.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationStateListenerProvider (address at /node_modules/@react-navigation/core/lib/module/useLazyValue.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationContent (address at /node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:90:React.Children.toArray.reduce$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:90:React.Children.toArray.reduce$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NativeStackNavigator (address at /node_modules/expo-router/build/global-state/utils.js:25:getRootStackRouteNames)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/@react-navigation/native/lib/module/useScrollToTop.js:28:useScrollToTop)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/expo-router/build/layouts/StackClient.js:101:getStateForAction)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at View (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:53:renderApplication)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ThemeConsumerInner (address at /components/Message.jsx:124:Message)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RNGestureHandlerRootView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at GestureHandlerRootView (address at /node_modules/react-native-reanimated/src/layoutReanimation/defaultAnimations/Bounce.ts:408:BounceOutDown)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ThemeProvider (address at /app?ctx=e6a1aea4960de44c18a5ce9190ce6cab071b72da:46:metroContextResolve)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SWRConfig (address at /node_modules/react-native-gesture-handler/src/components/touchables/GenericTouchable.tsx:162:onGestureEvent)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at App (address at /app/(tabs)/messages.jsx:134:toggleFilter)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Suspense (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Route (address at /node_modules/expo-router/build/layouts/withLayoutContext.js:94:<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at BaseRoute (address at /node_modules/expo-router/build/useScreens.js:39:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at StaticContainer (address at /node_modules/@react-navigation/core/lib/module/SceneView.js:87:SceneView)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at EnsureSingleNavigator (address at /node_modules/@react-navigation/core/lib/module/checkSerializable.js:27:checkSerializableWithoutCircularReference)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SceneView (address at /node_modules/@react-navigation/core/lib/module/useDescriptors.js:43:useDescriptors)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at PreventRemoveProvider (address at /node_modules/@react-navigation/core/lib/module/NavigationContext.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationStateListenerProvider (address at /node_modules/@react-navigation/core/lib/module/useLazyValue.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationContent (address at /node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:90:React.Children.toArray.reduce$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:90:React.Children.toArray.reduce$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at Content (address at /node_modules/expo-router/build/views/useSitemap.js:16:routeSegments.map$argument_0)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RNCSafeAreaProvider (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at SafeAreaProvider (address at /node_modules/@react-navigation/elements/lib/module/Header/Header.js:130:Header)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at LinkPreviewContextProvider (address at /node_modules/@react-navigation/native-stack/lib/module/views/useHeaderConfigProps.js:1:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at anonymous (address at /node_modules/expo-router/build/views/Sitemap.js:162:SystemInfo)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ThemeProvider (address at /node_modules/@react-navigation/core/lib/module/findFocusedRoute.js:8:findFocusedRoute)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at EnsureSingleNavigator (address at /node_modules/@react-navigation/core/lib/module/checkSerializable.js:27:checkSerializableWithoutCircularReference)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at BaseNavigationContainer (address at /node_modules/@react-navigation/core/lib/module/index.js:31:<global>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at NavigationContainerInner (address at /node_modules/expo-router/build/views/Unmatched.js:39:UnmatchedInner)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ContextNavigator (address at /node_modules/expo-router/build/views/Sitemap.js:177:FormText)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at ExpoRoot (address at /node_modules/expo-router/build/views/Sitemap.js:163:SystemInfo)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at App (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at RCTView (<anonymous>)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at View (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:53:renderApplication)
11-12 null:null:null.373   453   501 E AndroidRuntime:     at AppContainer (address at /node_modules/react-native/Libraries/ReactNative/renderApplication.js:34:renderApplication), stack:
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native-reanimated/src/layoutReanimation/defaultTransitions/JumpingTransition.ts:28:createInstance
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:2787:enqueueCapturedUpdate
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:5311:throwException
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:6480:attemptEarlyBailoutIfNoScheduledUpdate
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:9237:renderDidSuspendDelayIfPossible
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:9104:isRenderConsistentWithExternalStores
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:9087:isRenderConsistentWithExternalStores
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:8714:commitPassiveUnmountOnFiber
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:2228:createCache
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:2087:propagateContextChanges
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:2131:propagateParentContextChanges
11-12 null:null:null.373   453   501 E AndroidRuntime: /node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js:2237:scheduleCallback$2$argument_1
11-12 null:null:null.373   453   501 E AndroidRuntime: 
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.kt:52)
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at com.facebook.jni.NativeRunnable.run(Native Method)
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:959)
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:100)
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.kt:21)
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:267)
11-12 null:null:null.373   453   501 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:371)

I'm completely unable to replicate the bug no matter what I do, but my app is up to a 40% crash rate, so it's not an isolated issue. The only unifying factor I can see is that the issue appears to be exacerbated on Samsung devices.

Steps to reproduce

Unknown, currently unable to reproduce.

Snack or a link to a repository

https://github.com/micahlt/itchy-native

Reanimated version

4.1.5

Worklets version

0.5.1

React Native version

0.81.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo Dev Client

Architecture

New Architecture (Fabric renderer)

Reanimated feature flags

Yes

React Native release level

Experimental

Build type

Release app & production bundle

Device

Android emulator, Real device

Host machine

Linux

Device model

No response

Acknowledgements

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions