Git Product home page Git Product logo

Comments (9)

noxdafox avatar noxdafox commented on August 19, 2024

Hello,

thanks for reporting this.

The issue happens when the Pool is shutdown and does not compromise its functionalities. You see the stack trace because the library logs internal problems. Nevertheless, the crash itself happens in a separate thread and should not affect your application.

I will try to spin a Windows 10 environment and test it as soon as I have some time.

from pebble.

rhaskett avatar rhaskett commented on August 19, 2024

Thanks. I've been playing with the concurrent decorator as well on the same win10 system and haven't seen any issues there.

from pebble.

noxdafox avatar noxdafox commented on August 19, 2024

A more in depth explanation of what might be happening is here: https://bugs.python.org/issue19565

Haven't tried to reproduce it yet.

from pebble.

noxdafox avatar noxdafox commented on August 19, 2024

I managed to get a Windows machine to try out the issue. It seems the error is correctly handled by pebble but yet the crash is shown on the stderr.

My suspect is this line. The print_exc prints the traceback on stderr which would explain why the error seems coming from the Python internals rather than pebble modules. pebble correctly handles the excepition which is expected to happen when the Pool is shutdown.

I am not sure why the Python community decided to force print the traceback of an exception even when it is expected and handled. I guess the only workaround would be to rework the pool shutdown logic to make it more clean with Windows. This might take a while as it's a quite delicate procedure.

tl;dr: the output you see is not causing any real issue or compromising your application stability. It's just an annoying spurious log.

from pebble.

noxdafox avatar noxdafox commented on August 19, 2024

Version 4.3.10 should address this issue. Could you please verify and confirm? Thanks.

from pebble.

noxdafox avatar noxdafox commented on August 19, 2024

This should be fixed in 4.3.10 as for #35. Closing the issue. Please feel free to re-open if you are still affected by it.

from pebble.

noxdafox avatar noxdafox commented on August 19, 2024

FYI, I had to revert the fix as it was causing deadlock issues. I will try to find another way to silence the noise.

from pebble.

andrewrsky avatar andrewrsky commented on August 19, 2024

+1 on this. Having the same issue.

from pebble.

noxdafox avatar noxdafox commented on August 19, 2024

Fix added in release 4.6.0.

Closing this issue, please re-open it if the problem persists.

from pebble.

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.