Skip to content

Instantly share code, notes, and snippets.

View EricCousineau-TRI's full-sized avatar

Eric Cousineau EricCousineau-TRI

View GitHub Profile
#!/bin/bash
# PLEASE NOTE: This is a prototype script that may change in the future; please only use this
# if it is suggested to you by a Drake developer for debugging.
# You will need to ensure that the `export ...` statement is run in your current terminal.
# Consider just `source`ing this file.
mosek_dir=~/.local/opt/mosek;
mosek_lib=${mosek_dir}/7/tools/platform/linux64x86/bin;
$ gdb ./src/pcl/simple_pcl_example
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Experimental NumPy for Drake (minor patches, etc.)
external.drake.bindings.pydrake
external.drake.bindings.pydrake._common_py
external.drake.bindings.pydrake.common
external.drake.bindings.pydrake.util
external.drake.bindings.pydrake.util.deprecation
external.drake.bindings.pydrake.util.sys
external.drake.bindings.pydrake.util.traceback
external.drake.bindings.pydrake.util.warnings
pydrake
pydrake._common_py

Common stuff:

alias bash-isolate='env -i HOME=$HOME DISPLAY=$DISPLAY SHELL=$SHELL TERM=$TERM USER=$USER PATH=/usr/local/bin:/usr/bin:/bin bash --norc'

Kuni's computer

$ bazel run //tools:drake_visualizer
$ python -c 'import vtk; print(vtk.vtkVersion.GetVTKVersion())'
6.2.0

$ bash-isolate

$ gdb bazel-bin/systems/sensors/rgbd_renderer_ospray_test
[==========] Running 10 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 10 tests from RgbdRendererOSPRayTest
[ RUN ] RgbdRendererOSPRayTest.InstantiationTest
Program received signal SIGSEGV, Segmentation fault.
__memcmp_sse4_1 () at ../sysdeps/x86_64/multiarch/memcmp-sse4.S:910
910 ../sysdeps/x86_64/multiarch/memcmp-sse4.S: No such file or directory.
(gdb) bt
(gdb) bt
#0 0x00007ffff5b8c428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff5b8e02a in __GI_abort () at abort.c:89
#2 0x00007ffff5bce7ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff5ce7ed8 "*** Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff5bd737a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, str=0x7ffff5ce4caf "free(): invalid pointer", action=3)
at malloc.c:5006
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867
#5 0x00007ffff5bdb53c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968
#6 0x00007ffff594d7e5 in std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, vtkViewNode* (*)()>::~pair (
+ use_cmake=1
++ dirname ./repro.sh
+ cd .
+ [[ 1 -eq 1 ]]
+ ./tmp/build_cmake.sh
++ dirname ./tmp/build_cmake.sh
+ cd ./tmp
+ bazel build --compiler=gcc-5 -c dbg @vtk//:vtk
Loading:
Loading: 0 packages loaded
"""Basic utilities for visualization scripts to be used via Director."""
from director.drakevisualizer import *
# TODO(eric.cousineau): Use RemoteTreeViewer or something like that.
class ModifiedDrakeVisualizer(DrakeVisualizer):
"""Extends DrakeVisualizer to subscribe to different channels."""
# Ensure we are overriding the correct methods.
INFO: Analysed target //tools:drake_visualizer (8 packages loaded).
INFO: Found 1 target...
Target //tools:drake_visualizer up-to-date:
bazel-bin/tools/drake_visualizer
INFO: Elapsed time: 6.040s, Critical Path: 0.02s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
/lib64/ld-linux-x86-64.so.2 (0x00007f98e0a3a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f98dfec9000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f98d68d1000)