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 iOS 18.0.1 #221

Open
Earshad-A opened this issue Oct 27, 2024 · 3 comments
Open

App Crash in iOS 18.0.1 #221

Earshad-A opened this issue Oct 27, 2024 · 3 comments

Comments

@Earshad-A
Copy link

Description

Our iOS app is experiencing a crash in the background on iOS 18.0.1, specifically during the checkout process when the Razorpay SDK is invoked. The crash appears to occur either when initiating the Razorpay payment screen or while the screen is active. According to our Crashlytics logs and crash report, the issue seems to be linked to Razorpay's CrashReporter module, with WebKit also involved in the stack trace. This is significantly impacting app stability, particularly in asynchronous background operations, and we would appreciate guidance on resolving this to prevent further crashes.

Razorpay pod Version :

1.3.6

Xcode Version :

Version 15.3 (15E204a)

What you did:

Screenshot 2024-10-27 at 8 25 36 AM

What happened:

crash log:
The crash typically occurs during the checkout process, specifically when loading the Razorpay payment screen in the app. Here’s an excerpt from the crash log:

com.apple.main-thread
0  libsystem_kernel.dylib         0x153c __ulock_wait2 + 8
1  libsystem_platform.dylib       0x4258 _os_unfair_lock_lock_slow + 180
2  WebKit                         0x331d4 IPC::Connection::dispatchIncomingMessages() + 656
3  JavaScriptCore                 0x587c4 WTF::RunLoop::performWork() + 204
4  JavaScriptCore                 0x596ec WTF::RunLoop::performWork(void*) + 36
5  CoreFoundation                 0x57088 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
6  CoreFoundation                 0x5701c __CFRunLoopDoSource0 + 176
7  CoreFoundation                 0x54b6c __CFRunLoopDoSources0 + 344
8  CoreFoundation                 0x53d04 __CFRunLoopRun + 840
9  CoreFoundation                 0x535b8 CFRunLoopRunSpecific + 572
10 GraphicsServices               0x11c4 GSEventRunModal + 164
11 UIKitCore                      0x3de2c0 -[UIApplication _run] + 816
12 UIKitCore                      0x48cddc UIApplicationMain + 340
13 UIKitCore                      0x7b9b20 block_destroy_helper.23 + 10212
14 HBIOS                          0x18a558 main + 4365739352 (AppDelegate.swift:4365739352)
15 ???                            0x1af89cd34 (Missing)

com.apple.root.background-qos
0  libsystem_kernel.dylib         0x7250 __semwait_signal + 8
1  libsystem_c.dylib              0x17a78 nanosleep + 220
2  libsystem_c.dylib              0x17990 usleep + 68
3  Razorpay                       0x35f60 $s8Razorpay13CrashReporterC27startSwiftUnhandExcHandling33_E1A96831138ED3F3E0A51B461F187E33LLyyFyyYbcfU_ + 280
4  Razorpay                       0x4bf30 $sIegh_IeyBh_TR + 28
5  libdispatch.dylib              0x2370 _dispatch_call_block_and_release + 32
6  libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
7  libdispatch.dylib              0x15f60 _dispatch_root_queue_drain + 860
8  libdispatch.dylib              0x16590 _dispatch_worker_thread2 + 156
9  libsystem_pthread.dylib        0x4c40 _pthread_wqthread + 228
10 libsystem_pthread.dylib        0x1488 start_wqthread + 8

This trace suggests the crash might be occurring due to an unhandled exception within Razorpay's CrashReporter during the checkout process, potentially involving WebKit.

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Initiate a Razorpay checkout session in the app.
  2. Crash is observed as the Razorpay payment screen loads or operates in the background with iOS 18.0.1.
  3. Note: This issue is specific to iOS 18.0.1, and we cannot reproduce it on other versions or devices due to limited access to iOS 18.0.1.
@deepakibo
Copy link

I am also facing the same :
Crashed: com.apple.IPC.ReceiveQueue
0 libsystem_platform.dylib 0x70c8 _os_unfair_lock_recursive_abort + 36
1 libsystem_platform.dylib 0x42d8 _os_unfair_lock_lock_slow + 308
2 WebKit 0xe2a5b0 void IPC::Connection::dispatchToClient<IPC::Connection::enqueueIncomingMessage(WTF::UniqueRefIPC::Decoder)::$_0>(IPC::Connection::enqueueIncomingMessage(WTF::UniqueRefIPC::Decoder)::$_0&&) + 44
3 WebKit 0xe2a224 IPC::Connection::enqueueIncomingMessage(WTF::UniqueRefIPC::Decoder) + 320
4 WebKit 0xe29ae4 IPC::Connection::processIncomingMessage(WTF::UniqueRefIPC::Decoder) + 304
5 WebKit 0x1d81c invocation function for block in IPC::Connection::platformOpen() + 740
6 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20
7 libdispatch.dylib 0x7580 _dispatch_continuation_pop + 596
8 libdispatch.dylib 0x1b53c _dispatch_source_latch_and_call + 420
9 libdispatch.dylib 0x1a104 _dispatch_source_invoke + 836
10 libdispatch.dylib 0xb560 _dispatch_lane_serial_drain + 368
11 libdispatch.dylib 0xc1e0 _dispatch_lane_invoke + 380
12 libdispatch.dylib 0x17258 _dispatch_root_queue_drain_deferred_wlh + 288
13 libdispatch.dylib 0x16aa4 _dispatch_workloop_worker_thread + 540
14 libsystem_pthread.dylib 0x4c7c _pthread_wqthread + 288
15 libsystem_pthread.dylib 0x1488 start_wqthread + 8

@iprabhakarpatil
Copy link

i also faced this issue....
iOS 18.0.0 and 18.0.1

with iOS-18.1.0 this is resolved.
we haven't yet received any crashes in the latest iOS version.

had raised this issue to Razorpay over email, but received a revert stating this is not at their end.

@vivekshindhe

@vivekshindhe
Copy link
Contributor

Hey folks, this issue was related to Webkit. There wasn't anything we could have done about this. We tried to reproduce this on our end as well but were unable to do so. So currently we are only waiting to see if the next versions of Webkit have a fix for this.
As mentioned by @iprabhakarpatil 18.1.0 seems to have resolved the issue with the webkit.
We are looking into the 18.0.0 and 18.0.1 versions still.

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

4 participants