Skip to content

App Crash due to Exception [NRMAWKWebViewNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]: unrecognized selector sent to instance #398

@sarath-aloyoga

Description

@sarath-aloyoga

The SDK is causing the app to crash in web views due to an unrecognized selector being sent to an instance.

Happening on all 7.5.x versions

Relevant Logs / Console output

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NRMAWKWebViewNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]: unrecognized selector sent to instance 0x6000000b1280'
*** First throw call stack:
(
0 CoreFoundation 0x00000001804c97d4 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00000001800937cc objc_exception_throw + 72
2 CoreFoundation 0x00000001804defe4 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001804cda2c forwarding + 1216
4 CoreFoundation 0x00000001804cff6c _CF_forwarding_prep_0 + 92
5 WebKit 0x000000018c7bf7c8 _ZN6WebKit15NavigationState16NavigationClient48didReceiveServerRedirectForProvisionalNavigationERNS_12WebPageProxyEPN3API10NavigationEPNS4_6ObjectE + 148
6 WebKit 0x000000018cb1a3d8 _ZN6WebKit12WebPageProxy56didReceiveServerRedirectForProvisionalLoadForFrameSharedEON3WTF3RefINS_15WebProcessProxyENS1_12RawPtrTraitsIS3_EENS1_21DefaultRefDerefTraitsIS3_EEEEN7WebCore16ProcessQua 7 WebKit 0x000000018cb1a0a4 _ZN6WebKit12WebPageProxy50didReceiveServerRedirectForProvisionalLoadForFrameEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS1_19FrameIdentifierTypeENS3_38ObjectIdentifierMainThreadA 8 WebKit 0x000000018c686250 _ZN3IPC13handleMessageIN8Messages12WebPageProxy50DidReceiveServerRedirectForProvisionalLoadForFrameENS_10ConnectionEN6WebKit12WebPageProxyES6_FvN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifier 9 WebKit 0x000000018c681dc4 _ZN6WebKit12WebPageProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 1724
10 WebKit 0x000000018d0d63f4 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 260
11 WebKit 0x000000018cb88570 _ZN6WebKit15WebProcessProxy15dispatchMessageERN3IPC10ConnectionERNS1_7DecoderE + 36
12 WebKit 0x000000018c6bcb0c _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 1460
13 WebKit 0x000000018d0c48b0 _ZN3IPC10Connection15dispatchMessageEN3WTF9UniqueRefINS_7DecoderEEE + 724
14 WebKit 0x000000018d0c4cf8 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 492
15 JavaScriptCore 0x000000019821d9f0 _ZN3WTF7RunLoop11performWorkEv + 444
16 JavaScriptCore 0x000000019821e624 _ZN3WTF7RunLoop11performWorkEPv + 32
17 CoreFoundation 0x0000000180429368 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
18 CoreFoundation 0x00000001804292b0 __CFRunLoopDoSource0 + 168
19 CoreFoundation 0x0000000180428a38 __CFRunLoopDoSources0 + 220
20 CoreFoundation 0x0000000180423434 __CFRunLoopRun + 780
21 CoreFoundation 0x0000000180422cec CFRunLoopRunSpecific + 536
22 GraphicsServices 0x0000000191004d00 GSEventRunModal + 164
23 UIKitCore 0x0000000185c597d4 -[UIApplication run] + 796
24 UIKitCore 0x0000000185c5dba0 UIApplicationMain + 124
25 SwiftUI 0x00000001d3bac66c $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU
+ 164
26 SwiftUI 0x00000001d3bac3a0 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 180
27 SwiftUI 0x00000001d3937dc4 $s7SwiftUI3AppPAAE4mainyyFZ + 148
28 AloYoga.debug.dylib 0x000000010cd16014 $s7AloYoga0aB3AppV5$mainyyFZ + 40
29 AloYoga.debug.dylib 0x000000010cd16540 __debug_main_executable_dylib_entry_point + 12
30 dyld 0x000000010527d3d4 start_sim + 20
31 ??? 0x0000000105152b4c 0x0 + 4380240716
)
libc++abi: terminating due to uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NRMAWKWebViewNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]: unrecognized selector sent to instance 0x6000000b1280'
terminating due to uncaught exception of type NSException
Device: iPhone 16 Pro Max - Runtime: iOS 18.5 (22F77) - DeviceType: iPhone 16 Pro Max

Steps to Reproduce

The crash occurs randomly but becomes easily reproducible when navigating through the web views multiple times within the app. Simply revisiting the web views repeatedly seems to trigger it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions