PySCIPOpt icon indicating copy to clipboard operation
PySCIPOpt copied to clipboard

Model instance creation causes "SCIP: unspecified error!" for SCIP 8.0.1 built with -DTPI=tny cmake option

Open vvvol opened this issue 3 years ago • 5 comments

Our team successfully used PySCIPOpt 4.2.0 with SCIP 8.0.0 (Linux Ubuntu 20.04, Python 3.8.10).

But when we had built SCIP 8.0.1 and then recompiled PySCIPOpt for this new version all our scripts begin crash on model creation !? For example the operator m = pyscipopt.scip.Model() causes the following message

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
src/pyscipopt/scip.pyx in pyscipopt.scip.PY_SCIP_CALL()
Exception: SCIP: method cannot be called at this time in solution process!
Exception ignored in: 'pyscipopt.scip.Model.__dealloc__'
Traceback (most recent call last):
  File "src/pyscipopt/scip.pyx", line 252, in pyscipopt.scip.PY_SCIP_CALL
Exception: SCIP: method cannot be called at this time in solution process!
---------------------------------------------------------------------------

Why dealloc is called ?!

vvvol avatar Aug 09 '22 20:08 vvvol

It seems that the reason is in our build scripts (which we use to make SCIP et al from sources). After installing SCIPOptSuite applications from "legal" DEB-package SCIPOptSuite-8.0.1-Linux-ubuntu.deb PySCIPOpt 4.2.0 seems work properly.

vvvol avatar Aug 24 '22 19:08 vvvol

We found that the problem might be caused by setting -DTPI=tny in cmake options (in SCIP build script). To keep multi-threading feature of scip application (see concurrentopt command) we had put -DTPI=omp and the problem seems was resolved. Nevertheless it would be right if developers will issue official recommendation/workaround/patch...

vvvol avatar Sep 11 '22 19:09 vvvol

Do you know if the interactive shell on the command line works for the binary built with -DTPI=tny ?

ambros-gleixner avatar Sep 14 '22 10:09 ambros-gleixner

Do you know if the interactive shell on the command line works for the binary built with -DTPI=tny ?

It (SCIP console app built with DTPI=tny) works at all my systems (Ubuntu 20.04, Debian 11). But fscip (FiberSCIP) does not:` [syncstore.c:72] ERROR: Error <0> in function call [scip_general.c:245] ERROR: Error <0> in function call [scip_general.c:289] ERROR: Error <0> in function call [syncstore.c:88] ERROR: Error <0> in function call [scip_general.c:331] ERROR: Error <0> in function call [scipParaInitiator.cpp:391] ERROR: Error <0> in function call 19830 Segmentation fault

If DTPI=omp, then both scip and fscip work as usual ...

vvvol avatar Sep 15 '22 21:09 vvvol

Thanks, we will have to look what could cause the incompatibility here.

ambros-gleixner avatar Sep 16 '22 03:09 ambros-gleixner

I'm out of the loop, sorry. Is this issue still relevant @vvvol, or was it fixed in the meantime?

Joao-Dionisio avatar Mar 24 '23 09:03 Joao-Dionisio

Closing this issue to clear the issue page, but feel free to reopen it if you think it's still necessary.

Joao-Dionisio avatar Jun 29 '23 16:06 Joao-Dionisio