Bug #16
open[ CTS ] Assertion failure due to non-increasing output timestamps
0%
Description
Failure Analysis Report¶
Cluster Summary¶
| Property | Value |
|---|---|
| Cluster ID | #3 |
| Severity | High |
| Category | Media/Codec Issue |
| Confidence | 4/5 |
| Impact | 4 failures |
System Information¶
| Property | Value |
|---|---|
| Fingerprint | Trimble/T70/thorpe:15/AQ3A.250408.001/02.00.07.250802:user/release-keys |
| Build ID | AQ3A.250408.001 |
| Product | T70 |
| Model | T70 |
| Android Version | 15 |
| Security Patch | 2025-07-01 |
| Test Suite | CTS |
AI Analysis¶
Summary:
Assertion failure due to non-increasing output timestamps
The test 'testSimpleDecode' in 'CodecDecoderBlockModelMultiAccessUnitDrmTest' failed due to an unexpected output timestamp sequence. The timestamps are expected to be strictly increasing but instead showed a decrease from frame index -1 to frame index 0 with identical values. This could indicate an issue in the decoding process that prevents proper timestamp generation, particularly affecting the asynchronous output mode of the c2.android.aac.decoder.
Root Cause:
The decoder is producing output timestamps that are not strictly increasing, likely due to improper handling of timestamps in the decoding process.
Suggested Solution:
Review the timestamp generation logic in the c2.android.aac.decoder to ensure that timestamps are correctly calculated and that each frame's output is issued with a strictly increasing timestamp. Consider adding checks to ensure that input frames have valid timestamp metadata before decoding.
Technical Details¶
Stack Trace Signature:
java.lang.AssertionError: Output timestamps are not strictly increasing
################## Test Details ####################
Test Name :- testSimpleDecode[0_c2.android.aac.decoder_audio/mp4a-latm]
Test Parameters :- [ c2.android.aac.decoder, audio/mp4a-latm, bbb_stereo_48kHz_192kbps_aac_cenc.mp4 ]
################### Test Environment #####################
Component under test :- c2.android.aac.decoder
Format under test :- {max-bitrate=234125, sample-rate=48000, crypt
Affected Test Cases¶
Failure 1¶
- Module:
MctsMediaDrmFrameworkTestCases - Test Case:
android.media.drmframework.cts.CodecDecoderBlockModelMultiAccessUnitDrmTest#testSimpleDecode[0_c2.android.aac.decoder_audio/mp4a-latm] - Stack Trace:
java.lang.AssertionError: Output timestamps are not strictly increasing
################## Test Details ####################
Test Name :- testSimpleDecode[0_c2.android.aac.decoder_audio/mp4a-latm]
Test Parameters :- [ c2.android.aac.decoder, audio/mp4a-latm, bbb_stereo_48kHz_192kbps_aac_cenc.mp4 ]
################### Test Environment #####################
Component under test :- c2.android.aac.decoder
Format under test :- {max-bitrate=234125, sample-rate=48000, crypto-mode=1, track-id=1, mime=audio/mp4a-latm, profile=2, bitrate=192001, language=und, aac-profile=2, crypto-skip-byte-block=0, buffer-batch-max-output-size=192000, buffer-batch-threshold-output-size=48000, crypto-encrypted-byte-block=0, durationUs=15018666, channel-count=2, crypto-default-iv-size=8,
...
(truncated)
Failure 2¶
- Module:
MctsMediaDrmFrameworkTestCases - Test Case:
android.media.drmframework.cts.CodecDecoderBlockModelMultiAccessUnitDrmTest#testSimpleDecode[3_c2.android.opus.decoder_audio/opus] - Stack Trace:
java.lang.AssertionError: Output timestamps are not strictly increasing
################## Test Details ####################
Test Name :- testSimpleDecode[3_c2.android.opus.decoder_audio/opus]
Test Parameters :- [ c2.android.opus.decoder, audio/opus, bbb_stereo_48kHz_192kbps_opus_cenc.mp4 ]
################### Test Environment #####################
Component under test :- c2.android.opus.decoder
Format under test :- {sample-rate=48000, crypto-mode=1, track-id=1, mime=audio/opus, language=und, crypto-skip-byte-block=0, csd-1=java.nio.HeapByteBuffer[pos=0 lim=8 cap=8], csd-2=java.nio.HeapByteBuffer[pos=0 lim=8 cap=8], buffer-batch-max-output-size=192000, buffer-batch-threshold-output-size=48000, crypto-encrypted-byte-block=0, durationUs=15000000, channel-count=2,
...
(truncated)
Failure 3¶
- Module:
MctsMediaDrmFrameworkTestCases - Test Case:
android.media.drmframework.cts.CodecDecoderMultiAccessUnitDrmTest#testSimpleDecode[0_c2.android.aac.decoder_audio/mp4a-latm] - Stack Trace:
java.lang.AssertionError: Output timestamps are not strictly increasing
################## Test Details ####################
Test Name :- testSimpleDecode[0_c2.android.aac.decoder_audio/mp4a-latm]
Test Parameters :- [ c2.android.aac.decoder, audio/mp4a-latm, bbb_stereo_48kHz_192kbps_aac_cenc.mp4 ]
################### Test Environment #####################
Component under test :- c2.android.aac.decoder
Format under test :- {max-bitrate=234125, sample-rate=48000, crypto-mode=1, track-id=1, mime=audio/mp4a-latm, profile=2, bitrate=192001, language=und, aac-profile=2, crypto-skip-byte-block=0, buffer-batch-max-output-size=192000, buffer-batch-threshold-output-size=48000, crypto-encrypted-byte-block=0, durationUs=15018666, channel-count=2, crypto-default-iv-size=8,
...
(truncated)
Failure 4¶
- Module:
MctsMediaDrmFrameworkTestCases - Test Case:
android.media.drmframework.cts.CodecDecoderMultiAccessUnitDrmTest#testSimpleDecode[3_c2.android.opus.decoder_audio/opus] - Stack Trace:
java.lang.AssertionError: Output timestamps are not strictly increasing
################## Test Details ####################
Test Name :- testSimpleDecode[3_c2.android.opus.decoder_audio/opus]
Test Parameters :- [ c2.android.opus.decoder, audio/opus, bbb_stereo_48kHz_192kbps_opus_cenc.mp4 ]
################### Test Environment #####################
Component under test :- c2.android.opus.decoder
Format under test :- {sample-rate=48000, crypto-mode=1, track-id=1, mime=audio/opus, language=und, crypto-skip-byte-block=0, csd-1=java.nio.HeapByteBuffer[pos=0 lim=8 cap=8], csd-2=java.nio.HeapByteBuffer[pos=0 lim=8 cap=8], buffer-batch-max-output-size=192000, buffer-batch-threshold-output-size=48000, crypto-encrypted-byte-block=0, durationUs=15000000, channel-count=2,
...
(truncated)