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
java.lang.ArrayIndexOutOfBoundsException: 0
at org.bdgenomics.adam.io.SingleFastqInputFormat$SingleFastqRecordReader.checkBuffer(SingleFastqInputFormat.java:66)
at org.bdgenomics.adam.io.FastqRecordReader.positionAtFirstRecord(FastqRecordReader.java:169)
at org.bdgenomics.adam.io.FastqRecordReader.<init>(FastqRecordReader.java:126)
at org.bdgenomics.adam.io.SingleFastqInputFormat$SingleFastqRecordReader.<init>(SingleFastqInputFormat.java:49)
at org.bdgenomics.adam.io.SingleFastqInputFormat.createRecordReader(SingleFastqInputFormat.java:107)
at org.apache.spark.rdd.NewHadoopRDD$$anon$1.<init>(NewHadoopRDD.scala:156)
This bug is in both the single and interleaved code.
The text was updated successfully, but these errors were encountered:
I found it happens when the first character of the block accessed by FileSplit is '\n'. At that scenario, bufferLength=0 and buffer is empty. It causes an exception due to ArrayIndexOutOfBounds because try to get buffer.getBytes()[0] in Line 66 on SingleFastqInputFormat.java.
if we can remove '=' in Line 65 of SingleFastqInputFormat.java when checking "bufferLength >= 0", the issue can be solved. I'm not sure it is a right solution or not, but it works on my pipeline.
fnothaft
added a commit
to fnothaft/adam
that referenced
this issue
Feb 18, 2017
See: https://github.com/bigdatagenomics/adam/blob/master/adam-core/src/main/java/org/bdgenomics/adam/io/SingleFastqInputFormat.java#L65. Causes an AIOOBE:
This bug is in both the single and interleaved code.
The text was updated successfully, but these errors were encountered: