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

HiGHS File Handle Leak #79

Closed
josephmckinsey opened this issue Jan 22, 2022 · 1 comment
Closed

HiGHS File Handle Leak #79

josephmckinsey opened this issue Jan 22, 2022 · 1 comment

Comments

@josephmckinsey
Copy link

Running JuMP.optimize many times will cause the julia process to run out of file handles. Running lsof shows that Highs.log is opened many times and never closed.

The easiest way to reproduce is to try optimizing many times with julia --project -i and then either it will fail or lsof will show hundreds of Highs.log files opened.

using HiGHS
using JuMP

function run_once()
    vector_model = Model(HiGHS.Optimizer)

    A = [
        1 1 9 5
        3 5 0 8
        2 0 6 13
    ]

    b = [7; 3; 5]

    c = [1; 3; 5; 2]

    @variable(vector_model, x[1:4] >= 0)
    @constraint(vector_model, A * x .== b)
    @objective(vector_model, Min, c' * x)

    @timed JuMP.optimize!(vector_model)
end

for i in 1:1000
    run_once()
end

I've been testing against HiGHS version 0.3.10 and HiGHS_jll version 1.1.1+0. JuMP version is 0.22.2.

@odow
Copy link
Member

odow commented Jan 23, 2022

This was an upstream bug in HiGHS: ERGO-Code/HiGHS#586. It will be resolved in the next upstream release of HiGHS.

@odow odow closed this as completed Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants