Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] App crash in android and ios #2297

Closed
krushita042023 opened this issue Nov 9, 2023 · 10 comments · Fixed by #2318
Closed

[🐛] App crash in android and ios #2297

krushita042023 opened this issue Nov 9, 2023 · 10 comments · Fixed by #2318
Assignees

Comments

@krushita042023
Copy link

App is crash when message contain more than 20 mention user in one message.

Simulator Screenshot - iPhone 14 Pro - 2023-11-09 at 15 40 40

Error log
ERROR RangeError: Out of memory for regexp results.

This error is located at:
in MessageTextContainerWithContext
in MessageTextContainer{messageSimple{content}} (created by MessageContentWithContext)
in RCTView (created by View)
in View (created by MessageContentWithContext)
in RCTView (created by View)
in View (created by MessageContentWithContext)
in RCTView (created by View)
in View
in Unknown (created by TouchableOpacity)
in TouchableOpacity (created by TouchableOpacity)
in TouchableOpacity (created by MessageContentWithContext)
in MessageContentWithContext
in MessageContent{messageSimple{content}} (created by MessageSimpleWithContext)
in RCTView (created by View)
in View (created by MessageSimpleWithContext)
in MessageSimpleWithContext
in MessageSimple{messageSimple{container}} (created by MessageWithContext)
in MessageProvider (created by MessageWithContext)
in RCTView (created by View)
in View (created by MessageWithContext)
in RCTView (created by View)
in View (created by MessageWithContext)
in RCTView (created by View)
in View (created by MessageWithContext)
in MessageWithContext
in Message (at ChannelScreen.js:373)
in RCTView (created by View)
in View (created by customeMessageView)
in customeMessageView (created by CellRenderer)
in RCTView (created by View)
in View (created by CellRenderer)
in ThemeProvider (created by CellRenderer)
in RCTView (created by View)
in View (created by CellRenderer)
in VirtualizedListCellContextProvider (created by CellRenderer)
in CellRenderer (created by VirtualizedList)
in RCTScrollContentView (created by ScrollView)
in RCTScrollView (created by ScrollView)
in ScrollView (created by ScrollView)
in ScrollView (created by VirtualizedList)
in VirtualizedListContextProvider (created by VirtualizedList)
in VirtualizedList (created by FlatList)
in FlatList (created by MessageListWithContext)
in RCTView (created by View)
in View (created by MessageListWithContext)
in MessageListWithContext (created by MessageList)
in MessageList (created by ChannelScreen)
in RCTView (created by View)
in View (created by ChannelWithContext)
in MessageInputProvider (created by ChannelWithContext)
in SuggestionsProvider (created by ChannelWithContext)
in ThreadProvider (created by ChannelWithContext)
in MessagesProvider (created by ChannelWithContext)
in PaginatedMessageListProvider (created by ChannelWithContext)
in TypingProvider (created by ChannelWithContext)
in OwnCapabilitiesProvider (created by ChannelWithContext)
in ChannelProvider (created by ChannelWithContext)
in RCTView (created by View)
in View (created by KeyboardCompatibleView)
in KeyboardProvider (created by KeyboardCompatibleView)
in KeyboardCompatibleView (created by ChannelWithContext)
in ChannelWithContext (created by Channel)
in Channel (created by ChannelScreen)
in RCTView (created by View)
in View (created by ChannelScreen)
in ChannelScreen (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (created by View)
in View (created by CardContainer)
in RCTView (created by View)
in View (created by CardContainer)
in RCTView (created by View)
in View
in CardSheet (created by Card)
in RCTView (created by View)
in View
in Unknown (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (created by View)
in View
in Unknown (created by Card)
in RCTView (created by View)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by CardStack)
in RNSScreen
in Unknown (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by MaybeScreen)
in MaybeScreen (created by CardStack)
in RNSScreenContainer (created by ScreenContainer)
in ScreenContainer (created by MaybeScreenContainer)
in MaybeScreenContainer (created by CardStack)
in RCTView (created by View)
in View (created by Background)
in Background (created by CardStack)
in CardStack (created by HeaderShownContext)
in RNCSafeAreaProvider (created by SafeAreaProvider)
in SafeAreaProvider (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by StackView)
in RCTView (created by View)
in View (created by GestureHandlerRootView)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by StackNavigator)
in StackNavigator (created by AppContainer)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by AppContainer)
in ActiveChannelsProvider (created by ChannelsStateProvider)
in ChannelsStateProvider (created by ChatWithContext)
in ThemeProvider (created by ChatWithContext)
in TranslationProvider (created by ChatWithContext)
in ChatProvider (created by ChatWithContext)
in ChatWithContext (created by Chat)
in Chat (created by AppContainer)
in UserSearchProvider (created by AppContainer)
in RCTSafeAreaView (created by AppContainer)
in AppContainer (created by App)
in Unknown (created by Provider)
in Provider (created by App)
in ImageGalleryProvider (created by OverlayProvider)
in AttachmentPickerProvider (created by OverlayProvider)
in MessageOverlayProvider (created by OverlayProvider)
in TranslationProvider (created by OverlayProvider)
in OverlayProvider (created by App)
in RCTView (created by View)
in View (created by GestureHandlerRootView)
in GestureHandlerRootView (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in dsp(RootComponent), js engine: hermes

@khushal87
Copy link
Member

Hey @krushita042023, we made some improvements with mentions in the latest version of our SDK i.e., 5.21.0. Can you try it and let us know if that helps?

@krushita042023
Copy link
Author

Thanks, after upgrade its working.

@krushita042023
Copy link
Author

after update stream-chat-react-native: 5.21.0 app crash.
Screenshot_1700110324

@khushal87
Copy link
Member

Hey @krushita042023, any idea for what message you are getting this error?

@khushal87
Copy link
Member

simulator_screenshot_97AC3F4B-B417-4E6C-9E7B-A2071388D5FB
We tried this link on our TypescriptMessagingApp, and it worked without any issues.

@khushal87
Copy link
Member

Hmm, seems like it is because the URL has ++.

@krushita042023
Copy link
Author

yes, In web its working fine.

@khushal87
Copy link
Member

khushal87 commented Nov 17, 2023

We have fixed this in the PR #2318. Please follow it for updates. Thanks for reporting. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants