Skip to content

IOS EXC_BAD_ACCESS #1481

@leruse4ka

Description

@leruse4ka

Describe the bug
We're receiving crashes related to using input fields in a modal window. According to the logs, users open a modal window containing one input field and experience a crash. We don't know the user's exact actions, and we haven't been able to reproduce the crash ourselves. Regarding modal windows, these are just assumptions; on regular screens, such crashes do not occur, or occur less frequently.

It is not possible to provide an example because it cannot be repeated.

Expected behavior
there are no crashes

Smartphone (please complete the following information):

ONLY IOS

  • Desktop OS: [MacOS 10.15.5]
  • Device: [iPhone13, iPhone14 and others]
  • OS: [iOS 15.8.7, 26.4.2 and others]
  • RN version: [0.82.1]
  • RN architecture: [new]
  • JS engine: [Hermes]
  • Library version: [1.21.8]

Additional context

First crash

EXC_BAD_ACCESS 0x0000000000000002

Crashed: Thread
0 libobjc.A.dylib class_respondsToSelector_inst + 4
1 UIKitCore -[UITextField respondsToSelector:] + 56
2 MyApp KCTextInputCompositeDelegate.forwardingTarget(for:) + 92 (KCTextInputCompositeDelegate.swift:219)
3 MyApp @objc KCTextInputCompositeDelegate.forwardingTarget(for:) + 48 ()
4 CoreFoundation forwarding + 212
5 CoreFoundation forwarding_prep_0_ + 96
6 UIKitCore -[UITextField customOverlayContainer] + 80
7 UIKitCore -[UITextField customOverlayContainer] + 80
8 UIKitCore -[UITextField customOverlayContainer] + 80
9 UIKitCore -[UITextField customOverlayContainer] + 80
10 UIKitCore -[UITextField customOverlayContainer] + 80
11 UIKitCore -[UITextField customOverlayContainer] + 80
...
500 UIKitCore -[UITextField customOverlayContainer] + 80

Second crash

#0. EXC_BAD_ACCESS 0x0000000000000002

Crashed: Thread
0 libobjc.A.dylib objc_loadWeakRetained + 8
1 MyApp KCTextInputCompositeDelegate.activeDelegate.getter + 36 [inlined] (KCTextInputCompositeDelegate.swift:116)
2 MyApp KCTextInputCompositeDelegate.forwardingTarget(for:) + 68 (KCTextInputCompositeDelegate.swift:219)
3 MyApp @objc KCTextInputCompositeDelegate.forwardingTarget(for:) + 48 ()
4 CoreFoundation forwarding + 216
5 CoreFoundation forwarding_prep_0_ + 96
6 UIKitCore -[UITextField keyboardInputChangedSelection:] + 100
...
500 UIKitCore -[UITextField keyboardInputChangedSelection:] + 100

Third crash

#0. EXC_BAD_ACCESS 0x0000000000000002

Crashed: Thread
0 libobjc.A.dylib objc_loadWeakRetained + 4
1 MyApp KCTextInputCompositeDelegate.activeDelegate.getter + 36 [inlined] (KCTextInputCompositeDelegate.swift:116)
2 MyApp KCTextInputCompositeDelegate.forwardingTarget(for:) + 68 (KCTextInputCompositeDelegate.swift:219)
3 MyApp @objc KCTextInputCompositeDelegate.forwardingTarget(for:) + 48 ()
4 CoreFoundation forwarding + 212
5 CoreFoundation forwarding_prep_0_ + 96
6 UIKitCore -[UITextField customOverlayContainer] + 80
...
500 UIKitCore -[UITextField customOverlayContainer] + 80

Metadata

Metadata

Assignees

Labels

🍎 iOSiOS specific🎯 crashLibrary triggers a crash of the app

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions