-
Notifications
You must be signed in to change notification settings - Fork 51
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
[BUG] Duplicate key error #123
Comments
Help needed here. I do some other debugs :
|
Few more tests, after trying a lot of possibilities, I think that I run a multiple thread pool for every stream my consumer need to extract. So what I trying to do, is to change
I'm testing now, it seems the error isn't complety dissapear, but it seems it fired less times than before. Still help needed to understand why and go deeper to completly fix this error or find any workaround that can help me to deploy a production system that works ! |
Can you explain what this code snippet is or where it resides? Is this your own code? |
This is really fascinating because I had a working Java Kinesis Video Consumer application that I last ran three weeks ago and was working fine, and now I'm getting a DuplicateKeyError as well.
|
@vattay , It is strange because nothing has changed within the SDK. Any changes in your application? |
@disa6302 The frame renderer visitor is from AWS Github, I just personalize the way to not display the final image but save it on the disk. For the rest, yes it's a custom code After some tries, I seems if we change the But from now I already used a |
I might be having a slightly different issue. And yes, probably both our code is based on the aws parser, but with customization since you have to customize the example code to make something useful. My root cause was actually that the video metadata no longer appears to have height and width embedded in it and I had a lot of exception handlers that caught exceptions during frame processing and attempted to resume, this led to the duplicate key error somehow. This is the fix I made for myself, clearly just a temporary hack, copied from H264FrameProcessor, but I added default values to the pixelWidth and pixelHeight, and then it started working fine again.
|
Hi there,
I'm opened a Github issue as suggested by the AWS Premium Support, to continue an issue on Duplicate Key Error I got on my consumer.
To make a quick summary on this case :
I'm using the parser library to extract images from Kinesis Video Stream and save it to the disk (this images will be treated later by another service)
During the extract, I got error which say "Duplicate Key error" and fire an exception. Today this append many times a day, and I need to restart it manually (exception is catched, but it cause some bugs sometimes)
Here is a screenshot of the issue, including stacktrace : https://i.ibb.co/gg41ShR/duplicate-key-error-1.png
I'm using the latest version of the parser library
compile("com.amazonaws:amazon-kinesis-video-streams-parser-library:1.0.15")
And I'm using a Frame visitor which is based on this link : https://github.com/aws/amazon-kinesis-video-streams-parser-library/blob/master/src/main/java/com/amazonaws/kinesisvideo/parser/utilities/FrameRendererVisitor.java, I just surcharge the meethod to take a destination folder to save my frames on the disk.
There is any update or thing I can try to fix this issue ? Today I try a lot of things, but anything has changed, and it's almost a production system impaired, because I need to restart it many times a day ...
Hope I can find help here,
Kind regards,
Florian
The text was updated successfully, but these errors were encountered: