-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
OS freezes and it seems it's related with using my realsense D435i #10207
Comments
Hi @martinakos There was a RealSense ROS user recently at #10159 who was experiencing freezing and crashing with Ubuntu on a laptop. They posted the method that resolved their particular problem at #10159 (comment) |
So this user purged all realsense related modules and built and install librealsense from source. Is that your suggestion? |
The RealSense ROS user is uninstalling all librealsense related Debian packages with the purge instruction from the librealsense package installation instructions page. My interpretation of the solution in the comment is that they installed librealsense and the ROS wrapper together from packages with the Method 1 instructions of the ROS wrapper but it caused problems for their laptop and so they wanted to remove all librealsense related packages to resolve that conflict. It sounds as though they wanted to use Method 1 package installation to ensure that they had all required dependencies and then use the purge to remove all librealsense packages, but probably leaving non-librealsense dependencies installed. It may be an over-complicated approach. It may be better to purge all librealsense packages, and then install librealsense first (by packages or source, however you prefer) and then use the ROS wrapper's Method 2 to afterwards install the ROS wrapper from source. When building the ROS wrapper from source, it always has to be done secondly after librealsense has first been successfully installed. |
Hello martinakos, it seems we have a similar problem. As you have already seen, I have a similar issue, and had been trying to track it down with the help of different logs. I saw in your syslog that after a short system runtime you already received 95 input messages. That's exactly what happened to me, even though I only used the camera once. In the meantime, I think I have understood the problem, but I am still testing it before I post it in my ticket.
Maybe it helps you :) |
It seems I finally solved the freezes. After removing all realsense related libraries I tried to build the librealsense2 from source. I booted with an older kernel 5.11.0-34-generic, two kernel updates ago, and installed the realsense-ros wrapper using Method 1 (which installs ros-noetic-librealsense2 too ). It hasn't frozen since yesterday morning. Before that change it would freeze 8 times a day if I'm working (or rather trying to work) with the camera. Is there any list online that tells you which firmware /SDK version / linux Kernel version are supported? I know this list. But it doesn't say what linux kernel is needed. Unless the Release column, which is 5.11, is also the linux kernel which corresponds in this case but it may just be a coincidence in version numbers. I think there should be some check when installing debian packages so that if I install the realsense SDK it checks that the kernel is supported and stops the install if it's not (unless forced). So to summary, the combination that seems to work for me is:
|
Hi @martinakos I'm pleased to hear that you found a solution. Thanks very much for sharing the details with the RealSense community :) The Supported Platforms section of the release notes for each librealsense version has a list of officially supported kernels. https://github.com/IntelRealSense/librealsense/releases At the time of writing this, 5.8 is the most recent officially supported kernel. A pull contributed by a RealSense user for support of kernel 5.11 was also added in SDK 2.50.0, as described at #9727 The librealsense SDK can work with newer kernels that are not yet officially unsupported but there may be unpredictable consequences in regard to stability. Building librealsense with the RSUSB method will provide the most stable experience on computers with unsupported kernels, as this build type is not dependent on Linux versions or kernel versions and does not require patching. |
Hi @martinakos Do you require further assistance with this case, please? Thanks! |
Case closed due to solution achieved and no further comments received. |
Installing librealsense by package and then using Method 2 for Ros warper worked here as suggested by MartyG. Don't forget to install ddynamic_reconfigure (sudo apt install ros-"rosdist"-ddynamic-reconfigure) and don't confuse it with dynamic-reconfigure. |
Issue Description
My OS freezes randomly and the only thing I can do when it happens it's to reboot.
This is a new laptop running Ubuntu 20.04 so initially I thought it was something with the laptop so I've spent almost two weeks trying things about the laptop, like upgrading to the latest BIOS firmware, latest Ubuntu updates, latest kernel, latest NVidia drivers.
However, each time there is a freeze is related with me using the realsense D435i. I use the D435i through the official ROS wrapper ver. 2.3.2. It may take a while when I'm using the camera without problems but eventually it freezes. I've tried to reinstall the realsense SDK and ROS Wrappers multiple times but I still get the random freezes. I've installed the realsense ROS driver following both of the methods described in here and I still get freezes.
If I check the syslog at the time of the freeze I find multiple suspicious entries:
Once at the time of the freeze the syslog just recorded \00\00\00... but it happened just after realsense message of unknown video format
I found a possibly related issue #10158 but there wasn't a resolution.
I'm running out of ideas. Any suggestions to troubleshoot this problem?
The text was updated successfully, but these errors were encountered: