You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bash version: GNU bash, version 4.4.23(1)-release (x86_64-suse-linux-gnu)
Additional context
Normally these ConcurrentModificationExceptions occur when modifying meta map data like
meta.id = 'some value'
instead of doing
meta + [id: 'some value']
which returns a new map.
But here the meta map is intialized at the start of the workflow, and the submap where the exception is thrown is not modified at all where the error is being thrown. I'm wondering if it's something to do with using nested maps to group meta data, but this was working fine up until some point and then various problems with the meta data started occurring. I have no idea if it coincides with a version change as we were using a shared conda environment, and then someone might have updated it although I don't know when.
After stripping out the when:, it's also throwing this in other processes, but it's consistently reporting a line with task.ext (task.ext.when or task.ext.args after the task.ext.when is taken out)
The workflow crashed on an nf-core busco module, and reported the error at line 33 which corresponds to the task.ext.args
script:
if ( mode !in [ 'genome', 'proteins', 'transcriptome' ] ) {
error "Mode must be one of 'genome', 'proteins', or 'transcriptome'."
}
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}-${lineage}"
Bug report
The workflow exits with a ConcurrentModificationException, and it's not clear where this is happening.
Expected behavior and actual behavior
The expected behaviour is that no Exception is thrown.
The actual behaviour non-consistent throwing of this ConcurrentModificationException.
Steps to reproduce the problem
I can't recreate this with a toy as I really have no idea what the underlying cause is.
Program output
There's at least a stack trace in this one after removing the
when:
section of code.nextflow.log
At first it was reporting an error in the wrong place. Something to do with the
when:
section, but this was a red herring.nextflow.2.log
nextflow.3.log
Environment
Additional context
Normally these ConcurrentModificationExceptions occur when modifying meta map data like
instead of doing
which returns a new map.
But here the meta map is intialized at the start of the workflow, and the submap where the exception is thrown is not modified at all where the error is being thrown. I'm wondering if it's something to do with using nested maps to group meta data, but this was working fine up until some point and then various problems with the meta data started occurring. I have no idea if it coincides with a version change as we were using a shared conda environment, and then someone might have updated it although I don't know when.
I also asked for help on Slack: https://nextflow.slack.com/archives/C02T98A23U7/p1740668070269849 but I don't think we got anywhere.
The text was updated successfully, but these errors were encountered: