Crash in the example app on shuffle or relaod.
nonameplum opened this issue · 1 comments
nonameplum commented
Checklist
- This is not a Apple's bug.
- Reviewed the README and documents.
- Searched existing issues for ensure not duplicated.
Expected Behavior
The application doesn't crash on changeset usage.
Current Behavior
Steps to Reproduce
- git clone https://github.com/ra1028/Carbon
- make setup
- Run example app on the simulator e.g. iPhone 11 (13.3)
- Pick Shuffle Emoji
- Tap on *Shuffle or reload
Detailed Description (Include Screenshots)
The application crashes when tries to access variable changesets
in StagedChangeset
.
Class stack:
#0 0x00007fff51ba9008 in swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::incrementSlow(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) ()
#1 0x00007fff51b81028 in _swift_retain_(swift::HeapObject*) ()
#2 0x00007fff51bd03dc in swift_bridgeObjectRetain ()
#3 0x0000000106eae18b in initializeWithCopy for Changeset ()
#4 0x00007fff51903ecd in ContiguousArray.subscript.getter ()
#5 0x0000000106ec9eb9 in StagedChangeset.subscript.getter at ~/Downloads/Carbon/Carthage/Checkouts/DifferenceKit/Sources/StagedChangeset.swift:70
#6 0x0000000106eca4ea in StagedChangeset.subscript.read ()
#7 0x0000000106ecb1c9 in protocol witness for Collection.subscript.read in conformance StagedChangeset<A> ()
#8 0x00007fff518fc01c in protocol witness for IteratorProtocol.next() in conformance IndexingIterator<A> ()
#9 0x00007fff51a04a71 in Sequence.reduce<A>(_:_:) ()
#10 0x0000000106e1aa8a in UICollectionViewUpdater.performUpdates(target:adapter:data:) at ~/Downloads/Carbon/Sources/Updaters/UICollectionViewUpdater.swift:66
When trying to access changesets
from LLDB the errors is shown:
expression produced error: error: /var/folders/02/t9d7qfqn41l47hv7p007jkgr0000gn/T/expr114-a87593..swift:1:123: error: use of undeclared type 'Carbon'
Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer<Swift.ContiguousArray<DifferenceKit.Changeset<Swift.Array<Carbon.Section>>>>(bitPattern: 0x114343780)!.pointee)
Environments
-
Carbon version:
1.0.0-rc.6 -
Swift version:
5.1.3 -
iOS version:
13.3 -
Xcode version:
11.3.1 -
Devices/Simulators:
Any simulator
nonameplum commented
Seems like this was Xcode related issue.