Skip to content

lots of intersect type errors from copy_to #1294

@lkapelevich

Description

@lkapelevich

This should probably be a Julia issue, but it might be worth starting here.
On Julia master, if I run:

using JuMP, Hypatia
MOIU = MOI.Utilities
model = Model(Hypatia.Optimizer)
backend = JuMP.backend(model)
MOIU.attach_optimizer(backend)
m = backend.optimizer.model
indexmap = MOI.copy_to(m.optimizer, m.model_cache, copy_names = false)

I get a very long error:

Internal error: encountered unexpected error in runtime:
StackOverflowError()
intersect at /home/thoth/julia/src/subtype.c:2944
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3060
intersect_unionall_ at /home/thoth/julia/src/subtype.c:2538
intersect_unionall at /home/thoth/julia/src/subtype.c:2587
intersect at /home/thoth/julia/src/subtype.c:3096
intersect_all at /home/thoth/julia/src/subtype.c:3186
intersect_aside at /home/thoth/julia/src/subtype.c:2092 [inlined]
intersect_aside at /home/thoth/julia/src/subtype.c:2079 [inlined]
intersect_var at /home/thoth/julia/src/subtype.c:2306
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3060
intersect_unionall_ at /home/thoth/julia/src/subtype.c:2538
intersect_unionall at /home/thoth/julia/src/subtype.c:2587
intersect at /home/thoth/julia/src/subtype.c:3096
intersect_all at /home/thoth/julia/src/subtype.c:3186
intersect_aside at /home/thoth/julia/src/subtype.c:2092 [inlined]
intersect_aside at /home/thoth/julia/src/subtype.c:2079 [inlined]
intersect_var at /home/thoth/julia/src/subtype.c:2306
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3060
intersect_unionall_ at /home/thoth/julia/src/subtype.c:2538
intersect_unionall at /home/thoth/julia/src/subtype.c:2587
intersect at /home/thoth/julia/src/subtype.c:3096
intersect_all at /home/thoth/julia/src/subtype.c:3186
intersect_aside at /home/thoth/julia/src/subtype.c:2092 [inlined]
intersect_aside at /home/thoth/julia/src/subtype.c:2079 [inlined]
intersect_var at /home/thoth/julia/src/subtype.c:2306
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3044
intersect at /home/thoth/julia/src/subtype.c:3060
...etc

This is on Julia master (haven't triggered it on 1.6), Ubuntu, and JuMP v0.21.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions