Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deadlock in pyomo tee using highs with multiprocessing #3456

Open
maurerle opened this issue Jan 16, 2025 · 4 comments
Open

deadlock in pyomo tee using highs with multiprocessing #3456

maurerle opened this issue Jan 16, 2025 · 4 comments

Comments

@maurerle
Copy link
Contributor

Summary

We have an issue where are solving multiple independent problems at the same time using pyomo and highs.

This somehow leads to the error message Significant delay observed waiting to join reader threads, possible output stream deadlock and a deadlock.

Steps to reproduce the issue

Sorry, no MWE for now, I hope to get feedback on what the cause of this could.

$ command1 [options]
$ command2 [options]
...
# example.py
import pyomo.environ
...

Error Message

$ # Output message here, including entire stack trace, if available

Information on your system

Pyomo version: 6.8.2
Python version: 3.12
Operating system: Debian 12
How Pyomo was installed (PyPI, conda, source): pip
Solver (if applicable): pyhighs/HiGHs

Additional information

This occurs when using multiprocessing equally well as when using two terminals to start two optimizations at the same time

@maurerle maurerle added the bug label Jan 16, 2025
@maurerle
Copy link
Contributor Author

I suspect this issue has to do with FINE, which tries to use tee on all outputs and therefore generates this issue.

I am trying to add proper HiGHs support to FINE here: FZJ-IEK3-VSA/FINE#65

@mrmundt
Copy link
Contributor

mrmundt commented Jan 16, 2025

This is most likely related to/similar to #3084 - we have a PR open for that. Would you mind trying that branch (#3449)?

@ChriKo97
Copy link

#3449 is not working for me

@mrmundt
Copy link
Contributor

mrmundt commented Jan 21, 2025

@maurerle - We cannot recreate this without a MWE. Can you please provide us with one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants