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

[SR-2103] Crash in IndexPath._unconditionallyBridgeFromObjectiveC #44711

Closed
swift-ci opened this issue Jul 18, 2016 · 1 comment
Closed

[SR-2103] Crash in IndexPath._unconditionallyBridgeFromObjectiveC #44711

swift-ci opened this issue Jul 18, 2016 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-2103
Radar None
Original Reporter IngmarStein (JIRA User)
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 451aa8cb2302e3606f210d50c36b0f4c

relates to:

  • SR-2417 Crash in IndexPath._unconditionallyBridgeFromObjectiveC in UICollectionView

Issue Description:

I'm implementing `UITableViewDelegate.tableView(_:didEndEditingRowAt:) and experience a crash with the following stack trace on iOS 10:

    #​0  0x000000010dfa8e8a in static IndexPath._unconditionallyBridgeFromObjectiveC(NSIndexPath?) -> IndexPath ()
    #​1  0x0000000109b5e727 in @objc CarViewController.tableView(UITableView, didEndEditingRowAt : IndexPath) -> () ()
    #​2  0x000000010bfcf5dd in -[UITableView _sendDidEndEditingForIndexPath:] ()
    #​3  0x000000010bff2e98 in -[UITableView _endSwipeToDeleteRowDidDelete:] ()
    #​4  0x000000010bfc2c8c in -[UITableView _endCellAnimationsWithContext:] ()
    #&#8203;5  0x0000000109b5f844 in CarViewController.controllerDidChangeContent(NSFetchedResultsController<NSFetchRequestResult>) -> () at CarViewController.swift:629
    #&#8203;6  0x0000000109b5f8da in @objc CarViewController.controllerDidChangeContent(NSFetchedResultsController<NSFetchRequestResult>) -> () ()
    #&#8203;7  0x000000010aaccb88 in __82-[NSFetchedResultsController(PrivateMethods) _core_managedObjectContextDidChange:]_block_invoke ()
    #&#8203;8  0x000000010a9ace5c in developerSubmittedBlockToNSManagedObjectContextPerform ()
    #&#8203;9  0x000000010a9acd2f in -[NSManagedObjectContext performBlockAndWait:] ()
    #&#8203;10 0x000000010aacb3e7 in -[NSFetchedResultsController(PrivateMethods) _core_managedObjectContextDidChange:] ()
    #&#8203;11 0x000000010adec74c in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ ()
    #&#8203;12 0x000000010adec64b in _CFXRegistrationPost ()
    #&#8203;13 0x000000010adec3b2 in ___CFXNotificationPost_block_invoke ()
    #&#8203;14 0x000000010adaf072 in -[_CFXNotificationRegistrar find:object:observer:enumerator:] ()
    #&#8203;15 0x000000010adae10b in _CFXNotificationPost ()
    #&#8203;16 0x0000000109f7f92b in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
    #&#8203;17 0x000000010a9957d0 in -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] ()
    #&#8203;18 0x000000010aa27e61 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:deletions:updates:refreshes:deferrals:wasMerge:] ()
    #&#8203;19 0x000000010a98f6f2 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] ()
    #&#8203;20 0x000000010a99333c in -[NSManagedObjectContext save:] ()

My interpretation is that something bad happens when bridging NSIndexPath to IndexPath.

@swift-ci
Copy link
Collaborator Author

Comment by Ingmar Stein (JIRA)

Fixed in Xcode 8 Beta 3

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant