View my account

RealSense Viewer - Illegal instruction (core dumped)

Comments

3 comments

  • MartyG

    The DFU firmware update is now obsolete, as Intel switched to a new cross platform firmware update system in 2019.  You can update by selecting the firmware update option from the menu of the 'More icon at the top of the Viewer's options side-panel.  You can also update with the new rs-fw-update tool.

    https://dev.intelrealsense.com/docs/firmware-update-tool 

    If your PC only has a USB 2.0 port, the Viewer will be the best way to update the firmware.

    It does not sound as though the firmware is the cause of your problem though.

    Usually in the event of Viewer crashes or freezes, the recommended action is to update the display drivers, as the Viewer relies on OpenGL for its rendering.  I see you have tried this already though.  Do you know if your graphics support OpenGL please?  They should do if your PC has a mainstream graphics GPU such as Nvidia, AMD Radeon or Intel Iris HD.

    If your PC cannot support OpenGL then there is an option to build librealsense without support for graphical programs that rely on OpenGL, such as the Viewer.

     

    0
    Comment actions Permalink
  • Jbiams77

    I ran openGL and realized it wasn't there so installed Mesa. That actually fixed the stereo depth and I haveOpenGL version Mesa 18.04, however, RGB camera still crashes. It looks like after tracing it back, it crashes on the CUDA option:

    I caught the failure and rand a back trace:

    ```

    Thread 24 "realsense-viewe" received signal SIGILL, Illegal instruction.
    [Switching to Thread 0x7fffe4a55700 (LWP 24253)]
    0x00007ffff59a9ca0 in _mm_shuffle_epi8(long long __vector(2), long long __vector(2)) (__Y=..., __X=...)
    at /usr/lib/gcc/x86_64-linux-gnu/5/include/tmmintrin.h:138
    138 return (__m128i) __builtin_ia32_pshufb128 ((__v16qi)__X, (__v16qi)__Y);
    (gdb) bt
    #0 0x00007ffff59a9ca0 in _mm_shuffle_epi8(long long __vector(2), long long __vector(2)) (__Y=..., __X=...)
    at /usr/lib/gcc/x86_64-linux-gnu/5/include/tmmintrin.h:138
    #1 librealsense::unpack_yuy2<(rs2_format)5> (d=0x7fffe4a540c0,
    s=0x7fffe0cfbea0 "\022\177\023\177\022\177\022\177\023\177\022~\022\177\023~\023\177\023~\022\177\022\177\022\177\022\177\022\177\021\177\021\177\021\177\021\200\021\177\021\200\021\177\021\200\021\200\022\200\021\177\021\200\021\177\022\200\022\177\021\200\022\177\022\177\022\177\022\177\022\200\022\177\022\200\022\177\022\200\022\177\022\200\021\177\022\177\022\200\022\177\022\200\023\177\022\200\022\177\023\200\023\177\023\200\023\177\024~\024\177\024~\024\177\023~\024\177\023\177\023\177\023\177\023~\023\177\023~\022\177\023\177\022\177\023\177\023\177\023\177\023\177\023\177\024~\024\200\025~\030\200\037y,\204\065o8\205:l<\206=k=\206=l=\205;n5\205\062p9\205=n>\207?n?\205?n@\205>n>\206"..., width=640, height=480,
    actual_size=921600) at /home/brandon/librealsense/src/proc/color-formats-converter.cpp:107
    #2 0x00007ffff59a3628 in librealsense::unpack_yuy2 (dst_format=RS2_FORMAT_RGB8, dst_stream=RS2_STREAM_COLOR, d=0x7fffe4a540c0,
    s=0x7fffe0cfbea0 "\022\177\023\177\022\177\022\177\023\177\022~\022\177\023~\023\177\023~\022\177\022\177\022\177\022\177\022\177\021\177\021\177\021\177\021\200\021\177\021\200\021\177\021\200\021\200\022\200\021\177\021\200\021\177\022\200\022\177\021\200\022\177\022\177\022\177\022\177\022\200\022\177\022\200\022\177\022\200\022\177\022\200\021\177\022\177\022\200\022\177\022\200\023\177\022\200\022\177\023\200\023\177\023\200\023\177\024~\024\177\024~\024\177\023~\024\177\023\177\023\177\023\177\023~\023\177\023~\022\177\023\177\022\177\023\177\023\177\023\177\023\177\023\177\024~\024\200\025~\030\200\037y,\204\065o8\205:l<\206=k=\206=l=\205;n5\205\062p9\205=n>\207?n?\205?n@\205>n>\206"..., w=640, h=480,
    actual_size=921600) at /home/brandon/librealsense/src/proc/color-formats-converter.cpp:368
    #3 0x00007ffff59a3ba6 in librealsense::yuy2_converter::process_function (this=0x1cb4160, dest=0x7fffe4a540c0,
    source=0x7fffe0cfbea0 "\022\177\023\177\022\177\022\177\023\177\022~\022\177\023~\023\177\023~\022\177\022\177\022\177\022\177\022\177\021\177\021\177\021\177\021\200\021\177\021\200\021\177\021\200\021\200\022\200\021\177\021\200\021\177\022\200\022\177\021\200\022\177\022\177\022\177\022\177\022\200\022\177\022\200\022\177\022\200\022\177\022\200\021\177\022\177\022\200\022\177\022\200\023\177\022\200\022\177\023\200\023\177\023\200\023\177\024~\024\177\024~\024\177\023~\024\177\023\177\023\177\023\177\023~\023\177\023~\022\177\023\177\022\177\023\177\023\177\023\177\023\177\023\177\024~\024\200\025~\030\200\037y,\204\065o8\205:l<\206=k=\206=l=\205;n5\205\062p9\205=n>\207?n?\205?n@\205>n>\206"..., width=640,
    height=480, actual_size=921600, input_size=614400) at /home/brandon/librealsense/src/proc/color-formats-converter.cpp:687
    #4 0x00007ffff591938f in librealsense::functional_processing_block::process_frame (this=0x1cb4160, source=..., f=...)
    at /home/brandon/librealsense/src/proc/synthetic-stream.cpp:244
    #5 0x00007ffff5916608 in librealsense::generic_processing_block::generic_processing_block(char const*)::{lambda(rs2::frame, rs2::frame_source const&)#1}::operator()(rs2::frame, rs2::frame_source const&) const () at /home/brandon/librealsense/src/proc/synthetic-stream.cpp:71
    #6 0x00007ffff5921deb in rs2::frame_processor_callback<librealsense::generic_processing_block::generic_processing_block(char const*)::<lambda(rs2::frame, const rs2::frame_source&)> >::on_frame(rs2_frame *, rs2_source *) (this=0x1d228f0, f=0x1cf3608, source=0x1cb4380)
    at /home/brandon/librealsense/build/../include/librealsense2/hpp/rs_processing.hpp:128
    #7 0x00007ffff59162de in librealsense::processing_block::invoke (this=0x1cb4160, f=...)
    at /home/brandon/librealsense/src/proc/synthetic-stream.cpp:43
    #8 0x00007ffff5be2674 in librealsense::synthetic_sensor::<lambda(librealsense::frame_holder)>::operator()(librealsense::frame_holder) const (
    __closure=0x1d03b68, f=...) at /home/brandon/librealsense/src/sensor.cpp:1473
    #9 0x00007ffff5bead2a in librealsense::internal_frame_callback<librealsense::synthetic_sensor::start(librealsense::frame_callback_ptr)::<lambda(librealsense::frame_holder)> >::on_frame(rs2_frame *) (this=0x1d03b60, fref=0x1cf3608) at /home/brandon/librealsense/src/types.h:935
    #10 0x00007ffff5c222d1 in librealsense::frame_source::invoke_callback (this=0x7fffe000a1a0, frame=...)
    at /home/brandon/librealsense/src/source.cpp:125
    #11 0x00007ffff5bd638a in librealsense::uvc_sensor::<lambda(librealsense::platform::stream_profile, librealsense::platform::frame_object, std::function<void()>)>::operator()(librealsense::platform::stream_profile, librealsense::platform::frame_object, std::function<void()>) (
    __closure=0x1d03950, p=..., f=..., continuation=...) at /home/brandon/librealsense/src/sensor.cpp:377
    #12 0x00007ffff5be4f77 in std::_Function_handler<void(librealsense::platform::stream_profile, librealsense::platform::frame_object, std::function<void()>), librealsense::uvc_sensor::open(const stream_profiles&)::<lambda(librealsense::platform::stream_profile, librealsense::platform::frame_object, std::function<void()>)> >::_M_invoke(const std::_Any_data &, <unknown type in /usr/local/lib/librealsense2.so.2.32, CU 0x33e5a77, DIE 0x34f068b>, <unknown type in /usr/local/lib/librealsense2.so.2.32, CU 0x33e5a77, DIE 0x34f0690>, <unknown type in /usr/local/lib/librealsense2.so.2.32, CU 0x33e5a77, DIE 0x34f0695>) (__functor=..., __args#0=<unknown type in /usr/local/lib/librealsense2.so.2.32, CU 0x33e5a77, DIE 0x34f068b>,
    __args#1=<unknown type in /usr/local/lib/librealsense2.so.2.32, CU 0x33e5a77, DIE 0x34f0690>,
    __args#2=<unknown type in /usr/local/lib/librealsense2.so.2.32, CU 0x33e5a77, DIE 0x34f0695>) at /usr/include/c++/5/functional:1871
    #13 0x00007ffff58bbd58 in std::function<void (librealsense::platform::stream_profile, librealsense::platform::frame_object, std::function<void ()>)>::operator()(librealsense::platform::stream_profile, librealsense::platform::frame_object, std::function<void ()>) const (this=0x7fffe0009080,
    __args#0=..., __args#1=..., __args#2=...) at /usr/include/c++/5/functional:2267
    #14 0x00007ffff5a4fde0 in librealsense::platform::v4l_uvc_device::poll (this=0x7fffe0008f20)
    at /home/brandon/librealsense/src/linux/backend-v4l2.cpp:957
    #15 0x00007ffff5a51f80 in librealsense::platform::v4l_uvc_device::capture_loop (this=0x7fffe0008f20)
    at /home/brandon/librealsense/src/linux/backend-v4l2.cpp:1290
    #16 0x00007ffff5a4e62b in librealsense::platform::v4l_uvc_device::<lambda()>::operator()(void) const (__closure=0x1d03598)
    at /home/brandon/librealsense/src/linux/backend-v4l2.cpp:753
    ```

     

    0
    Comment actions Permalink
  • MartyG

    Building librealsense with CUDA support only works for computers with an Nvidia graphics GPU.  By default, CUDA support is set to false and only enabled if the user deliberately includes a BUILD_WITH_CUDA instruction in their CMake build command when building librealsense.

    If you did include BUILD_WITH_CUDA because you needed graphics acceleration, an alternative method in the SDK that should work with any brand of GPU is a GLSL Processing Block.  It tends to be ineffective on low-power computing devices though.

    https://github.com/IntelRealSense/librealsense/pull/3654 

    0
    Comment actions Permalink

Please sign in to leave a comment.