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

UI API called on a background thread, it should not happens. #208

Open
pavan-ios1412 opened this issue May 23, 2024 · 0 comments
Open

UI API called on a background thread, it should not happens. #208

pavan-ios1412 opened this issue May 23, 2024 · 0 comments

Comments

@pavan-ios1412
Copy link

pavan-ios1412 commented May 23, 2024

Description

Razorpay pod Version :

1.3.8

Xcode Version :

15.2

What you did:

Called payment gateway razorpay SDK, on opening , getting main thread checker warnings, sometimes UI not opens, white screen is showing only, it is because of threading. See errors in detail, below.....

What happened:

RAZORPAY_SDK_CHECKS

Check 0:

Version Upgrade Check
1.3.8

Check 1:

Minimum Deployment Version Check
Project deployment target > iOS 10

=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication keyWindow]
PID: 19529, TID: 169261, Thread name: (none), Queue name: com.apple.NSURLSession-delegate, QoS: 0
Backtrace:
4 Razorpay 0x0000000109ba9b18 $s8Razorpay17NavigationManagerC17displayController10dataSource9isTestingACSo06UIViewE0CSg_AA0A13CheckoutModelCSbtcfc + 344
5 Razorpay 0x0000000109ba6188 $s8Razorpay08InternalA0C21performInitialization33_C2103DC0A7BEA85E64BF4B6378FF9B75LL_17displayController26arrExternalPaymentEntities6isTestySDys11AnyHashableVypG_So06UIViewO0CSgSayAA06PluginR8Delegate_pGSgSbtF + 2264
6 Razorpay 0x0000000109ba7c84 $s8Razorpay08InternalA0C17validationResults14sdkCheckPoints17continueToPaymentySayAA0fG0VG_SbtF + 888
7 Razorpay 0x0000000109ba80e8 $s8Razorpay08InternalA0CAA17SDKChecksProtocolA2aDP17validationResults14sdkCheckPoints17continueToPaymentySayAA0hI0VG_SbtFTW + 20
8 Razorpay 0x0000000109bb8b98 $s8Razorpay24OpinionatedChecksHandlerC20validateMajorVersion02sdG0ySS_tFySo13NSURLResponseCSgcfU_ + 940
9 Razorpay 0x0000000109b9ee94 $s8Razorpay0A13InternetUtilsC16getStatusCodeFor10urlRequest14requestHandlery10Foundation10URLRequestV_ySo13NSURLResponseCSgctFyAG4DataVSg_ALs5Error_pSgtYbcfU_TA + 40
10 Razorpay 0x0000000109b9e7e4 $s10Foundation4DataVSgSo13NSURLResponseCSgs5Error_pSgIeghggg_So6NSDataCSgAGSo7NSErrorCSgIeyBhyyy_TR + 148
11 CFNetwork 0x0000000184258884 CFNetwork + 34948
12 CFNetwork 0x00000001842745b0 _CFHTTPMessageSetResponseProxyURL + 14868
13 libclang_rt.tsan_iossim_dynamic.dyl 0x0000000105547ee4 _ZN6__tsanL24invoke_and_release_blockEPv + 24
14 libclang_rt.tsan_iossim_dynamic.dyl 0x0000000105547d54 _ZN6__tsanL22dispatch_callback_wrapEPv + 664
15 libdispatch.dylib 0x00000001095a593c _dispatch_client_callout + 16
16 libdispatch.dylib 0x00000001095adbd8 _dispatch_lane_serial_drain + 916
17 libdispatch.dylib 0x00000001095ae91c _dispatch_lane_invoke + 420
18 libdispatch.dylib 0x00000001095bb2f8 _dispatch_root_queue_drain_deferred_wlh + 324
19 libdispatch.dylib 0x00000001095ba754 _dispatch_workloop_worker_thread + 488
20 libsystem_pthread.dylib 0x0000000108aff924 _pthread_wqthread + 284
21 libsystem_pthread.dylib 0x0000000108afe6e4 start_wqthread + 8

Screenshot 2024-05-23 at 11 49 01 PM

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Integrate SDK , most initiate it after any API's response.
  2. I was tried to called this on main thread and background thread, getting error both times
  3. Enable main thread checker from schema

Suggested solution:

Code example, screenshot, or link to a repository:

NA

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

No branches or pull requests

1 participant