xmartlabs / Eureka

Elegant iOS form builder in Swift
https://eurekacommunity.github.io
MIT License
11.78k stars 1.33k forks source link

Unexpectedly found nil - inputAccessoryView #2261

Open rahulzabble opened 1 month ago

rahulzabble commented 1 month ago

Hi

We are seeing a crash on firebase and also reported by our user where the app crashes after the user has filled the form and going to the next screen, this does not happen every time but it does happen at least once everyday.

I have tried the solution mentioned in some older posts but none of them work.

We are not sure when this is exactly happening as it is on the users device.

Versions:

Stack Trace

0   Eureka                          0x00000001030d27e8 Swift runtime failure: Unexpectedly found nil while implicitly unwrapping an Optional value + 0 (/<compiler-generated>:0)
1   Eureka                          0x00000001030d27e8 Cell.inputAccessoryView.getter + 320 (Cell.swift:101)
2   Eureka                          0x00000001030d268c @objc Cell.inputAccessoryView.getter + 24 (/<compiler-generated>:0)
3   UIKitCore                       0x0000000190b8e4f0 -[UIResponder(UIResponderInputViewAdditions) inputAccessoryView] + 40 (UIResponder.m:2002)
4   UIKitCore                       0x0000000191cae41c -[UITextView inputAccessoryView] + 68 (UITextView.m:1313)
5   UIKitCore                       0x0000000190d5cb80 -[UIKeyboardSceneDelegate _inputViewsForResponder:withAutomaticKeyboard:force:] + 900 (UIKeyboardSceneDelegate.m:2124)
6   UIKitCore                       0x0000000190e077ac -[UIKeyboardSceneDelegate _reloadInputViewsForKeyWindowSceneResponder:force:fromBecomeFirstResponder:] + 1424 (UIKeyboardSceneDelegate.m:1573)
7   UIKitCore                       0x0000000190e68e08 -[UIKeyboardSceneDelegate _reloadInputViewsForResponder:force:fromBecomeFirstResponder:] + 88 (UIKeyboardSceneDelegate.m:1388)
8   UIKitCore                       0x0000000190ea83dc -[UIResponder(UIResponderInputViewAdditions) _reloadInputViewsFromFirstResponder:] + 88 (UIResponder.m:2160)
9   UIKitCore                       0x0000000190ea774c -[UIResponder becomeFirstResponder] + 628 (UIResponder.m:420)
10  UIKitCore                       0x0000000190e49fb0 -[UIView(Hierarchy) becomeFirstResponder] + 120 (UIView.m:13527)
11  UIKitCore                       0x0000000191cb0850 -[UITextView becomeFirstResponder] + 260 (UITextView.m:2863)
12  UIKitCore                       0x0000000191c4e77c -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessaryActivatingSelection:] + 128 (UITextInteractionAssistant.m:1771)
13  UIKitCore                       0x0000000191c31dec -[UITextSelectionInteraction _checkForRepeatedTap:gestureLocationOut:] + 188 (UITextSelectionInteraction.m:324)
14  UIKitCore                       0x0000000191c32c6c -[UITextSelectionInteraction _handleMultiTapGesture:] + 852 (UITextSelectionInteraction.m:639)
15  UIKitCore                       0x0000000190f3e4f8 -[UIApplication sendAction:to:from:forEvent:] + 100 (UIApplication.m:5616)
16  UIKitCore                       0x00000001915972d8 -[UITextMultiTapRecognizer onStateUpdate:] + 280 (UITextMultiTapRecognizer.m:62)
17  UIKitCore                       0x0000000190f6e244 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 128 (UIGestureRecognizer.m:157)
18  UIKitCore                       0x0000000190f6e0b4 _UIGestureRecognizerSendTargetActions + 92 (UIGestureRecognizer.m:1640)
19  UIKitCore                       0x0000000190f6de74 _UIGestureRecognizerSendActions + 268 (UIGestureRecognizer.m:1679)
20  UIKitCore                       0x0000000190bff8c4 -[UIGestureRecognizer _updateGestureForActiveEvents] + 544 (UIGestureRecognizer.m:0)
21  UIKitCore                       0x0000000190bccfe8 _UIGestureEnvironmentUpdate + 2476 (UIGestureEnvironment.m:198)
22  UIKitCore                       0x0000000190cc8b04 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 300 (UIGestureEnvironment.m:1416)
23  UIKitCore                       0x0000000190e7f74c -[UIGestureEnvironment _updateForEvent:window:] + 188 (UIGestureEnvironment.m:1383)
24  UIKitCore                       0x0000000190e7ea10 -[UIWindow sendEvent:] + 3188 (UIWindow.m:3649)
25  UIKitCore                       0x0000000190cff924 -[UIApplication sendEvent:] + 564 (UIApplication.m:12721)
26  UIKitCore                       0x0000000190d01118 __dispatchPreprocessedEventFromEventQueue + 5552 (UIEventDispatcher.m:2598)
27  UIKitCore                       0x0000000190d09e10 __processEventQueue + 5624 (UIEventDispatcher.m:2956)
28  UIKitCore                       0x0000000190d08684 __eventFetcherSourceCallback + 164 (UIEventDispatcher.m:2987)
29  CoreFoundation                  0x000000018e917834 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957)
30  CoreFoundation                  0x000000018e9177c8 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001)
31  CoreFoundation                  0x000000018e915298 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2038)
32  CoreFoundation                  0x000000018e914484 __CFRunLoopRun + 828 (CFRunLoop.c:2955)
33  CoreFoundation                  0x000000018e913cd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
34  GraphicsServices                0x00000001d33611a8 GSEventRunModal + 164 (GSEvent.c:2196)
35  UIKitCore                       0x0000000190f4dae8 -[UIApplication _run] + 888 (UIApplication.m:3713)
36  UIKitCore                       0x0000000191001d98 UIApplicationMain + 340 (UIApplication.m:5303)
37  Log Zero                        0x0000000101236f5c main + 64 (AppDelegate.swift:28)
38  dyld                            0x00000001b20eb154 start + 2356 (dyldMain.cpp:1298)