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

model.freeTransform() breaks debugging in VsCode #604

Open
Joao-Dionisio opened this issue Jul 19, 2022 · 1 comment
Open

model.freeTransform() breaks debugging in VsCode #604

Joao-Dionisio opened this issue Jul 19, 2022 · 1 comment
Labels

Comments

@Joao-Dionisio
Copy link
Collaborator

Using a simple example, diet.py when I introduce model.freeTransform() in line 98, the debugging in vscode starts to behave in unexpected ways. Placing a breakpoint between lines 97 and 102 works well for the first iteration of the loop, but for the second iteration the code stops at the breakpoint for a few tenths of a second, and the debugging console says something like "Error [1]: server disconnected unexpectedly". If I remove model.freeTransform(), this issue does not arise. I know that it does not make sense to use it here, but this is a behavior that I have encountered several times within my own code. This is important because it is not unusual that PySCIPOpt terminates without an error message, and so debugging is crucial. I am unsure if this is an issue with my computers (it happens in both), or with vscode itself, but it seems that freeTransform() is the culprit. Below you can find the code to, hopefully, reproduce the problem. Some pictures detail the error as well.

Here is the code. diet.py.zip

First iteration of the loop works fine

image

Second iteration we get this error

image

@Joao-Dionisio
Copy link
Collaborator Author

Joao-Dionisio commented Sep 22, 2023

@mmghannam here you go!

As context for other people, we discovered that the code broke as a result of a segmentation fault, so it is likely to be a problem with SCIP.

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

No branches or pull requests

1 participant