Git Product home page Git Product logo

Comments (7)

EtaiG avatar EtaiG commented on June 12, 2024

I added some internal logging to Q while debugging, where it would log each 'thenable' task and each executed one.

Before the first time a page load is attempted, there are 2 more thenables than tasks run, so it looks like it does stall at some point.

Also, I moved the declaration of flushing to outside the nextTick function, so that it is accessible on the module level, and added Q.isFlushing = function(){return flushing;}

Then when I reproduced the issue again, was able to check and verify - it was stuck flushing. After all tasks in Q have completed, flushing should be false.

I also tried to log the rejections but there weren't any to speak of- at least none that I could successfully log.

I'm in Tel Aviv, Israel, so I would be 10 hours ahead of your time.

i would be more than happy to let you connect to me via TeamViewer or something similar so that you can see the issue reproduced (it's just a difficult scenario to reproduce when you try.. much easier to reproduce when you don't want it to happen ;) ).

i'll check back here tomorrow morning, so if you're interested, I'll stay late to connect with you due to the timezone differences.

-Etai

from asap.

kriskowal avatar kriskowal commented on June 12, 2024

@dtpx No need to stay late. At some point, I’ll either try to reproduce or send you a patch that might address the issue for you to verify.

from asap.

rkatic avatar rkatic commented on June 12, 2024

I think the fix is pending at https://github.com/kriskowal/asap/pull/22/files#diff-eb6974d7d0aacfb5eeba15f92952d63cR109

from asap.

EtaiG avatar EtaiG commented on June 12, 2024

@rkatic, I'm making the changes in Q to reflect that pull req. and testing, I'll let you know if this addresses the issue.

from asap.

EtaiG avatar EtaiG commented on June 12, 2024

It's not fixing the issue. I'm still able to get to a state where Q stalls.

I'm trying to understand how this can possibly happen and why only in safari..

Is there a way I can see the actual promises in the queue?

I'm currently going to try to make the tasklist doubly linked, and expose it so that I can inspect it when this happens... if you have a better idea for how to debug it I'm open to more suggestions.

from asap.

rousso1 avatar rousso1 commented on June 12, 2024

any news on this issue?

from asap.

kriskowal avatar kriskowal commented on June 12, 2024

See: #41

from asap.

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.