ModischFabrications / CutSolver

Webservice to determine ideal cut placement on stocks
https://cutsolver.modisch.me
GNU Lesser General Public License v3.0
31 stars 6 forks source link

Freeze (100% cpu usage) on solve #74

Closed telaak closed 3 months ago

telaak commented 3 months ago

Certain input e.g.

{
    cut_width: 0,
    max_length: 600,
    target_sizes: [{ length: "106", quantity: "12" }],
}

causes uvicorn (at least according to top) to go up to 100% cpu usage, freeze and be unable to respond to any request until restarted.

The hosted version at https://cutsolver.modisch.me/ is also currently stuck due to this.

ModischFabrications commented 3 months ago

Oh wow, didn't notice that, must have been at least a week. Thanks for saying something!

I have restarted the instance and am looking into fixing it, potentially by updating the frontend to the new v1.1.0 format.

ModischFabrications commented 3 months ago

The pure solver with proper env setup should have been working since v1.1.0, the frontend was also updated in https://github.com/ModischFabrications/CutSolverFrontend/pull/75

Do remember to update your API usage if you host it yourself.