Comments (5)
Simulator crash when number >= 20000
from brightfutures.
Thanks for the code. If it is reproductible I will look at (create a project and commit it on github could help to solve issue more rapidly)
If there is a crash you must have information to give, error code and message, thread dump etc...
from brightfutures.
Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee7eeb298)
here in the code ?
extension Async: MutableAsyncType {
@discardableResult
func tryComplete(_ value: Value) -> Bool{
return queue.sync {
on the queue "Internal Async Queue"
from brightfutures.
I make some monitoring by printing the current label queue before the queue.sync
I use 10000 as "number"
extension DispatchQueue {
class var currentLabel: String {
return String(validatingUTF8: __dispatch_queue_get_label(nil))!
}
}
And main thread is used until 10002
0 com.apple.main-thread
1 com.apple.main-thread
2 com.apple.main-thread
3 com.apple.main-thread
4 com.apple.main-thread
5 com.apple.main-thread
6 com.apple.main-thread
...
9997 com.apple.main-thread
9998 com.apple.main-thread
9999 com.apple.main-thread
10000 com.apple.main-thread
10001 com.apple.main-thread
10002 Internal Async Queue
10003 Internal Async Queue
10004 Internal Async Queue
...
12135 Internal Async Queue
12136 Internal Async Queue
I have the issue with simulator between 2100 and 2200
Maybe a stack size issue, or reeentrance
from brightfutures.
Thanks for report @oVuTrongThien, thanks @phimage for looking into it. I think this is similar to a stack overflow for deep recursive code. Not much we can do about it, I think. What could work is scheduling some of the work in an asynchronous fashion.
from brightfutures.
Related Issues (20)
- Swift4: build failure HOT 1
- Failed when compiling Bitcode HOT 1
- Promise chaining in BrightFutures using flatMap HOT 3
- Compile error on Xcode 9.3 beta 3 HOT 2
- Swift 4.1 support release HOT 2
- Swift 4.1 Crashes HOT 3
- Generic parameter 'T' could not be inferred HOT 1
- Compile error with XCode 9.3 / Swift 3.3 HOT 1
- Developers in danger!
- Update to Result 4.0.0 (or not) HOT 2
- Conflict with seconds and milliseconds shortcuts HOT 7
- Carthage issue with Result version choosing HOT 2
- Synchronous resolution of Futures HOT 2
- High crash rate after upgrade to Xcode 10 HOT 3
- Update to Result -> 4
- Support Swift 5 HOT 2
- Apparent dealloc error after Swift 5/Xcode 10.3 upgrade HOT 10
- 8.0.1 not available on Cocoapods
- No option to throw an error inside map HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brightfutures.