GithubHelp home page GithubHelp logo

Comments (3)

joaodasilva avatar joaodasilva commented on May 1, 2024

The parent process isn't receiving the "exit" event from the child process.

The event is posted to the TaskQueue, but apparently that task never runs. This might be a bug in glfwPostEmptyEvent, not waking up a thread that isn't waiting yet; needs further investigation but this is super hard to reproduce locally.

Unfortunately, this is triggering very often on the Linux builder on GitHub...

from windowjs.

joaodasilva avatar joaodasilva commented on May 1, 2024

Most likely, this is a bug in Xvfb.

Traced down the bug to glfwPostEmptyEvent not waking up a blocked glfwWaitEvents; internally, the XSendEvent calls succeeded but the blocking select() on the ConnectionNumber() fd never returned (until the test times out).

The bug also never reproes with Xorg or Xquartz.

Going to try to run tests with another headless X server, like Xdummy.

from windowjs.

joaodasilva avatar joaodasilva commented on May 1, 2024

This repros with Xdummy and Xquartz too, but at a lower frequency. So it's probably an issue with XSendEvent from a background thread instead.

It's likely glfw/glfw#1281.

Next attempt at a fix is to use a self-pipe to wake up select(), or use pselect and a signal to wake it up instead.

from windowjs.

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.