hironytic / hntask Goto Github PK
View Code? Open in Web Editor NEWUtility for asynchronous operations, written in Swift.
License: Other
Utility for asynchronous operations, written in Swift.
License: Other
Since Xcode 6 beta 6 Tests crash at HNTask#continueWith().
Why EXC_BAD_ACCESS occurs?
I have no idea to avoid this.
Thread 1
#0 0x00238b8f in _swift_retain_(swift::HeapObject*) ()
#1 0x00126dc7 in Swift.HeapBuffer._capacity <A, B>(Swift.HeapBuffer<A, B>)() -> Swift.Int ()
#2 0x000f7ca4 in Swift._ContiguousArrayBuffer.init <A>(Swift._ContiguousArrayBuffer<A>.Type)(count : Swift.Int, minimumCapacity : Swift.Int) -> Swift._ContiguousArrayBuffer<A> ()
#3 0x00117910 in Swift._createUniqueMutableBuffer <A : Swift._ArrayBufferType>(inout A, Swift.Int, minimumCapacity : Swift.Int) -> Swift.Optional<Swift._ContiguousArrayBuffer<A.Element>> ()
#4 0x000ffcb5 in Swift._arrayAppend <A : Swift._ArrayBufferType>(inout A, A.Element) -> () ()
#5 0x000ed419 in Swift.Array.append <A>(inout Swift.Array<A>)(A) -> () ()
#6 0x0b4dd0c7 in HNTaskTests.HNTask.(continueWith (HNTaskTests.HNTask) -> (HNTaskTests.HNExecutor, callback : (HNTaskTests.HNTask) -> (result : Swift.Optional<protocol<>>, error : Swift.Optional<protocol<>>)) -> HNTaskTests.HNTask).(closure #2) at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:260
#7 0x0b4d851c in partial apply forwarder for HNTaskTests.HNTask.(continueWith (HNTaskTests.HNTask) -> (HNTaskTests.HNExecutor, callback : (HNTaskTests.HNTask) -> (result : Swift.Optional<protocol<>>, error : Swift.Optional<protocol<>>)) -> HNTaskTests.HNTask).(closure #2) ()
#8 0x0b4dd142 in reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned () -> (@out ()) at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:257
#9 0x0b4d85cd in partial apply forwarder for reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned () -> (@out ()) ()
#10 0x0b4d732e in HNTaskTests.HNTask.doInLock (HNTaskTests.HNTask)<A>(() -> A) -> A at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:177
#11 0x0b4d81de in HNTaskTests.HNTask.continueWith (HNTaskTests.HNTask)(HNTaskTests.HNExecutor, callback : (HNTaskTests.HNTask) -> (result : Swift.Optional<protocol<>>, error : Swift.Optional<protocol<>>)) -> HNTaskTests.HNTask at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:257
#12 0x0b4d876f in HNTaskTests.HNTask.then (HNTaskTests.HNTask)(HNTaskTests.HNExecutor, onFulfilled : (Swift.Optional<protocol<>>) -> Swift.Optional<protocol<>>) -> HNTaskTests.HNTask at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:275
#13 0x0b4d88fc in HNTaskTests.HNTask.then (HNTaskTests.HNTask)((Swift.Optional<protocol<>>) -> Swift.Optional<protocol<>>) -> HNTaskTests.HNTask at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:285
#14 0x0b4ef8a5 in HNTaskTests.HNTaskTests.testAsyncExecutorsRunAsync (HNTaskTests.HNTaskTests)() -> () at /Users/ichi/Projects/private/HNTask/HNTaskTests/HNTaskTests.swift:623
Thread 3 (crashed)
#0 0x01ec8e13 in objc_retain ()
#1 0x00219a03 in initializeBufferWithCopyOfBuffer value witness for Swift.String ()
#2 0x00242437 in swift::metadataimpl::ValueWitnesses<swift::metadataimpl::OpaqueExistentialBox<0u> >::initializeWithCopy(swift::OpaqueValue*, swift::OpaqueValue*, swift::Metadata const*) ()
#3 0x0b4dac9f in Swift._doesOptionalHaveValue <A>(inout Swift.Optional<A>) -> Builtin.Int1 ()
#4 0x0b4dc8e3 in HNTaskTests.HNTask.(continueWith (HNTaskTests.HNTask) -> (HNTaskTests.HNExecutor, callback : (HNTaskTests.HNTask) -> (result : Swift.Optional<protocol<>>, error : Swift.Optional<protocol<>>)) -> HNTaskTests.HNTask).(closure #1).(closure #1) at /Users/ichi/Projects/private/HNTask/HNTask/HNTask.swift:245
#5 0x0b4da5d1 in partial apply forwarder for HNTaskTests.HNTask.(continueWith (HNTaskTests.HNTask) -> (HNTaskTests.HNExecutor, callback : (HNTaskTests.HNTask) -> (result : Swift.Optional<protocol<>>, error : Swift.Optional<protocol<>>)) -> HNTaskTests.HNTask).(closure #1).(closure #1) ()
#6 0x0b4d54a8 in reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_unowned @objc_block () -> (@unowned ()) at /Users/ichi/Projects/private/HNTask/HNTask/HNDispatchQueueExecutor.swift:35
#7 0x023b68ba in _dispatch_call_block_and_release ()
#8 0x023d00ef in _dispatch_client_callout ()
#9 0x023bc9e8 in _dispatch_root_queue_drain ()
#10 0x023bd48a in _dispatch_worker_thread2 ()
#11 0x02735dab in _pthread_wqthread ()
#12 0x02739cce in start_wqthread ()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.