Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fails on daffodil 3.3.0-SNAPSHOT for unparsing #15

Open
mbeckerle opened this issue Feb 22, 2022 · 0 comments
Open

Test fails on daffodil 3.3.0-SNAPSHOT for unparsing #15

mbeckerle opened this issue Feb 22, 2022 · 0 comments

Comments

@mbeckerle
Copy link
Member

Testing with the latest version and using Daffodil 3.3.0-SNAPSHOT

I get this failure:

[error] SuspensionDeadlockException: Runtime Schema Definition Error: Expressions/Unparsers are circularly deadlocked (mutually defined):
[error]  - AlignmentFillUnparserSuspendableOperation for choice[1]
[error]  - AlignmentFillUnparserSuspendableOperation for sequence[1]
[error]  - SuspendableExpression(ImageExtendedSubheaderDataLength, expr={                       if (fn:exists(../ImageExtendedSubheaderData)) then dfdl:valueLength(../ImageExtendedSubheaderData[1]/nitf:TaggedRecordExtensions, 'bytes') + 3 else 0                       })
[error]  - ElementUnusedUnparserSuspendableOperation for UserDefinedData
[error]  - target length for Data expr <EvaluatableExpression eName='ImageSegment/Data' expr='{ ../../Header/ImageSegmentLengths[dfdl:occursIndex()]/DataLength }' />
[error]  - SuspendableExpression(HeaderLength, expr={                       259 +                       (if ($nitf:nitfVersion eq '02.00') then dfdl:valueLength(../../../ImageSegment[dfdl:occursIndex()]/Header/ClassificationInformation, 'bytes') else 167) +                       (60 * fn:count(../../../ImageSegment[dfdl:occursIndex()]/Header/ImageGeographicLocation)) +                       (80 * fn:count(../../../ImageSegment[dfdl:occursIndex()]/Header/ImageComment)) +                       (4  * fn:count(../../../ImageSegment[dfdl:occursIndex()]/Header/CompressionRateCode)) +                       (5  * fn:count(../../../ImageSegment[dfdl:occursIndex()]/Header/NumberOfMultispectralBands)) +                       (3  * fn:count(../../../ImageSegment[dfdl:occursIndex()]/Header/UserDefinedOverflow)) +                       (3  * fn:count(../../../ImageSegment[dfdl:occursIndex()]/Header/ImageExtendedSubheaderOverflow)) +                       (if (fn:exists(../../../ImageSegment[dfdl:occursIndex()]/Header/Bands)) then dfdl:valueLength(../../../ImageSegment[dfdl:occursIndex()]/Header/Bands, 'bytes') else 0) +                       (if (fn:exists(../../../ImageSegment[dfdl:occursIndex()]/Header/UserDefinedImageData)) then dfdl:valueLength(../../../ImageSegment[dfdl:occursIndex()]/Header/UserDefinedImageData[1], 'bytes') else 0) +                       (if (fn:exists(../../../ImageSegment[dfdl:occursIndex()]/Header/ImageExtendedSubheaderData)) then dfdl:valueLength(../../../ImageSegment[dfdl:occursIndex()]/Header/ImageExtendedSubheaderData[1], 'bytes') else 0)                       })
[error]  - ElementUnusedUnparserSuspendableOperation for Header
[error]  - target length for ImageExtendedSubheaderData expr <EvaluatableExpression eName='ImageSegment/Header/ImageExtendedSubheaderData' expr='{ ../ImageExtendedSubheaderDataLength - 3 }' />
[error]  - AlignmentFillUnparserSuspendableOperation for sequence[1]
[error]  - SuspendableExpression(DataLength, expr={ dfdl:valueLength(../../../ImageSegment[dfdl:occursIndex()]/Data, 'bytes') })
[error]  - AlignmentFillUnparserSuspendableOperation for sequence[1]
[error] Schema context: ImageExtendedSubheaderDataLength Location line 533 column 22 in file:/home/mbeckerle/Documents/dataiti/git/dfdl-regression-test/dfdl-nitf/target/classes/com/tresys/nitf/xsd/nitf.dfdl.xsd
[error] Data location was preceding byte 2337, took 0.225 sec
[error]     at org.apache.daffodil.tdml.TDMLException$.apply(TDMLException.scala:33)
[error]     at org.apache.daffodil.tdml.ParserTestCase.doOnePassRoundTripUnparseExpectSuccess(TDMLRunner.scala:1146)
[error]     at org.apache.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:1281)
[error]     at org.apache.daffodil.tdml.ParserTestCase.$anonfun$runProcessor$2(TDMLRunner.scala:963)
[error]     at org.apache.daffodil.tdml.ParserTestCase.$anonfun$runProcessor$2$adapted(TDMLRunner.scala:960)
[error]     at scala.util.Either$RightProjection.foreach(Either.scala:652)
[error]     at org.apache.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:960)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant