Comments (9)
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.
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.
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.
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.
Version 4.3.10
should address this issue. Could you please verify and confirm? Thanks.
from pebble.
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.
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.
+1 on this. Having the same issue.
from pebble.
Fix added in release 4.6.0.
Closing this issue, please re-open it if the problem persists.
from pebble.
Related Issues (20)
- Bug: new `submit` function makes it impossible to call a function that has a `timeout` argument HOT 6
- Logging process name inside concurrent.process HOT 2
- How to handle errors when using pool.schedule HOT 1
- shutdown of main program HOT 2
- @concurrent.process returned future blocks/hangs on running(), cancelled(), done() calls HOT 2
- Get information about broken process HOT 4
- Documentation for Pebble indicates threads created with a ThreadPool are cancellable HOT 1
- Channel mutex timeout HOT 6
- How can I use a multiprocessing.manager alongside with pebble to avoid re-importing the function everytime? HOT 1
- Type hint error of wrapped function HOT 7
- ISSUE with with ProcessPool when scheduled function return exception (not raise it) HOT 1
- BUG with ProcessPool when scheduled function raise BaseException HOT 1
- issue with handling frozen exceptions in worker thread or process HOT 1
- Cannot create pebble.ProcessPool() multiple times within a single run, all task got stuck and time out HOT 3
- error while running @concurrent.process repetitively HOT 4
- using multiprocess context (for dill support) no longer working HOT 2
- Workers using 100% CPU not getting killed after timeout HOT 11
- Behavior of Process.map with chunksize > 1 and a timeout HOT 5
- map function is extremely slow, seems to be executing sequentially HOT 1
- Cancel future returned from run_in_executor caused SIGTERM signal to main process HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pebble.