ryanjoneil / SCIP.jl

(deprecated) Julia interface to the SCIP solver
MIT License
2 stars 4 forks source link

Error in running Finalizer #18

Closed yeesian closed 9 years ago

yeesian commented 9 years ago

Running test/test.jl gets me

$ julia test/test.jl
Loaded SCIP version: 3.1
done
error in running finalizer: Base.MethodError(f=convert, args=(Ptr{Ptr{SCIP.CInterface._SCIP}}, SCIP.Helper.SPtr{SCIP.CInterface._SCIP}(ptr_array=Array{Ptr{SCIP.CInterface._SCIP}, 1}[0x0000000044b1f480])))

I can reproduce it with test/mpb.jl:

yeesian$ julia test/mpb.jl
feasible solution found by trivial heuristic after 0.0 seconds, objective value 1.000000e+00
presolving:
presolving (1 rounds):
 2 deleted vars, 1 deleted constraints, 0 added constraints, 2 tightened bounds, 0 added holes, 0 changed sides, 0 changed coefficients
 0 implications, 0 cliques
presolved problem has 0 variables (0 bin, 0 int, 0 impl, 0 cont) and 0 constraints
transformed objective value is always integral (scale: 1)
Presolving Time: 0.00

 time | node  | left  |LP iter|LP it/n| mem |mdpt |frac |vars |cons |cols |rows |cuts |confs|strbr|  dualbound   | primalbound  |  gap
t 0.0s|     1 |     0 |     0 |     - | 164k|   0 |   - |   0 |   0 |   0 |   0 |   0 |   0 |   0 |      --      | 2.000000e+00 |    Inf
  0.0s|     1 |     0 |     0 |     - | 163k|   0 |   - |   0 |   0 |   0 |   0 |   0 |   0 |   0 | 2.000000e+00 | 2.000000e+00 |   0.00%

SCIP Status        : problem is solved [optimal solution found]
Solving Time (sec) : 0.00
Solving Nodes      : 1
Primal Bound       : +2.00000000000000e+00 (2 solutions)
Dual Bound         : +2.00000000000000e+00
Gap                : 0.00 %
status: Optimal
objective value: 2.0
solution: [0.0,1.0]
error in running finalizer: Base.MethodError(f=convert, args=(Ptr{Ptr{SCIP.CInterface._SCIP}}, SCIP.Helper.SPtr{SCIP.CInterface._SCIP}(ptr_array=Array{Ptr{SCIP.CInterface._SCIP}, 1}[0x00000000ee24ec10])))
yeesian$
ryanjoneil commented 9 years ago

Still getting this with the new code generation, so it doesn't seem to be a problem there:

ryan@kurtag:~/Desktop/github.com/SCIP.jl$ julia test/test.jl 
Loaded SCIP version: 3.11
done
error in running finalizer: Base.MethodError(f=convert, args=(Ptr{Ptr{SCIP.CInterface._SCIP}}, SCIP.Helper.SPtr{SCIP.CInterface._SCIP}(ptr_array=Array{Ptr{SCIP.CInterface._SCIP}, 1}[0x0000000005543740])))