Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
songofbin opened this issue Nov 5, 2024 · 2 comments

Comments

@songofbin
Copy link

songofbin commented Nov 5, 2024

你好,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”则无报错。

@aqzas
Copy link
Collaborator

aqzas commented Nov 18, 2024 via email

@songofbin
Copy link
Author

你好,我的julia 版本是:julia version 1.9.3。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants