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

Ubuntu 14.04 w/ 3.19 kernel - error re-initializing camera after crash or debugging #12

Closed
Rennschnitzl opened this issue Jan 26, 2016 · 6 comments
Labels

Comments

@Rennschnitzl
Copy link

After debugging my code or the program crashes i get one of the following error messages (seems to be random which i get) when i restart my code (or the example code)

rs_error was raised when calling rs_create_context(api_version:4):
opcodes do not match

rs_error was raised when calling rs_create_context(api_version:4):
calibration table is not compatible with this API

I can usually fix this by un- and replugging the usb cable.

@ddiakopoulos
Copy link
Contributor

Can you provide us some details about your system and camera? OS, kernel version, camera firmware, etc. Thanks!

@Rennschnitzl
Copy link
Author

OS:
Ubuntu 14.04
3.19.0-47-generic #53~14.04.1-Ubuntu SMP Mon Jan 18 16:09:14 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

IDE / Compiler:
Qt Creator 3.6.0
Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
edit:
i'm not sure whether QT brings an compiler. sight
gcc --version says:
gcc (Ubuntu 4.8.4-2ubuntu114.04) 4.8.4
debugger is:
GNU gdb (Ubuntu 7.7.1-0ubuntu5
14.04.2) 7.7.1

Using device 0, an Intel RealSense F200
Firmware version: 2.60.0.0

@ddiakopoulos
Copy link
Contributor

Hmm. We've had similar unplug/replug issues on the 3.19.xx series of kernels which is why our recommended configuration is 4.4 stable. If it is possible for your application, I would recommend reading over the installation guide and backing out of individual changes made in the install-r200-udev-fix.sh script. Then, upgrade to 4.4 per the guide and re-patch the uvcvideo driver.

@Rennschnitzl
Copy link
Author

Thanks for the info! Case dismissed.

I tried but since i couldn't install the nvidia drivers with 4.4, i went for 3.19.
Also it's F200, not R200.

@ddiakopoulos
Copy link
Contributor

One possible workaround for your configuration is to apply this during the uvcvideo patching process: https://patchwork.linuxtv.org/patch/25668/ but we haven't tested compatibility with the patch provided in this repo (line numbers may have changed which borks the ability to diff). https://patchwork.linuxtv.org/patch/25668/

@ddiakopoulos ddiakopoulos changed the title Error while creating context sometimes after crash or debugging Ubuntu 14.04 w/ 3.19 kernel - error re-initializing camera after crash or debugging Jan 26, 2016
@ddiakopoulos
Copy link
Contributor

One last thing! You might also experiment with the libuvc backend (semi-deprecated due to emphasis on v4l2 backend for Linux), but it's nice because no patches are required.

furushchev pushed a commit to furushchev/librealsense that referenced this issue Jul 17, 2016
dorodnic added a commit that referenced this issue Aug 21, 2017
Determine the order of controls appearance in rs-config app
dorodnic pushed a commit to dorodnic/librealsense that referenced this issue Aug 14, 2018
nhershko pushed a commit to nhershko/librealsense that referenced this issue Feb 23, 2020
aangerma pushed a commit to aangerma/librealsense that referenced this issue Jun 4, 2020
YoshuaNava added a commit to YoshuaNava/librealsense that referenced this issue Jun 30, 2020
…h_lowlatency

Added bash script for low latency kernel UVC patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants