We have a crash by using iOS (Ranorex 9.3.2)

Ask general questions here.
YangWenqian
Posts: 1
Joined: Thu Jul 09, 2020 7:19 am

We have a crash by using iOS (Ranorex 9.3.2)

Post by YangWenqian » Thu Jul 09, 2020 7:39 am

Hello
We got a crash report by using iOS (Ranorex 9.3.2).
----------------------------------------------------------------------
WKWebView+WKWebView_RxAutomation.m line 63
-[WKWebView(RxAutomation) rxAutomation_wkWebView_initWithFrame:configuration:]

Fatal Exception: NSInvalidArgumentException
Attempt to add script message handler with name 'jsrxcall' when one already exists.

Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x1bedb3ab0 __exceptionPreprocess
1 libobjc.A.dylib 0x1beacd028 objc_exception_throw
2 CoreFoundation 0x1beca32fc -[NSCache init]
3 WebKit 0x1c6648630 -[WKUserContentController addScriptMessageHandler:name:]
4 test 0x10312a818 -[WKWebView(RxAutomation) rxAutomation_wkWebView_initWithFrame:configuration:] + 63 (WKWebView+WKWebView_RxAutomation.m:63)
5 test 0x102a08cc8 -[HomeMainUIViewController loadWebView] + 409 (HomeMainUIViewController.m:409)
6 test 0x102a066d8 -[HomeMainUIViewController viewDidLoad] + 151 (HomeMainUIViewController.m:151)
7 UIKitCore 0x1c2851994 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled]
8 UIKitCore 0x1c28565c8 -[UIViewController loadViewIfRequired]
9 UIKitCore 0x1c27c4f58 -[UINavigationController _updateScrollViewFromViewController:toViewController:]
10 UIKitCore 0x1c27c526c -[UINavigationController _startTransition:fromViewController:toViewController:]
11 UIKitCore 0x1c27c6084 -[UINavigationController _startDeferredTransitionIfNeeded:]
12 UIKitCore 0x1c27c73c8 -[UINavigationController __viewWillLayoutSubviews]
13 UIKitCore 0x1c27a9f28 -[UILayoutContainerView layoutSubviews]
14 UIKit 0x1f444aaf4 -[UILayoutContainerViewAccessibility layoutSubviews]
15 UIKitCore 0x1c334bd8c -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
16 libobjc.A.dylib 0x1beac8a4c -[NSObject performSelector:withObject:]
17 QuartzCore 0x1c594ba4c -[CALayer layoutSublayers]
18 QuartzCore 0x1c594be9c CA::Layer::layout_if_needed(CA::Transaction*)
19 QuartzCore 0x1c595e5c4 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
20 QuartzCore 0x1c58a3170 CA::Context::commit_transaction(CA::Transaction*, double)
21 QuartzCore 0x1c58cdf7c CA::Transaction::commit()
22 UIKitCore 0x1c2eb1634 __34-[UIApplication _firstCommitBlock]_block_invoke_2
23 CoreFoundation 0x1bed2f068 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
24 CoreFoundation 0x1bed2e7ec __CFRunLoopDoBlocks
25 CoreFoundation 0x1bed297ec __CFRunLoopRun
26 CoreFoundation 0x1bed29084 CFRunLoopRunSpecific
27 GraphicsServices 0x1c8f77534 GSEventRunModal
28 UIKitCore 0x1c2e99670 UIApplicationMain
29 test 0x102dd468c main + 16 (main.m:16)
30 libdyld.dylib 0x1beba8e18 start
----------------------------------------------------------------
Can you confirm this crash ? Because our app need keep user's status, so we can open multiple WKWebview at same time.
and not only 'jsrxcall' , "rxdom", "rxjsdisable"], "rxjsenable" also will crash.
Please kindly confirm.
Thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 12143
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: We have a crash by using iOS (Ranorex 9.3.2)

Post by Support Team » Mon Jul 13, 2020 8:03 am

Hello YangWenqian,

Unfortunately, we cannot confirm this issue. In order to analyze it in more detail we would need the ipa file. Please create a support ticket and upload the ipa file.

Thank you!

Regards,
Bernhard
.
Image