HiGHS icon indicating copy to clipboard operation
HiGHS copied to clipboard

Error: TeeStream: deadlock observed joining reader threads

Open KelvinCheng5507 opened this issue 1 year ago • 2 comments

Context: I'm using Pyomo with HiGHS on Google Cloud Functions V2 with Python. It works fine with smaller models, but for larger models I'm consistently getting this error:

TeeStream: deadlock observed joining reader threads

I checked that TeeStream is not a python thing so I'm wondering whether it's related to the C++ code in HiGHS?

This error occurs after the solve terminates.

Thanks a lot!

KelvinCheng5507 avatar Jan 12 '25 11:01 KelvinCheng5507

I've never heard of "Teestream", so I don't think it's involved with HiGHS. However, no-one in the main HiGHS team is a Python programmer

Seeing it mentioned here https://github.com/Pyomo/pyomo/issues/3210, this looks like a Pyomo problem

Does this mean anything to you @mathgeekcoder?

jajhall avatar Jan 12 '25 12:01 jajhall

This might be related to #1670. I believe TeeStream just duplicates and redirects the stdout and stderr streams.

It could be a HiGHS issue. I just got back from travel, so might have a little time to investigate once I get caught up.

mathgeekcoder avatar Jan 13 '25 20:01 mathgeekcoder