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
Crash delegate #74
Comments
Hey @AlexisQapa, |
Indeed, over the stack I get : |
Holy cow, that's why I don't like those «fancy» Rx things, too much uncontrolled magic under the hood.
Long story short, long time ago, the My guess is, it looks like I'll need more time to dig into this just in case, so please keep this issue open, though I don't think it has anything to do with our library. |
Thanks for the input ! I'll open an issue on Rx repo. |
I found something in my code that might be the cause. I'll close this while investigating |
The bug was on my side. |
Prerequisites
X
between the brackets on this line if you have done all of the following:input-mask
tag for similar problems.Describe the bug
I have a crash related to UITextView delegate. I'm not sure it's related to your library thought, I only use it with your library and the bug appeared in the same version I updated the library.
Here is a stack trace:
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x2329ca3a8 __exceptionPreprocess
1 libobjc.A.dylib 0x231bcfd00 objc_exception_throw
2 CoreFoundation 0x2328e29f8 -[NSOrderedSet initWithSet:copyItems:]
3 CoreFoundation 0x2329cfd54 forwarding
4 CoreFoundation 0x2329d1b50 _CF_forwarding_prep_0
5 UIKitCore 0x25ffdffc8 -[UITextView keyboardInputChangedSelection:]
6 UIKitCore 0x25ff518cc -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) notifyKeyboardSelectionChanged]
7 UIKitCore 0x25ff3c54c -[UITextNonEditableInteraction oneFingerTapInUneditable:]
8 UIKitCore 0x25f8ac420 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
9 UIKitCore 0x25f8b48e0 _UIGestureRecognizerSendTargetActions
10 UIKitCore 0x25f8b21dc _UIGestureRecognizerSendActions
11 UIKitCore 0x25f8b16b0 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
12 UIKitCore 0x25f8a5474 _UIGestureEnvironmentUpdate
13 UIKitCore 0x25f8a4ba0 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
14 UIKitCore 0x25f8a4970 -[UIGestureEnvironment _updateForEvent:window:]
15 UIKitCore 0x25fcd7cac -[UIWindow sendEvent:]
16 UIKitCore 0x25fcb6f50 -[UIApplication sendEvent:]
17 UIKitCore 0x25fd82150 __dispatchPreprocessedEventFromEventQueue
18 UIKitCore 0x25fd8490c __handleEventQueueInternal
19 UIKitCore 0x25fd7d9c4 __handleHIDEventFetcherDrain
20 CoreFoundation 0x23295a444 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
21 CoreFoundation 0x23295a3c0 __CFRunLoopDoSource0
22 CoreFoundation 0x232959c7c __CFRunLoopDoSources0
23 CoreFoundation 0x232954950 __CFRunLoopRun
24 CoreFoundation 0x232954254 CFRunLoopRunSpecific
25 GraphicsServices 0x234b93d8c GSEventRunModal
26 UIKitCore 0x25fc9c4c0 UIApplicationMain
Steps to reproduce the behaviour:
The crash happens rarely. Tried every gesture or input on all my textview ^^ as the stack trace doesn't contain any ref to my code.
Platform information
Additional context
I use RxSwift/RxCocoa which can swizzle delegates thought each place I use this lib Rx is not used.
The text was updated successfully, but these errors were encountered: