-
Notifications
You must be signed in to change notification settings - Fork 12
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
Invalid OID field exception #234
Comments
Can you show the parser inputs? The problem actually looks like it might be further "down", given the Can you make the file available, or provide the name? |
I cannot share the whole file, but I might be able to take 1 0601 block and share it. Where do you think the issue is? Would that suffice? |
Remote debugging is pretty hard - I'm not 100% sure what the problem is. If you can dump out the byte array at KlvParser.java:41 that might help. |
is this what you wanted?
|
Is that the start of the first packet? Looks more like something from mid-stream. |
I rechecked, and this is the very first packet that's printed out and the parser errors out immediately after that one |
Then I have no real idea what is happening. That doesn't look like KLV Universal Label I can recognise. |
Any chance you can at least tell me the name of the file (even privately: [email protected]) |
Describe the bug
This file is thought to have valid metadata is and used often for testing
java.lang.IllegalArgumentException: Invalid OID field
at org.jmisb.api.klv.UniversalLabel.testValidity(UniversalLabel.java:71)
at org.jmisb.api.klv.UniversalLabel.(UniversalLabel.java:21)
at org.jmisb.api.klv.KlvParser.parseBytes(KlvParser.java:48)
at org.jmisb.api.video.MetadataDecodeThread.run(MetadataDecodeThread.java:102)
[MetadataDecodeThread - ] ERROR org.jmisb.api.video.MetadataDecodeThread - KLV parse exception
org.jmisb.api.common.KlvParseException: Invalid OID field
at org.jmisb.api.klv.KlvParser.parseBytes(KlvParser.java:85)
at org.jmisb.api.video.MetadataDecodeThread.run(MetadataDecodeThread.java:102)
[MetadataDecodeThread - ] ERROR org.jmisb.api.klv.KlvParser - Exception thrown by parser
java.lang.IllegalArgumentException: Invalid OID field
at org.jmisb.api.klv.UniversalLabel.testValidity(UniversalLabel.java:71)
at org.jmisb.api.klv.UniversalLabel.(UniversalLabel.java:21)
at org.jmisb.api.klv.KlvParser.parseBytes(KlvParser.java:48)
at org.jmisb.api.video.MetadataDecodeThread.run(MetadataDecodeThread.java:102)
[MetadataDecodeThread - ] ERROR org.jmisb.api.video.MetadataDecodeThread - KLV parse exception
org.jmisb.api.common.KlvParseException: Invalid OID field
at org.jmisb.api.klv.KlvParser.parseBytes(KlvParser.java:85)
at org.jmisb.api.video.MetadataDecodeThread.run(MetadataDecodeThread.java:102)
[MetadataDecodeThread - ] ERROR org.jmisb.api.video.MetadataDecodeThread - KLV parse exception
org.jmisb.api.common.KlvParseException: Length exceeds available bytes
at org.jmisb.api.klv.KlvParser.getNextMessage(KlvParser.java:137)
at org.jmisb.api.klv.KlvParser.parseBytes(KlvParser.java:41)
at org.jmisb.api.video.MetadataDecodeThread.run(MetadataDecodeThread.java:102)
Exception in thread "MetadataDecodeThread - " java.lang.ArrayIndexOutOfBoundsException: Index 16 out of bounds for length 16
at org.jmisb.api.klv.KlvParser.getNextMessage(KlvParser.java:110)
at org.jmisb.api.klv.KlvParser.parseBytes(KlvParser.java:41)
at org.jmisb.api.video.MetadataDecodeThread.run(MetadataDecodeThread.java:102)
The text was updated successfully, but these errors were encountered: