Open keiranmraine opened 3 years ago
Also encountered this error, a zero exit code was returned after a process terminated due to OOM:
INFO 2021-07-16 07:42:47 CollectGridssMetrics
********** NOTE: Picard's command line syntax is changing.
**********
********** For more information, please see:
********** https://github.com/broadinstitute/picard/wiki/Command-Line-Syntax-Transition-For-Users-(Pre-Transition)
**********
********** The command line looks like this in the new syntax:
**********
********** CollectGridssMetrics -VERBOSITY WARNING -I /nix/store/0rbs614s2h7pjqhfp4dp5nz8rqm4vsv7-bionix-samtools-sort -O /nix/store/wr0ggpdv3a08j25hbd41nl7rqi0mj4l4-bionix-gridss-collectMetrics/input -AS true -THRESHOLD_COVERAGE 10000
**********
07:42:49.716 INFO NativeLibraryLoader - Loading libgkl_compression.so from jar:file:/nix/store/4g79is07ypgczsn2fkfy905xcbrh6jwa-gridss-2.12.0-gridss-jar-with-dependencies.jar!/com/intel/gkl/native/libgkl_compression.so
[Fri Jul 16 07:42:49 UTC 2021] CollectGridssMetrics THRESHOLD_COVERAGE=10000 INPUT=/nix/store/0rbs614s2h7pjqhfp4dp5nz8rqm4vsv7-bionix-samtools-sort ASSUME_SORTED=true OUTPUT=/nix/store/wr0ggpdv3a08j25hbd41nl7rqi0mj4l4-bionix-gridss-collectMetrics/input VERBOSITY=WARNING GRIDSS_PROGRAM=[CollectCigarMetrics, CollectMapqMetrics, CollectTagMetrics, CollectIdsvMetrics, ReportThresholdCoverage] STOP_AFTER=0 METRIC_ACCUMULATION_LEVEL=[ALL_READS] PROGRAM=[CollectInsertSizeMetrics] INCLUDE_U
[Fri Jul 16 07:42:49 UTC 2021] Executing as ?@milton-sml-016.hpc.wehi.edu.au on Linux 3.10.0-957.5.1.el7.x86_64 amd64; OpenJDK 64-Bit Server VM 1.8.0_242-b08; Deflater: Intel; Inflater: Intel; Provider GCS is not available; Picard version: 2.12.0-gridss
Exception in thread "picard.analysis.CollectInsertSizeMetrics@49070868" java.lang.OutOfMemoryError: Java heap space
at htsjdk.samtools.util.Histogram.increment(Histogram.java:145)
at htsjdk.samtools.util.Histogram.getMedianAbsoluteDeviation(Histogram.java:397)
at picard.analysis.directed.InsertSizeMetricsCollector$PerUnitInsertSizeMetricsCollector.addMetricsToFile(InsertSizeMetricsCollector.java:150)
at picard.metrics.MultiLevelCollector$AllReadsDistributor.addToFile(MultiLevelCollector.java:213)
at picard.metrics.MultiLevelCollector.addAllLevelsToFile(MultiLevelCollector.java:338)
at picard.analysis.CollectInsertSizeMetrics.finish(CollectInsertSizeMetrics.java:157)
at picard.analysis.SinglePassSamProgram$SinglePassSamProgramRunner.run(SinglePassSamProgram.java:324)
at java.lang.Thread.run(Thread.java:748)
[Sat Jul 17 02:02:09 UTC 2021] gridss.analysis.CollectGridssMetrics done. Elapsed time: 1,099.33 minutes.
Runtime.totalMemory()=1037959168
Version: Gridss 2.11.2
Problem:
Code indicates errors occurred but doesn't give a non-zero exit code:
Expected solution:
Always give non-zero exit code when the run indicates any errors.