Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2785

Abort: Usage error: startBitAddress0b.>=(0) in from DataLocation.bytePos1b after parsing large GIF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.5.0
    • None
    • None
    • RHEL7

    Description

      Abort occurs when calling DataLocation.bytePos1b on the DataLocation object returned by ParseResult.location.  

      org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137)
      org.apache.daffodil.io.DataDumper.convertBitsToBytesUnits(Dump.scala:64)
      org.apache.daffodil.processors.DataLoc.x$1$lzycompute(DataLoc.scala:78)
      org.apache.daffodil.processors.DataLoc.x$1(DataLoc.scala:78)
              at org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137)
              at org.apache.daffodil.io.DataDumper.convertBitsToBytesUnits(Dump.scala:64)
              at org.apache.daffodil.processors.DataLoc.x$1$lzycompute(DataLoc.scala:78)
              at org.apache.daffodil.processors.DataLoc.x$1(DataLoc.scala:78)
              at org.apache.daffodil.processors.DataLoc.bytePos0b$lzycompute(DataLoc.scala:78)
              at org.apache.daffodil.processors.DataLoc.bytePos0b(DataLoc.scala:78)
              at org.apache.daffodil.processors.DataLoc.bytePos1b$lzycompute(DataLoc.scala:79)
              at org.apache.daffodil.processors.DataLoc.bytePos1b(DataLoc.scala:79)
              at org.apache.daffodil.japi.DataLocation.bytePos1b(Daffodil.scala:511)

       

      This has been observed with large NITF, GIF and PNG files.

      The attached test app demonstrates the behavior when run as:

      java -d64 dfdl.test.api.dfdl.app.DfdlConverterApp -schema gif.dfdl.xsd -input GIF-TEST-IMAGE.gif -output out.xml -format xml

      GIF-TEST-IMAGE.gif is too large to attach but can be provided 

      Attachments

        1. dfdlconvertapp.zip
          2 kB
          Lara Blatchford

        Activity

          People

            dfthompson Dave Thompson
            lblatchford Lara Blatchford
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: