-
Notifications
You must be signed in to change notification settings - Fork 613
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
"MJPEG decoder initialization failed" on Ubuntu 18.04 #672
Comments
It looks like libjpeg can provide more details on the error if we call |
I added a line to print the contents of tjGetErrorStr() and I'm getting this as the output:
Any idea what this means? |
@tesych this appears to be a bug in the SDK. We've been investigating this over in the Azure Kinect ROS Driver (microsoft/Azure_Kinect_ROS_Driver#67, microsoft/Azure_Kinect_ROS_Driver#37), and I talked with @schultetwin1 about it. We're fairly sure that the SDK is exporting I did some deep-dive investigation a few weeks back, and crashed my ROS code intentionally under GDB to see what's going on.
This is wrong: based on the OpenCV source code,
Ok... all the right shared libs are loaded, so why is it picking the wrong symbol still? Lets look in libk4a:
Ah ha. This symbol should be marked with visbility=hidden to prevent this kind of conflict, and indeed this should have been fixed by #651 . However, it's still not hidden in the binaries that are published as part of the 1.2 SDK, so this doesn't appear to have fixed the issue. |
@schultetwin1 can you take this bug while I'm away? We have a pretty good root cause, so it would be good to get it closed. |
On it! |
Hello, I was trying to connect the cameras on Intel NUC with addiitional startech PCI card . But I am running into the same error. OS with Version: Ubuntu 18.04 Log from the k4aviewer is attached here . k4a_log.txt With little debugging I have found that it could be due to tjDecompress2 which comes from this libjpeg/turbojpeg Is there a specific version for this library which could be a fix? |
Describe the bug
Users of the Azure Kinect ROS Driver are seeing issues where the MJPEG decoder fails to initialize. Clearing this error requires restarting the PC. The only error provided by the SDK is:
Based on the code that generates the error, this appears to be a fatal error in libjpeg.
To Reproduce
We aren't 100% clear on the repro steps for this issue. The best we can tell, we just need to restart an application that uses the color camera in BGRA mode lots of times, and eventually this issue will reproduce.
Expected behavior
MJPEG decoder initialization should never fail.
Logs
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: