Skip to content

nested task error: AssertionError: Multiple concurrent writes to Dict detected! #20

@songofbin

Description

@songofbin

你好,catt在Ubuntu中似乎不支持多线程,否则会报错,请问如何解决?

运行“catt -f testSample.fq -o testSampleOutput -t 2”
出现报错:ERROR: LoadError: TaskFailedException
nested task error: AssertionError: Multiple concurrent writes to Dict detected!
Stacktrace:
[1] threading_run(fun::var"#137#threadsfor_fun#199"{var"#137#threadsfor_fun#158#200"{DefaultDict{DNAKmer{23}, Int64, Int64}, Vector{Myread}, Vector{Regex}, Vector{Regex}, Vector{Int64}, Vector{Int64}, Vector{Regex}, Vector{Regex}, UnitRange{Int64}}}, static::Bool)
@ Base.Threads ./threadingconstructs.jl:172
[2] macro expansion
@ ./threadingconstructs.jl:220 [inlined]
[3] catt(Vpart::Vector{Myread}, Jpart::Vector{Myread}, tmp_name::String, args::Dict{String, Any}, outfix::String)
@ Main /path/to/CATT/catt.jl:557
[4] mainflow(parsed_args::Dict{String, Any}, vbam::Vector{Any}, jbam::Vector{Any}, tmp_name::String, outfix::String)
@ Main /path/to/CATT/catt.jl:700
[5] proc(args::Dict{String, Any})
@ Main /path/to/CATT/catt.jl:768
[6] top-level scope
@ /path/to/CATT/catt.jl:785
in expression starting at /path/to/CATT/catt.jl:784

运行“catt -f testSample.fq -o testSampleOutput -t 1”则无报错。

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