You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2023/04/24 20:15:00 UTC

[jira] [Closed] (DAFFODIL-2785) Abort: Usage error: startBitAddress0b.>=(0) in from DataLocation.bytePos1b after parsing large GIF

     [ https://issues.apache.org/jira/browse/DAFFODIL-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-2785.
-----------------------------------

Closing this ticket, verified internally. If the reporter experiences further occurrences, the ticket can be re-opened.

> Abort: Usage error: startBitAddress0b.>=(0) in from DataLocation.bytePos1b after parsing large GIF
> --------------------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2785
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2785
>             Project: Daffodil
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>         Environment: RHEL7
>            Reporter: Lara Blatchford
>            Assignee: Dave Thompson
>            Priority: Major
>             Fix For: 3.5.0
>
>         Attachments: dfdlconvertapp.zip
>
>
> 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 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)