Giter Site home page Giter Site logo

Recorder thread fails to join about timelapse HOT 3 CLOSED

mre avatar mre commented on May 23, 2024 1
Recorder thread fails to join

from timelapse.

Comments (3)

mre avatar mre commented on May 23, 2024

That's weird. It works for me. I thought that by calling _set_stop(), which sets the flag to stop the recording thread after the next iteration, it would terminate recording. Maybe there's an edge case that is not covered? Anyway, I'd be happy to merge a PR that fixes that if you want to give it a shot.
Thanks for the report.

from timelapse.

cmangla avatar cmangla commented on May 23, 2024

I tried very hard to figure out if there is some weird race condition in there. When _set.stop() is called, it seems to do its job. The loop in run() does indeed terminate. So I cannot figure out why Thread.join() then hangs. I even tried using a timeout in Thread.join, but that makes no difference: it hangs and does not time out.

The only clean solution I've found is to run Recorder in a different process. PR #24 does so.

from timelapse.

cmangla avatar cmangla commented on May 23, 2024

Thanks for merging PR #24 @mre.

from timelapse.

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.