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

Simultaneous access in observeValue(forKeypath:of:change:context:) causes a crash #34

Open
aurora14 opened this issue Nov 16, 2017 · 0 comments

Comments

@aurora14
Copy link

When building with Xcode 9.1/Swift 4, our production app crashes on load with the following message:

Thread 1: Simultaneous accesses to 0x10391fbb0, but modification requires exclusive access

Initial call where the issue happens is

tableView.addPullRefresh(options:refreshCompletion), which then cascades down to the method mentioned above.

Possibly caused by something similar to this:
Yalantis/PullToRefresh#72

MaG21 added a commit to MaG21/PullToRefreshSwift that referenced this issue Nov 24, 2017
This commit fix issue dekatotoro#34, an issue that was previously fixed by PR #73
but reappeared because of Swift-4's improved runtime checks, pointed out
by Michael Brown in his blog.

http://michael-brown.net/2017/swift-and-kvo-context-variables/

This buf was already fixed by PR 72, however
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

No branches or pull requests

1 participant