Skip to content

Enabling trackUserSteps causes swizzling crash #376

@rajanbalana

Description

@rajanbalana

Steps to Reproduce the Problem

The crash happens intermittently. We couldn't find the exact steps to reproduce this crash. However, the crash stacktrace indicates the root cause to be method swizzling.

We started seeing this crash only after the SDK configuration changes wherein we assigned trackUserSteps to true.

Expected Behavior

App should not crash.

Actual Behavior

App is crashing sporadically.

Instabug integration code

Instabug.start(withToken: <KEY>, invocationEvents: [.shake])
Instabug.trackUserSteps = false
Instabug.reproStepsMode = .disable
CrashReporting.enabled = false
Instabug.tintColor = UIColor.Core.blue

SDK Version

9.1.6

iOS Version

13.6.1

Device Model

iPhone 11 Pro

Stack Trace

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1a8fa2a70 objc_msgSend + 16
1  UIKitCore                      0x1ad86f320 -[UIView(Geometry) convertPoint:fromView:] + 112
2  UIKitCore                      0x1ad443b78 _UITouchConvertLocationInWindowToView + 68
3  UIKitCore                      0x1ad443b00 -[UITouch locationInView:] + 84
4  Instabug                       0x101eb7a10 _hidden#17171_ + 89 (__hidden#17209_:89)
5  Instabug                       0x101eafbe8 _hidden#16825_ + 429 (__hidden#16870_:429)
6  Instabug                       0x101eadd38 _hidden#16795_ + 81 (__hidden#16870_:81)
7  Instabug                       0x101edf900 __IBGSwizzle_sendEvent + 161 (__hidden#18590_:161)
8  UIKitCore                      0x1ad455da4 __dispatchPreprocessedEventFromEventQueue + 6688
9  UIKitCore                      0x1ad458988 __handleEventQueueInternal + 5368
10 UIKitCore                      0x1ad4508c8 __handleHIDEventFetcherDrain + 144
11 CoreFoundation                 0x1a920cd14 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
12 CoreFoundation                 0x1a920cc68 __CFRunLoopDoSource0 + 84
13 CoreFoundation                 0x1a920c3c4 __CFRunLoopDoSources0 + 188
14 CoreFoundation                 0x1a92071fc __CFRunLoopRun + 780
15 CoreFoundation                 0x1a9206bc8 CFRunLoopRunSpecific + 480
16 GraphicsServices               0x1b35e85cc GSEventRunModal + 164
17 UIKitCore                      0x1ad3b9744 UIApplicationMain + 1936
18 Compass                        0x1001abe0c launch() + 20 (main.swift:20)
19 Compass                        0x1001abcd0 main + 28 (main.swift:28)
20 libdyld.dylib                  0x1a9083384 start + 4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions