Skip to content
New issue

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

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

Already on GitHub? # to your account

Error: protect(): protection stack overflow #220

Closed
Pooran-Dewari opened this issue Jul 16, 2021 · 2 comments
Closed

Error: protect(): protection stack overflow #220

Pooran-Dewari opened this issue Jul 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working WIP Work in progress
Milestone

Comments

@Pooran-Dewari
Copy link

hello,

I am running nf core ChIPseq pipeline using nextflow and docker. I get the follwoing error after which the pipeline aborts.

Command error:
Loading required package: Rcpp
Error: protect(): protection stack overflow
Execution halted

command:

nextflow run nf-core/chipseq --input design_pe.csv --genome AtlanticSalmon \
-profile docker -c config_Ss --macs_gsize 2700000000 --narrow_peak True \
--clip_r1 20 --clip_r2 20 --three_prime_clip_r1 10 --three_prime_clip_r2 10 \
--max_cpus 16

It runs for some hours and then throws this error (attached error report)
pipeline_report.txt:

thanks for your help

ps: I suspect it has something to do with https://stackoverflow.com/questions/32826906/how-to-solve-protection-stack-overflow-issue-in-r-studio but I am not sure how to achieve this on R (not rstudio).

@JoseEspinosa
Copy link
Member

After Slack discussion, @drpatelh created this branch that set the option --max-ppsize=500000 that allows increasing the size of the protect call stack and solves this issue. See here.

@JoseEspinosa JoseEspinosa added this to the 2.0 milestone Sep 23, 2021
@JoseEspinosa JoseEspinosa added the bug Something isn't working label Sep 23, 2021
@JoseEspinosa JoseEspinosa self-assigned this Mar 31, 2022
@JoseEspinosa JoseEspinosa added the WIP Work in progress label Mar 31, 2022
@JoseEspinosa
Copy link
Member

Fixed in #269, now the module accepts arguments and thus the --max-ppsize=500000 can be passed using a config file as the one below:

process {
  withName: 'PHANTOMPEAKQUALTOOLS' {
    ext.args   = '--max-ppsize=500000'
  }
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working WIP Work in progress
Projects
None yet
Development

No branches or pull requests

2 participants