Skip to content
New issue

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

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

Already on GitHub? # to your account

System.AccessViolationException when trying to delete a restriction after LPError #88

Open
Thiago-NovaesB opened this issue Mar 11, 2024 · 1 comment

Comments

@Thiago-NovaesB
Copy link

When creating an LP problem where there are NaN in the matrix, I got an LPError when trying to optimize, which makes sense.
However, when trying to delete restrictions from the problem, I get the System.AccessViolationException error. It seems to me that there is a problem in SCIP's memory management, which causes it to have problems with references after an LPError in certain cases.

Is this a known issue? I can share the .lp if not.

@svigerske
Copy link
Member

It could be that SCIP is left in a bad state when there is a serious error like this (i.e., SCIPsolve() not returning with SCIP_OKAY) and usually programs then terminate or, at most, free the SCIP instance, but do not try to modify and continue.

In order to look into it, a way to reproduce this could indeed be helpful.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants