nested task error: AssertionError: Multiple concurrent writes to Dict detected!
你好,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”则无报错。
你好,这个问题在几个测试环境上并没有出现,可以提供你的julia 版本吗?
On Tue, Nov 5, 2024 at 5:36 PM Bin Song @.***> wrote:
你好,catt似乎不支持多线程,否则会报错,请问如何解决?
运行“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”则无报错。
— Reply to this email directly, view it on GitHub https://github.com/GuoBioinfoLab/CATT/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMVBO6455GTJWPUK22S5XDZ7CGR3AVCNFSM6AAAAABRGDKYVKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZTIOJSGY3TEMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
你好,我的julia 版本是:julia version 1.9.3。