Skip to content

DisjointSets constructor hangs on Vector{Any} arguments. #755

Open

Description

@willow-ahrens
julia> DisjointSets([1, 2, 3])
DisjointSets{Int64} with 3 elements:
  1
  2
  3

julia> DisjointSets(Any[1, 2, 3])
^CERROR: InterruptException:
Stacktrace:
 [1] DisjointSets{Any}(::Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Tuple{Array{Any,1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}) at /Users/Peter/.julia/packages/DataStructures/nBjdy/src/disjoint_set.jl:165 (repeats 156 times)
 [2] _DisjointSets(::Array{Any,1}, ::Base.HasEltype) at /Users/Peter/.julia/packages/DataStructures/nBjdy/src/disjoint_set.jl:167
 [3] DisjointSets(::Array{Any,1}) at /Users/Peter/.julia/packages/DataStructures/nBjdy/src/disjoint_set.jl:166
 [4] top-level scope at REPL[13]:1

This is likely related to #719, but unlike #719, the constructor is intended to work on any iterable argument.

Activity

  1. willow-ahrens commented on Sep 7, 2021

    @willow-ahrens
    Author

    Now that I have discovered #570, I am second-guessing myself. This bug occurs on version 0.18.10, but not on 0.19.0-DEV. Was this fix supposed to be included in the v0.18.10 release?

  2. oxinabox commented on Sep 9, 2021

    @oxinabox
    Member

    I suspect not, I think it is just that until recently the automatically generated release notes created by Registrator for backport released (which 0.18.10 was) were broken.

    If someone can identify the fix that was made in 0.19.0-DEV, for this then we can backport it.

  3. willow-ahrens commented on Sep 9, 2021

    @willow-ahrens
    Author

    The text of #578 seems to indicate that the fix was breaking, though I think it's just a deprecation.

  4. oxinabox commented on Sep 21, 2021

    @oxinabox
    Member

    It is breaking because it drops support for DisjointSets(1,2,3,4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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