Code Monkey home page Code Monkey logo

Comments (4)

sedwards2009 avatar sedwards2009 commented on May 23, 2024

I am using the 16.4.1 version.

from qodejs.

sedwards2009 avatar sedwards2009 commented on May 23, 2024

Also, so far I've only noticed this problem on Windows.

from qodejs.

sedwards2009 avatar sedwards2009 commented on May 23, 2024

I also noticed that qode/NodeGui can get into a state where my app (a terminal) becomes very slow and sluggish. I strongly suspect this has to do with I/O events not being processed in a timely way.

I've spent some time debugging into this, and have found a couple interesting things so far which may be enough to explain the problem:

  • Sometimes PostMessage() from the monitoring thread to the main thread (actually window) can fail. When this happens, the queue on the window is completely full and "over quota".
  • The semaphore being used to coordinate the monitor thread and running the nodejs event processing on the main thread, gets hits by sem_post() many many times if you are doing I/O before the Qt event loop is entered. This causes the counter in the semaphore to be huge instead of 0 or 1. This gives the monitor thread the ability to spam PostMessage() in a tight loop

I've got some ideas which may fix these problems and my general problem, even if I don't quite figure out the exact details of how the symptoms appear.

from qodejs.

sedwards2009 avatar sedwards2009 commented on May 23, 2024

I'm pretty sure this is fixed now.

from qodejs.

Related Issues (5)

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.