Giter Club home page Giter Club logo

Comments (5)

oVuTrongThien avatar oVuTrongThien commented on May 29, 2024

Simulator crash when number >= 20000

from brightfutures.

phimage avatar phimage commented on May 29, 2024

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.

phimage avatar phimage commented on May 29, 2024

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.

phimage avatar phimage commented on May 29, 2024

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.

Thomvis avatar Thomvis commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.