Skip to content

MethodError in 1.13.0-DEV.868 #162

Description

@ctkelley

Trying to use Polyester with the nightly. I am getting an error I do not
understand.

julia13 --startup=no
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.13.0-DEV.868 (2025-07-15)
 _/ |\__'_|_|_|\__'_|  |  Commit f2a8e18a98c (0 days old master)
|__/                   |

julia> using Polyester

julia> function ftest(A,B)
       (n,m)=size(A);
       @batch for j=1:n
              @inbounds @simd ivdep for i=1:n
                        A[i,j] += B[i,j]
              end
       end
       end
ftest (generic function with 1 method)

julia> A=rand(10,10); B=copy(A);

julia> ftest(A,B)

ERROR: MethodError: no method matching length(::OncePerThread{Base.IntrusiveLinkedListSynchronized{Task}, Type{Base.IntrusiveLinkedListSynchronized{Task}}})
The function `length` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  length(::Compiler.DFSTree)
   @ Base ../usr/share/julia/Compiler/src/ssair/domtree.jl:121
  length(::Compiler.MethodLookupResult)
   @ Base /Applications/Julia-1.13.app/Contents/Resources/julia/share/julia/Compiler/src/methodtable.jl:10
  length(::Core.MethodTable)
   @ Base runtime_internals.jl:1838
  ...

Stacktrace:
 [1] wake_thread!(_tid::UInt32)
   @ ThreadingUtilities ~/.julia/packages/ThreadingUtilities/pDpKE/src/threadtasks.jl:64
 [2] launch
   @ ~/.julia/packages/ThreadingUtilities/pDpKE/src/threadtasks.jl:18 [inlined]
 [3] launch_batched_thread!
   @ ~/.julia/packages/Polyester/almvr/src/batch.jl:107 [inlined]
 [4] macro expansion
   @ ~/.julia/packages/Polyester/almvr/src/batch.jl:241 [inlined]
 [5] _batch_no_reserve
   @ ~/.julia/packages/Polyester/almvr/src/batch.jl:168 [inlined]
 [6] batch
   @ ~/.julia/packages/Polyester/almvr/src/batch.jl:334 [inlined]
 [7] macro expansion
   @ ~/.julia/packages/Polyester/almvr/src/closure.jl:456 [inlined]
 [8] ftest(A::Matrix{Float64}, B::Matrix{Float64})
   @ Main ./REPL[2]:3
 [9] top-level scope
   @ REPL[4]:1

julia> 


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions