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

Crash on ipadOS/iOS 15 when pressing Tab key using hardware keyboard #2181

Closed
jurex opened this issue Oct 6, 2021 · 5 comments · Fixed by #2205
Closed

Crash on ipadOS/iOS 15 when pressing Tab key using hardware keyboard #2181

jurex opened this issue Oct 6, 2021 · 5 comments · Fixed by #2205

Comments

@jurex
Copy link

jurex commented Oct 6, 2021

Reproducible crash on ipadOS/iOS 15 when pressing Tab key multiple times using hardware keyboard (bluetooth, or usb-c)

Environment: iPad Pro 11, iPad OS 15.0.0, Eureka 5.3.3

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Received a call to becomeFirstResponder while processing a focus update, which is not supported.'
terminating with uncaught exception of type NSException

in Core.swift:

image

Could be related to the new iOS 15 focus system, or something similar...

@dreymonde
Copy link

@jurex were you ever able to find a workaround?

@jurex
Copy link
Author

jurex commented Oct 28, 2021

@dreymonde I commented the whole code there:

// hotfix to prevent crashing when pressing tab key on hw keyboard
    open func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
//        guard let tableView = tableView, scrollView === tableView else { return }
//        tableView.endEditing(true)
    }

don't know if there is any other impact, but the app is not crashing anymore

@dreymonde
Copy link

@jurex understood, thanks for answering! Hopefully we'll see a proper fix soon

@trackvia-ios
Copy link

Bumping and confirming we are seeing this in our latest environment: iOS 15.2, iPad Pro 12.9 5th gen simulator, Eureka 5.3.3

libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Received a call to becomeFirstResponder while processing a focus update, which is not supported.'

@mats-claassen
Copy link
Member

Hey @trackvia-ios, @jurex, @dreymonde the PR linked above should fix the issue. Sorry for the late fix.
Please report if you still see any related crashes

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

Successfully merging a pull request may close this issue.

4 participants