-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
While testing a large package with the newest Julia beta version I found an issue associated with the use of @.. threads=true in FastBroadcast. I am reporting the issue here as the stack trace suggests that the problem might be related to this package, but I am not at all sure if this impression is correct. Unfortunately, the issue arises in a very complex code, so I cannot really provide a minimal working example. Note, in any case, that the code works normally in previous versions of Julia.
Here is the last part of the stack trace:
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(::JSON.Parser.MemoryParserState)
@ JSON ~/.julia/packages/JSON/93Ea8/src/Parser.jl:28
length(::MPI.Info)
@ MPI ~/.julia/packages/MPI/hNJm0/src/info.jl:116
length(::Compiler.MethodLookupResult)
@ Base ~/.julia/juliaup/julia-1.13.0-beta1+0.aarch64.apple.darwin14/share/julia/Compiler/src/methodtable.jl:10
...
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] batch
@ ~/.julia/packages/Polyester/almvr/src/batch.jl:285 [inlined]
[8] fast_materialize_threaded!
@ ~/.julia/packages/FastBroadcast/wfdTr/src/FastBroadcast.jl:326 [inlined]
[9] fast_materialize!
@ ~/.julia/packages/FastBroadcast/wfdTr/src/FastBroadcast.jl:309 [inlined]
[10] fast_materialize
@ ~/.julia/packages/FastBroadcast/wfdTr/src/FastBroadcast.jl:256 [inlined]
I apologize for being unable to provide more details; perhaps, however, people here can already figure out the origin of this issue.
Thank you
Metadata
Metadata
Assignees
Labels
No labels