-
Notifications
You must be signed in to change notification settings - Fork 794
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
rtabmap crashes with null pointer in rs2::error #469
Comments
Can you set log level to debug (Preferences->Logger) and copy paste the log just before it crashes? What is the realsense driver version? |
Hi. The last lines on the LogRtabmap.txt file are:
The file is clearly interrupted before flushing the last content.
The installed realsense libraries are:
|
Unfortunately I cannot reproduce the problem with my D435i. I don't have a D415 for testing, though it seems to be okay from this last year post: #308 (same function I use for D435 and D435i should work) I tested with:
It seems crashing after the constructor, it should be in the CameraRealSense2::init() function. I would expect to see more logs before crashing though before realsense functions are called. There is maybe one of the realsense function that is asserting an error that is not caught. Try logging in terminal instead of a file, you may get more precisely the last log before it crashes. |
Hi, |
Show log as #469 (comment) |
I have the same kind of logs, write is interrupted before getting any trace from camera part:
Please note that i have tried on two different configurations: one is ubuntu 20.04 with default realsense drivers. The other one is ubuntu 18.04 with realsense drivers recompiled from up-to-date SDK. With both configurations realsense viewer is working fine whereas rtabmap crashes. |
I am surprised we don't even get this log from the constructor:
If it is crashing in the constructor, can you show what are rtabmap dependencies (cmake output)? One trick is to disable in cmake most of the dependencies to see which one has conflicts with realsense. You can also run in gdb to have more details on where it crashes:
Type "run" to start rtabmap. |
Hi, |
Hi, |
I don't have access to my D435 or D435i camera right now. If someone can test if this change doesn't break D435/D435i, I will push the change. |
I am encountering the same issue as well. Ubuntu 18.04 and Realsense D415 Edit: The fix by @ntreepoint has resolved the issue |
… avoid crash. Fixed Integrated D415 fix (#469)
Hi,
I've just installed rtabmap (without ros) on a fresh installation of Ubuntu 18.04.3 LTS (kernel 5.0.0-32-generic) with a RealSense D415 connected to a USB 3.0 port.
Starting a new acquisition with all default settings results in a crash with the following reason:
terminate called after throwing an instance of 'rs2::error'
what(): null pointer passed for argument "from".
If I disable the IR emitter and use "IR mode" for tracking in the "Preferences" then the program run but no rgb images are captured.
The text was updated successfully, but these errors were encountered: