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

image_view not functioning (segmentation fault) #516

Closed
benhamlen opened this issue Apr 14, 2020 · 21 comments
Closed

image_view not functioning (segmentation fault) #516

benhamlen opened this issue Apr 14, 2020 · 21 comments

Comments

@benhamlen
Copy link

I'm running ros melodic on an nvidia xavier agx, ubuntu 18.04

Running roslaunch video_stream_opencv video_file.launch fails with the following output

... logging to /home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/roslaunch-sd-17072.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://sd:38003/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.5
 * /videofile/videofile_stream/buffer_queue_size: 1000
 * /videofile/videofile_stream/camera_info_url: 
 * /videofile/videofile_stream/camera_name: videofile
 * /videofile/videofile_stream/flip_horizontal: False
 * /videofile/videofile_stream/flip_vertical: False
 * /videofile/videofile_stream/fps: 30.0
 * /videofile/videofile_stream/frame_id: videofile_frame
 * /videofile/videofile_stream/height: 0
 * /videofile/videofile_stream/loop_videofile: True
 * /videofile/videofile_stream/set_camera_fps: 30.0
 * /videofile/videofile_stream/start_frame: 0
 * /videofile/videofile_stream/stop_frame: -1
 * /videofile/videofile_stream/video_stream_provider: /home/sd/Desktop/...
 * /videofile/videofile_stream/width: 0

NODES
  /videofile/
    videofile_image_view (image_view/image_view)
    videofile_stream (video_stream_opencv/video_stream)

auto-starting new master
process[master]: started with pid [17082]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to d688c298-7de0-11ea-b5c8-00044be59e11
process[rosout-1]: started with pid [17093]
started core service [/rosout]
process[videofile/videofile_stream-2]: started with pid [17100]
process[videofile/videofile_image_view-3]: started with pid [17101]
[ INFO] [1586821523.337109716]: Initializing nodelet with 8 worker threads.
[ INFO] [1586821523.696650797]: Camera name: videofile
[ INFO] [1586821523.696753777]: Provided camera_info_url: ''
[ INFO] [1586821523.696830356]: Publishing with frame_id: videofile_frame
[ INFO] [1586821523.696888630]: Setting camera FPS to: 30
[ INFO] [1586821523.696934808]: Throttling to fps: 30
[ INFO] [1586821523.696980026]: Setting buffer size for capturing frames to: 1000
[ INFO] [1586821523.697021563]: Flip horizontal image is: false
[ INFO] [1586821523.697094270]: Flip vertical image is: false
[ INFO] [1586821523.697139808]: Video start frame is: 0
[ INFO] [1586821523.697176929]: Video stop frame is: -1
[ INFO] [1586821523.983021552]: using default calibration URL
[ INFO] [1586821523.983229944]: camera calibration URL: file:///home/sd/.ros/camera_info/videofile.yaml
[ INFO] [1586821523.983430912]: Unable to open camera calibration file [/home/sd/.ros/camera_info/videofile.yaml]
[ WARN] [1586821523.983517764]: Camera calibration file /home/sd/.ros/camera_info/videofile.yaml not found.
[ INFO] [1586821523.983828432]: Opening VideoCapture with provider: /home/sd/Desktop/video_stream_test.mp4
[ INFO] [1586821524.092015541]: Video stream provider type detected: videofile
[ INFO] [1586821524.092263775]: Camera reports FPS: 29.97
[ WARN] [1586821524.165497689]: No calibration file given, publishing a reasonable default camera info.
[ INFO] [1586821524.165714145]: The image width is: 1920
[ INFO] [1586821524.165816869]: The image height is: 1080
[videofile/videofile_image_view-3] process has died [pid 17101, exit code -11, cmd /opt/ros/melodic/lib/image_view/image_view image:=image_raw __name:=videofile_image_view __log:=/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/videofile-videofile_image_view-3.log].
log file: /home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/videofile-videofile_image_view-3*.log 

I've tried to view the log file mentioned at the end of the output and it is empty/does not exist.

Setting the the visualize output line (line 32) of the video_file.launch file to false (shown below) eliminates this error and the program runs without error, successfully publishing the video to /videofile/image_raw

 <!-- visualize on an image_view window the stream generated -->
        <arg name="visualize" value="false" />

I've verified its successfully publishing to the image topic after setting that visualize launch option to false by:

  1. checking rostopic echo /videofile/image_raw, there is output
  2. succesfully running object detection on the image topic with
    rosrun ros_deep_learning detectnet /detectnet/image_in:=/videofile/image_raw _model_name:=pednet

Just to isolate the issue more, I then tried to run image_view separately on the /videofile/image_raw topic

rosrun image_view image_view image:=/videofile/image_raw

which fails with

[ INFO] [1586820077.545330229]: Initializing nodelet with 8 worker threads.
[ INFO] [1586820077.758800634]: Using transport "compressed"
Segmentation fault (core dumped)

I read on #264 that ros kinetic had this issue because its compiled against opencv2, however I'm using melodic. Surely its compiled against opencv3 right?

For completeness, here is the full log files mentioned at the top of the ROS output

[roslaunch][INFO] 2020-04-13 18:45:21,454: Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
[roslaunch][INFO] 2020-04-13 18:45:21,465: Done checking log file disk usage. Usage is <1GB.
[roslaunch][INFO] 2020-04-13 18:45:21,466: roslaunch starting with args ['/opt/ros/melodic/bin/roslaunch', 'video_stream_opencv', 'video_file.launch']
[roslaunch][INFO] 2020-04-13 18:45:21,466: roslaunch env is {'ROS_DISTRO': 'melodic', 'QT4_IM_MODULE': 'xim', 'PKG_CONFIG_PATH': '/home/sd/catkin_ws/devel/lib/pkgconfig:/opt/ros/melodic/lib/pkgconfig:/usr/lib/pkgconfig/', 'WINDOWPATH': '2', 'XDG_CURRENT_DESKTOP': 'Unity:Unity7:ubuntu', 'UNITY_HAS_3D_SUPPORT': 'true', 'XDG_SESSION_TYPE': 'x11', 'ROSLISP_PACKAGE_DIRECTORIES': '/home/sd/catkin_ws/devel/share/common-lisp', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'sd', 'USER': 'sd', 'PATH': '/opt/ros/melodic/bin:/usr/local/cuda-10.0/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'HOME': '/home/sd', 'CMAKE_PREFIX_PATH': '/home/sd/catkin_ws/devel:/opt/ros/melodic', 'DISPLAY': ':1', 'XDG_RUNTIME_DIR': '/run/user/1000', 'LANG': 'en_US.UTF-8', 'MANAGERPID': '5750', 'SHELL': '/bin/bash', 'ROS_LOG_FILENAME': '/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/roslaunch-sd-17072.log', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'JOURNAL_STREAM': '8:47123', 'SESSION_MANAGER': 'local/sd:@/tmp/.ICE-unix/6042,unix/sd:/tmp/.ICE-unix/6042', 'XDG_DATA_DIRS': '/usr/share/unity:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'CLUTTER_IM_MODULE': 'xim', 'UNITY_DEFAULT_PROFILE': 'unity', 'LD_LIBRARY_PATH': '/home/sd/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda-10.0/lib64', 'GTK_CSD': '0', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'TEXTDOMAIN': 'im-config', 'XMODIFIERS': '@im=ibus', 'ROS_MASTER_URI': 'http://localhost:11311', 'GPG_AGENT_INFO': '/run/user/1000/gnupg/S.gpg-agent:0:1', 'ROS_PYTHON_VERSION': '2', 'INVOCATION_ID': '49b7fb73cdda408ba850c5335b2c6ba2', 'USERNAME': 'sd', 'XDG_SESSION_DESKTOP': 'unity', 'COMPIZ_BIN_PATH': '/usr/bin/', 'ROS_VERSION': '1', 'PYTHONPATH': '/home/sd/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'TERM': 'xterm-256color', 'ROS_ROOT': '/opt/ros/melodic/share/ros', 'GDMSESSION': 'unity', 'IM_CONFIG_PHASE': '2', 'TEXTDOMAINDIR': '/usr/share/locale/', 'QT_ACCESSIBILITY': '1', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-unity:/etc/xdg', 'ROS_PACKAGE_PATH': '/home/sd/catkin_ws/src:/opt/ros/melodic/share', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '_': '/opt/ros/melodic/bin/roslaunch', 'GNOME_TERMINAL_SERVICE': ':1.104', 'LD_PRELOAD': 'libgtk3-nocsd.so.0', 'GTK_IM_MODULE': 'ibus', 'DESKTOP_SESSION': 'unity', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'VTE_VERSION': '5202', 'OLDPWD': '/home/sd/catkin_ws/devel/share', 'SHLVL': '2', 'PWD': '/home/sd/catkin_ws', 'ROS_ETC_DIR': '/opt/ros/melodic/etc/ros', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'COLORTERM': 'truecolor', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SESSION_XDG_SESSION_PATH': '', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'GNOME_TERMINAL_SCREEN': '/org/gnome/Terminal/screen/b82f4e47_c7bf_4410_8b5d_eec5eec1b7c1'}
[roslaunch][INFO] 2020-04-13 18:45:21,466: starting in server mode
[roslaunch.parent][INFO] 2020-04-13 18:45:21,467: starting roslaunch parent run
[roslaunch][INFO] 2020-04-13 18:45:21,467: loading roscore config file /opt/ros/melodic/etc/ros/roscore.xml
[roslaunch][INFO] 2020-04-13 18:45:22,497: Added core node of type [rosout/rosout] in namespace [/]
[roslaunch.config][INFO] 2020-04-13 18:45:22,498: loading config file /home/sd/catkin_ws/src/video_stream_opencv/launch/video_file.launch
[roslaunch][INFO] 2020-04-13 18:45:22,583: Added node of type [video_stream_opencv/video_stream] in namespace [/videofile/]
[roslaunch][INFO] 2020-04-13 18:45:22,585: Added node of type [image_view/image_view] in namespace [/videofile/]
[roslaunch][INFO] 2020-04-13 18:45:22,585: ... selected machine [] for node of type [video_stream_opencv/video_stream]
[roslaunch][INFO] 2020-04-13 18:45:22,586: ... selected machine [] for node of type [image_view/image_view]
[roslaunch.pmon][INFO] 2020-04-13 18:45:22,588: start_process_monitor: creating ProcessMonitor
[roslaunch.pmon][INFO] 2020-04-13 18:45:22,589: created process monitor <ProcessMonitor(ProcessMonitor-1, initial daemon)>
[roslaunch.pmon][INFO] 2020-04-13 18:45:22,589: start_process_monitor: ProcessMonitor started
[roslaunch.parent][INFO] 2020-04-13 18:45:22,590: starting parent XML-RPC server
[roslaunch.server][INFO] 2020-04-13 18:45:22,590: starting roslaunch XML-RPC server
[roslaunch.server][INFO] 2020-04-13 18:45:22,590: waiting for roslaunch XML-RPC server to initialize
[xmlrpc][INFO] 2020-04-13 18:45:22,591: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2020-04-13 18:45:22,592: Started XML-RPC server [http://sd:38003/]
[xmlrpc][INFO] 2020-04-13 18:45:22,592: xml rpc node: starting XML-RPC server
[roslaunch][INFO] 2020-04-13 18:45:22,607: started roslaunch server http://sd:38003/
[roslaunch.parent][INFO] 2020-04-13 18:45:22,607: ... parent XML-RPC server started
[roslaunch][INFO] 2020-04-13 18:45:22,609: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:22,610: auto-starting new master
[roslaunch][INFO] 2020-04-13 18:45:22,610: create_master_process: rosmaster, /opt/ros/melodic/share/ros, 11311, 3, None, False
[roslaunch][INFO] 2020-04-13 18:45:22,610: process[master]: launching with args [['rosmaster', '--core', '-p', '11311', '-w', '3']]
[roslaunch.pmon][INFO] 2020-04-13 18:45:22,610: ProcessMonitor.register[master]
[roslaunch.pmon][INFO] 2020-04-13 18:45:22,611: ProcessMonitor.register[master] complete
[roslaunch][INFO] 2020-04-13 18:45:22,611: process[master]: starting os process
[roslaunch][INFO] 2020-04-13 18:45:22,611: process[master]: start w/ args [['rosmaster', '--core', '-p', '11311', '-w', '3', '__log:=/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/master.log']]
[roslaunch][INFO] 2020-04-13 18:45:22,611: process[master]: cwd will be [/home/sd/.ros]
[roslaunch][INFO] 2020-04-13 18:45:22,619: process[master]: started with pid [17082]
[roslaunch][INFO] 2020-04-13 18:45:22,620: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:22,722: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:22,823: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:22,925: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,026: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,128: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,133: master.is_running[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,136: ROS_MASTER_URI=http://localhost:11311
[roslaunch][INFO] 2020-04-13 18:45:23,138: setting /run_id to d688c298-7de0-11ea-b5c8-00044be59e11
[roslaunch][INFO] 2020-04-13 18:45:23,140: setting /roslaunch/uris/host_sd__38003' to http://sd:38003/
[roslaunch][INFO] 2020-04-13 18:45:23,144: ... preparing to launch node of type [rosout/rosout]
[roslaunch][INFO] 2020-04-13 18:45:23,145: create_node_process: package[rosout] type[rosout] machine[Machine(name[] env_loader[None] address[localhost] ssh_port[22] user[None] assignable[True] timeout[10.0])] master_uri[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,145: process[rosout-1]: env[{'ROS_DISTRO': 'melodic', 'QT4_IM_MODULE': 'xim', 'COLORTERM': 'truecolor', 'XDG_CURRENT_DESKTOP': 'Unity:Unity7:ubuntu', 'UNITY_HAS_3D_SUPPORT': 'true', 'XDG_SESSION_TYPE': 'x11', 'ROSLISP_PACKAGE_DIRECTORIES': '/home/sd/catkin_ws/devel/share/common-lisp', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'sd', 'USER': 'sd', 'PATH': '/opt/ros/melodic/bin:/usr/local/cuda-10.0/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'HOME': '/home/sd', 'CMAKE_PREFIX_PATH': '/home/sd/catkin_ws/devel:/opt/ros/melodic', 'ROS_LOG_FILENAME': '/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/roslaunch-sd-17072.log', 'LANG': 'en_US.UTF-8', 'MANAGERPID': '5750', 'SHELL': '/bin/bash', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'JOURNAL_STREAM': '8:47123', 'SESSION_MANAGER': 'local/sd:@/tmp/.ICE-unix/6042,unix/sd:/tmp/.ICE-unix/6042', 'XDG_DATA_DIRS': '/usr/share/unity:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'UNITY_DEFAULT_PROFILE': 'unity', 'DISPLAY': ':1', 'GTK_CSD': '0', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'CLUTTER_IM_MODULE': 'xim', 'WINDOWPATH': '2', 'XMODIFIERS': '@im=ibus', 'ROS_ETC_DIR': '/opt/ros/melodic/etc/ros', 'GPG_AGENT_INFO': '/run/user/1000/gnupg/S.gpg-agent:0:1', 'ROS_PYTHON_VERSION': '2', 'INVOCATION_ID': '49b7fb73cdda408ba850c5335b2c6ba2', 'USERNAME': 'sd', 'XDG_SESSION_DESKTOP': 'unity', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'XDG_RUNTIME_DIR': '/run/user/1000', 'PYTHONPATH': '/home/sd/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'COMPIZ_BIN_PATH': '/usr/bin/', 'TERM': 'xterm-256color', 'ROS_ROOT': '/opt/ros/melodic/share/ros', 'GDMSESSION': 'unity', 'IM_CONFIG_PHASE': '2', 'TEXTDOMAINDIR': '/usr/share/locale/', 'DESKTOP_SESSION': 'unity', 'QT_ACCESSIBILITY': '1', 'PKG_CONFIG_PATH': '/home/sd/catkin_ws/devel/lib/pkgconfig:/opt/ros/melodic/lib/pkgconfig:/usr/lib/pkgconfig/', 'ROS_PACKAGE_PATH': '/home/sd/catkin_ws/src:/opt/ros/melodic/share', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '_': '/opt/ros/melodic/bin/roslaunch', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'LD_PRELOAD': 'libgtk3-nocsd.so.0', 'GTK_IM_MODULE': 'ibus', 'LD_LIBRARY_PATH': '/home/sd/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda-10.0/lib64', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-unity:/etc/xdg', 'GNOME_TERMINAL_SERVICE': ':1.104', 'VTE_VERSION': '5202', 'OLDPWD': '/home/sd/catkin_ws/devel/share', 'SHLVL': '2', 'PWD': '/home/sd/catkin_ws', 'ROS_MASTER_URI': 'http://localhost:11311', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'ROS_VERSION': '1', 'TEXTDOMAIN': 'im-config', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SESSION_XDG_SESSION_PATH': '', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'GNOME_TERMINAL_SCREEN': '/org/gnome/Terminal/screen/b82f4e47_c7bf_4410_8b5d_eec5eec1b7c1'}]
[roslaunch][INFO] 2020-04-13 18:45:23,219: process[rosout-1]: args[[u'/opt/ros/melodic/lib/rosout/rosout', u'__name:=rosout']]
[roslaunch][INFO] 2020-04-13 18:45:23,219: ... created process [rosout-1]
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,219: ProcessMonitor.register[rosout-1]
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,220: ProcessMonitor.register[rosout-1] complete
[roslaunch][INFO] 2020-04-13 18:45:23,220: ... registered process [rosout-1]
[roslaunch][INFO] 2020-04-13 18:45:23,220: process[rosout-1]: starting os process
[roslaunch][INFO] 2020-04-13 18:45:23,221: process[rosout-1]: start w/ args [[u'/opt/ros/melodic/lib/rosout/rosout', u'__name:=rosout', u'__log:=/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/rosout-1.log']]
[roslaunch][INFO] 2020-04-13 18:45:23,221: process[rosout-1]: cwd will be [/home/sd/.ros]
[roslaunch][INFO] 2020-04-13 18:45:23,229: process[rosout-1]: started with pid [17093]
[roslaunch][INFO] 2020-04-13 18:45:23,230: ... successfully launched [rosout-1]
[roslaunch][INFO] 2020-04-13 18:45:23,231: load_parameters starting ...
[roslaunch][INFO] 2020-04-13 18:45:23,255: ... load_parameters complete
[roslaunch][INFO] 2020-04-13 18:45:23,255: launch_nodes: launching local nodes ...
[roslaunch][INFO] 2020-04-13 18:45:23,255: ... preparing to launch node of type [video_stream_opencv/video_stream]
[roslaunch][INFO] 2020-04-13 18:45:23,256: create_node_process: package[video_stream_opencv] type[video_stream] machine[Machine(name[] env_loader[None] address[localhost] ssh_port[22] user[None] assignable[True] timeout[10.0])] master_uri[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,256: process[videofile/videofile_stream-2]: env[{'ROS_DISTRO': 'melodic', 'QT4_IM_MODULE': 'xim', 'COLORTERM': 'truecolor', 'XDG_CURRENT_DESKTOP': 'Unity:Unity7:ubuntu', 'UNITY_HAS_3D_SUPPORT': 'true', 'XDG_SESSION_TYPE': 'x11', 'ROSLISP_PACKAGE_DIRECTORIES': '/home/sd/catkin_ws/devel/share/common-lisp', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'sd', 'USER': 'sd', 'PATH': '/opt/ros/melodic/bin:/usr/local/cuda-10.0/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'HOME': '/home/sd', 'CMAKE_PREFIX_PATH': '/home/sd/catkin_ws/devel:/opt/ros/melodic', 'ROS_LOG_FILENAME': '/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/roslaunch-sd-17072.log', 'LANG': 'en_US.UTF-8', 'MANAGERPID': '5750', 'SHELL': '/bin/bash', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'JOURNAL_STREAM': '8:47123', 'SESSION_MANAGER': 'local/sd:@/tmp/.ICE-unix/6042,unix/sd:/tmp/.ICE-unix/6042', 'XDG_DATA_DIRS': '/usr/share/unity:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'UNITY_DEFAULT_PROFILE': 'unity', 'DISPLAY': ':1', 'GTK_CSD': '0', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'CLUTTER_IM_MODULE': 'xim', 'WINDOWPATH': '2', 'XMODIFIERS': '@im=ibus', 'ROS_ETC_DIR': '/opt/ros/melodic/etc/ros', 'GPG_AGENT_INFO': '/run/user/1000/gnupg/S.gpg-agent:0:1', 'ROS_PYTHON_VERSION': '2', 'INVOCATION_ID': '49b7fb73cdda408ba850c5335b2c6ba2', 'USERNAME': 'sd', 'XDG_SESSION_DESKTOP': 'unity', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'XDG_RUNTIME_DIR': '/run/user/1000', 'PYTHONPATH': '/home/sd/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'COMPIZ_BIN_PATH': '/usr/bin/', 'TERM': 'xterm-256color', 'ROS_NAMESPACE': '/videofile', 'ROS_ROOT': '/opt/ros/melodic/share/ros', 'GDMSESSION': 'unity', 'IM_CONFIG_PHASE': '2', 'TEXTDOMAINDIR': '/usr/share/locale/', 'DESKTOP_SESSION': 'unity', 'QT_ACCESSIBILITY': '1', 'PKG_CONFIG_PATH': '/home/sd/catkin_ws/devel/lib/pkgconfig:/opt/ros/melodic/lib/pkgconfig:/usr/lib/pkgconfig/', 'ROS_PACKAGE_PATH': '/home/sd/catkin_ws/src:/opt/ros/melodic/share', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '_': '/opt/ros/melodic/bin/roslaunch', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'LD_PRELOAD': 'libgtk3-nocsd.so.0', 'GTK_IM_MODULE': 'ibus', 'LD_LIBRARY_PATH': '/home/sd/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda-10.0/lib64', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-unity:/etc/xdg', 'GNOME_TERMINAL_SERVICE': ':1.104', 'VTE_VERSION': '5202', 'OLDPWD': '/home/sd/catkin_ws/devel/share', 'SHLVL': '2', 'PWD': '/home/sd/catkin_ws', 'ROS_MASTER_URI': 'http://localhost:11311', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'ROS_VERSION': '1', 'TEXTDOMAIN': 'im-config', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SESSION_XDG_SESSION_PATH': '', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'GNOME_TERMINAL_SCREEN': '/org/gnome/Terminal/screen/b82f4e47_c7bf_4410_8b5d_eec5eec1b7c1'}]
[roslaunch][INFO] 2020-04-13 18:45:23,259: process[videofile/videofile_stream-2]: args[[u'/home/sd/catkin_ws/devel/lib/video_stream_opencv/video_stream', u'camera:=image_raw', u'__name:=videofile_stream']]
[roslaunch][INFO] 2020-04-13 18:45:23,259: ... created process [videofile/videofile_stream-2]
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,260: ProcessMonitor.register[videofile/videofile_stream-2]
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,260: ProcessMonitor.register[videofile/videofile_stream-2] complete
[roslaunch][INFO] 2020-04-13 18:45:23,260: ... registered process [videofile/videofile_stream-2]
[roslaunch][INFO] 2020-04-13 18:45:23,260: process[videofile/videofile_stream-2]: starting os process
[roslaunch][INFO] 2020-04-13 18:45:23,261: process[videofile/videofile_stream-2]: start w/ args [[u'/home/sd/catkin_ws/devel/lib/video_stream_opencv/video_stream', u'camera:=image_raw', u'__name:=videofile_stream', u'__log:=/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/videofile-videofile_stream-2.log']]
[roslaunch][INFO] 2020-04-13 18:45:23,261: process[videofile/videofile_stream-2]: cwd will be [/home/sd/.ros]
[roslaunch][INFO] 2020-04-13 18:45:23,269: process[videofile/videofile_stream-2]: started with pid [17100]
[roslaunch][INFO] 2020-04-13 18:45:23,270: ... successfully launched [videofile/videofile_stream-2]
[roslaunch][INFO] 2020-04-13 18:45:23,271: ... preparing to launch node of type [image_view/image_view]
[roslaunch][INFO] 2020-04-13 18:45:23,271: create_node_process: package[image_view] type[image_view] machine[Machine(name[] env_loader[None] address[localhost] ssh_port[22] user[None] assignable[True] timeout[10.0])] master_uri[http://localhost:11311]
[roslaunch][INFO] 2020-04-13 18:45:23,272: process[videofile/videofile_image_view-3]: env[{'ROS_DISTRO': 'melodic', 'QT4_IM_MODULE': 'xim', 'COLORTERM': 'truecolor', 'XDG_CURRENT_DESKTOP': 'Unity:Unity7:ubuntu', 'UNITY_HAS_3D_SUPPORT': 'true', 'XDG_SESSION_TYPE': 'x11', 'ROSLISP_PACKAGE_DIRECTORIES': '/home/sd/catkin_ws/devel/share/common-lisp', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'sd', 'USER': 'sd', 'PATH': '/opt/ros/melodic/bin:/usr/local/cuda-10.0/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'HOME': '/home/sd', 'CMAKE_PREFIX_PATH': '/home/sd/catkin_ws/devel:/opt/ros/melodic', 'ROS_LOG_FILENAME': '/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/roslaunch-sd-17072.log', 'LANG': 'en_US.UTF-8', 'MANAGERPID': '5750', 'SHELL': '/bin/bash', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'JOURNAL_STREAM': '8:47123', 'SESSION_MANAGER': 'local/sd:@/tmp/.ICE-unix/6042,unix/sd:/tmp/.ICE-unix/6042', 'XDG_DATA_DIRS': '/usr/share/unity:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'UNITY_DEFAULT_PROFILE': 'unity', 'DISPLAY': ':1', 'GTK_CSD': '0', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'CLUTTER_IM_MODULE': 'xim', 'WINDOWPATH': '2', 'XMODIFIERS': '@im=ibus', 'ROS_ETC_DIR': '/opt/ros/melodic/etc/ros', 'GPG_AGENT_INFO': '/run/user/1000/gnupg/S.gpg-agent:0:1', 'ROS_PYTHON_VERSION': '2', 'INVOCATION_ID': '49b7fb73cdda408ba850c5335b2c6ba2', 'USERNAME': 'sd', 'XDG_SESSION_DESKTOP': 'unity', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'XDG_RUNTIME_DIR': '/run/user/1000', 'PYTHONPATH': '/home/sd/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages:/home/sd/sd2020_sprinkler_detector/models/:/home/sd/sd2020_sprinkler_detector/models/research:/home/sd/sd2020_sprinkler_detector/models/research/slim', 'COMPIZ_BIN_PATH': '/usr/bin/', 'TERM': 'xterm-256color', 'ROS_NAMESPACE': '/videofile', 'ROS_ROOT': '/opt/ros/melodic/share/ros', 'GDMSESSION': 'unity', 'IM_CONFIG_PHASE': '2', 'TEXTDOMAINDIR': '/usr/share/locale/', 'DESKTOP_SESSION': 'unity', 'QT_ACCESSIBILITY': '1', 'PKG_CONFIG_PATH': '/home/sd/catkin_ws/devel/lib/pkgconfig:/opt/ros/melodic/lib/pkgconfig:/usr/lib/pkgconfig/', 'ROS_PACKAGE_PATH': '/home/sd/catkin_ws/src:/opt/ros/melodic/share', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '_': '/opt/ros/melodic/bin/roslaunch', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'LD_PRELOAD': 'libgtk3-nocsd.so.0', 'GTK_IM_MODULE': 'ibus', 'LD_LIBRARY_PATH': '/home/sd/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda-10.0/lib64', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-unity:/etc/xdg', 'GNOME_TERMINAL_SERVICE': ':1.104', 'VTE_VERSION': '5202', 'OLDPWD': '/home/sd/catkin_ws/devel/share', 'SHLVL': '2', 'PWD': '/home/sd/catkin_ws', 'ROS_MASTER_URI': 'http://localhost:11311', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'ROS_VERSION': '1', 'TEXTDOMAIN': 'im-config', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SESSION_XDG_SESSION_PATH': '', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'GNOME_TERMINAL_SCREEN': '/org/gnome/Terminal/screen/b82f4e47_c7bf_4410_8b5d_eec5eec1b7c1'}]
[roslaunch][INFO] 2020-04-13 18:45:23,274: process[videofile/videofile_image_view-3]: args[[u'/opt/ros/melodic/lib/image_view/image_view', u'image:=image_raw', u'__name:=videofile_image_view']]
[roslaunch][INFO] 2020-04-13 18:45:23,275: ... created process [videofile/videofile_image_view-3]
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,275: ProcessMonitor.register[videofile/videofile_image_view-3]
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,275: ProcessMonitor.register[videofile/videofile_image_view-3] complete
[roslaunch][INFO] 2020-04-13 18:45:23,275: ... registered process [videofile/videofile_image_view-3]
[roslaunch][INFO] 2020-04-13 18:45:23,276: process[videofile/videofile_image_view-3]: starting os process
[roslaunch][INFO] 2020-04-13 18:45:23,276: process[videofile/videofile_image_view-3]: start w/ args [[u'/opt/ros/melodic/lib/image_view/image_view', u'image:=image_raw', u'__name:=videofile_image_view', u'__log:=/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/videofile-videofile_image_view-3.log']]
[roslaunch][INFO] 2020-04-13 18:45:23,276: process[videofile/videofile_image_view-3]: cwd will be [/home/sd/.ros]
[roslaunch][INFO] 2020-04-13 18:45:23,285: process[videofile/videofile_image_view-3]: started with pid [17101]
[roslaunch][INFO] 2020-04-13 18:45:23,286: ... successfully launched [videofile/videofile_image_view-3]
[roslaunch][INFO] 2020-04-13 18:45:23,286: ... launch_nodes complete
[roslaunch.pmon][INFO] 2020-04-13 18:45:23,287: registrations completed <ProcessMonitor(ProcessMonitor-1, started daemon 548115911152)>
[roslaunch.parent][INFO] 2020-04-13 18:45:23,287: ... roslaunch parent running, waiting for process exit
[roslaunch][INFO] 2020-04-13 18:45:23,287: spin
[roslaunch][ERROR] 2020-04-13 18:45:24,697: [videofile/videofile_image_view-3] process has died [pid 17101, exit code -11, cmd /opt/ros/melodic/lib/image_view/image_view image:=image_raw __name:=videofile_image_view __log:=/home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/videofile-videofile_image_view-3.log].
log file: /home/sd/.ros/log/d688c298-7de0-11ea-b5c8-00044be59e11/videofile-videofile_image_view-3*.log
[roslaunch.pmon][INFO] 2020-04-13 18:45:24,697: ProcessMonitor.unregister[videofile/videofile_image_view-3] starting
[roslaunch.pmon][INFO] 2020-04-13 18:45:24,698: ProcessMonitor.unregister[videofile/videofile_image_view-3] complete
[roslaunch.pmon][INFO] 2020-04-13 18:45:29,520: ProcessMonitor.shutdown <ProcessMonitor(ProcessMonitor-1, started daemon 548115911152)>
[roslaunch.pmon][INFO] 2020-04-13 18:45:29,611: ProcessMonitor._post_run <ProcessMonitor(ProcessMonitor-1, started daemon 548115911152)>
[roslaunch.pmon][INFO] 2020-04-13 18:45:29,612: ProcessMonitor._post_run <ProcessMonitor(ProcessMonitor-1, started daemon 548115911152)>: remaining procs are [<roslaunch.nodeprocess.LocalProcess object at 0x7f9e428990>, <roslaunch.nodeprocess.LocalProcess object at 0x7f9e475bd0>, <roslaunch.nodeprocess.LocalProcess object at 0x7f9e473210>]
[roslaunch.pmon][INFO] 2020-04-13 18:45:29,613: ProcessMonitor exit: killing videofile/videofile_stream-2
[roslaunch][INFO] 2020-04-13 18:45:29,614: [videofile/videofile_stream-2] killing on exit
[roslaunch][INFO] 2020-04-13 18:45:29,616: process[videofile/videofile_stream-2]: killing os process with pid[17100] pgid[17100]
[roslaunch][INFO] 2020-04-13 18:45:29,617: [videofile/videofile_stream-2] sending SIGINT to pgid [17100]
[roslaunch][INFO] 2020-04-13 18:45:29,618: [videofile/videofile_stream-2] sent SIGINT to pgid [17100]
[roslaunch][INFO] 2020-04-13 18:45:30,021: process[videofile/videofile_stream-2]: SIGINT killed with return value 0
[roslaunch.pmon][INFO] 2020-04-13 18:45:30,022: ProcessMonitor exit: killing rosout-1
[roslaunch][INFO] 2020-04-13 18:45:30,022: [rosout-1] killing on exit
[roslaunch][INFO] 2020-04-13 18:45:30,022: process[rosout-1]: killing os process with pid[17093] pgid[17093]
[roslaunch][INFO] 2020-04-13 18:45:30,023: [rosout-1] sending SIGINT to pgid [17093]
[roslaunch][INFO] 2020-04-13 18:45:30,023: [rosout-1] sent SIGINT to pgid [17093]
[roslaunch][INFO] 2020-04-13 18:45:30,224: process[rosout-1]: SIGINT killed with return value 0
[roslaunch.pmon][INFO] 2020-04-13 18:45:30,224: ProcessMonitor exit: killing master
[roslaunch][INFO] 2020-04-13 18:45:30,224: [master] killing on exit
[roslaunch][INFO] 2020-04-13 18:45:30,225: process[master]: killing os process with pid[17082] pgid[17082]
[roslaunch][INFO] 2020-04-13 18:45:30,225: [master] sending SIGINT to pgid [17082]
[roslaunch][INFO] 2020-04-13 18:45:30,225: [master] sent SIGINT to pgid [17082]
[roslaunch][INFO] 2020-04-13 18:45:30,426: process[master]: SIGINT killed with return value 0
[roslaunch.pmon][INFO] 2020-04-13 18:45:30,426: ProcessMonitor exit: cleaning up data structures and signals
[roslaunch.pmon][INFO] 2020-04-13 18:45:30,427: ProcessMonitor exit: pmon has shutdown
[roslaunch][INFO] 2020-04-13 18:45:30,436: process monitor is done spinning, initiating full shutdown
[roslaunch][INFO] 2020-04-13 18:45:30,436: runner.stop()
[roslaunch][INFO] 2020-04-13 18:45:30,437: shutting down processing monitor...
[roslaunch][INFO] 2020-04-13 18:45:30,437: shutting down processing monitor <ProcessMonitor(ProcessMonitor-1, stopped daemon 548115911152)>
[roslaunch.pmon][INFO] 2020-04-13 18:45:30,437: ProcessMonitor.shutdown <ProcessMonitor(ProcessMonitor-1, stopped daemon 548115911152)>
[roslaunch][INFO] 2020-04-13 18:45:30,437: ... shutting down processing monitor complete
[roslaunch][INFO] 2020-04-13 18:45:30,437: done
[roslaunch.pmon][INFO] 2020-04-13 18:45:30,438: ProcessMonitor.shutdown <ProcessMonitor(ProcessMonitor-1, stopped daemon 548115911152)>
[rospy.core][INFO] 2020-04-13 18:45:30,438: signal_shutdown [atexit]

@SteveMacenski
Copy link
Member

I'm confused, https://wiki.ros.org/video_stream_opencv is not in this repo. Did you mean to file a ticket there?

@benhamlen
Copy link
Author

benhamlen commented Apr 14, 2020

@SteveMacenski Ah, sorry for the confusion. I am almost certain the issue lies with image_view. Just wanted to provide context of where the image topic i'm feeding image_view is coming from

I should add that the purpose of adding the line about changing the launch file option from true to false is there because changing it to false makes that launch file no longer call image_view, which, in turn, makes it run without error

@benhamlen
Copy link
Author

@SteveMacenski do you have any updates on image_view's issues? I saw in a different thread that it was possible some dev was the last person to push changes to it and might have messed it up? Just to reiterate, this issue thread is about image_view. Sorry for the earlier confusion

@SteveMacenski
Copy link
Member

SteveMacenski commented Apr 17, 2020

Can you reproduce using a much simpler demo? You have alot of stuff going on in your description, boiling it down to a simple issue with just this tool.

Also verify as you mention that you’re compiling against the right version of opencv. How’d you install it, versions, etc.

Also, run gdb on it and see where its segfaulting. Maybe its obvious where it is then.

@aytimothy
Copy link

aytimothy commented May 3, 2020

It could be something to do with the environment that we're running in? I started from a Ubuntu Server setup and installed ROS, a desktop+RDP (because headless setup) and all that, though my intentions are that of #498 plus image_compressed.

From both of these dying after image_view segfaults, from viewing in rqt_graph, I'd assume they're related.

I just installed ros (sudo apt-get install ros-melodic-desktop-full) as per normal, installed @awesomebytes' drivers ran it, and finally SIGSEGV in image_view. I'll see if I can extract the crash dump.

You can also find the initial things I collected in the above linked issue.

@aytimothy
Copy link

aytimothy commented May 3, 2020

I have a crash dump here: https://aytimothy.xyz/files/pub/_opt_ros_melodic_lib_image_view_image_view.1001.crash

Edit: Link is now to GitHub Gists. You can still download from the external site.

@awesomebytes
Copy link

@aytimothy Have you tried recording a short rosbag of the image_raw camera_info and maybe image_raw/compressed topics and then trying to run image_view playing this rosbag? If it crashes that way, it's a very easy way for developers to reproduce the issue and fix it. (And the rosbag can be attached to the comment of the issue so it doesn't depend on external hosts).

@aytimothy
Copy link

aytimothy commented May 4, 2020

Okay, there's no point in posting a rosbag, because there's literally nothing to report (the rosbag file is empty), besides it saying "topic is not used" in the console even after started.

But what seems to be happening is that after it dies the first time, roslaunch (or something) starts it up again a few seconds later, and everything works fine. So, for this second launch, I doubt it's related to this. I think that crash dump file might be more useful than grabbing an empty rosbag.

As for reproduction, I managed to reproduce it by literally flashing a new SD card, grabbing Ubuntu Server, setting up ROS, installing the driver and then running it. What's odd is that it sometimes happens on a Raspberry Pi 3, but always on a Raspberry Pi 4.

@JWhitleyWork
Copy link
Collaborator

@aytimothy Can you please test to see if the issue is resolved now that #526 is merged into Melodic?

@awesomebytes
Copy link

@aytimothy Can you try to record a rosbag with having visualize=false (so some image from the video_stream_opencv driver gets published) and try to start image_view with the rosbag playing to see if it crashes? Just to confirm that it isn't related somehow to the format of the image published. If it would crash image_view it would be a perfect test case.

But what seems to be happening is that after it dies the first time, roslaunch (or something) starts it up again a few seconds later, and everything works fine.

I don't know what may cause that behaviour. The launchfiles from video_stream_opencv don't contain a respawn=true value. There is also an optional parameter reopen_on_read_failure on the dynamic reconfigure, but it's also False by default. That's all I can think that may do something of that nature.

I admit that if this issue has to do with some kind of timing/racing condition issue of a driver starting to advertise images and image_view trying to connect/callback/some_other_behaviour the rosbag will be useless. But if it's related in some way with the type of data contained in the image (which both reports come from video_stream_opencv so they are generated with the same code) it should be reproducible with a rosbag. Maybe the first image published has some issue? Dunno, just trying to help.

@JWhitleyWork
Copy link
Collaborator

@awesomebytes The visualize parameter doesn't exist in image_view and it never should have, IMO. The image_view nodelet is not intended as an image processor - there are plenty of other nodelets in this stack for that purpose - it is intended only as an "image viewer." It should produce a GUI window which displays images from a given topic and that should be it's only purpose. If some minor image processing is necessary to achieve that goal then it can be done internally but the images that are processed therein should not be published to a topic lest it be misused as an "image processing" node.

@awesomebytes
Copy link

@JWhitleyWork the visualize parameter exists in the launchfiles from video_stream_opencv. As I believe we were having some kind of communication issue I was more detailed with the explanation of how and why to record a rosbag that may contain data that may trigger the crash in image_view.

@JWhitleyWork
Copy link
Collaborator

@awesomebytes Thanks for the clarification.

@hoonkai
Copy link

hoonkai commented May 17, 2020

Have you tried recording a short rosbag of the image_raw camera_info and maybe image_raw/compressed topics and then trying to run image_view playing this rosbag? If it crashes that way, it's a very easy way for developers to reproduce the issue and fix it. (And the rosbag can be attached to the comment of the issue so it doesn't depend on external hosts).

@awesomebytes Hi I'm having the same issue. I've tried recording a rosbag as per your advice, but I get an error after 200 msgs:

[ERROR] [1589731616.096380328]: Could not capture frame
[ERROR] [1589731616.129171038]: Could not capture frame
[ERROR] [1589731616.162531012]: Could not capture frame
[ERROR] [1589731616.195890605]: Could not capture frame
[ERROR] [1589731616.229178206]: Could not capture frame

I've attached a rosbag of 30 msgs and the original mp4 here:
small.mp4.zip
test.bag.zip

Running image_view on the rosbag's /videofile/image_raw as input gives an immediate seg fault.

rosrun image_view image_view image:=/videofile/image_raw
[ INFO] [1589732135.983422221]: Initializing nodelet with 4 worker threads.
[ INFO] [1589732136.055495327]: Using transport "raw"
Segmentation fault (core dumped)

I'm on melodic and Ubuntu 18.04.

@aytimothy
Copy link

@aytimothy Can you please test to see if the issue is resolved now that #526 is merged into Melodic?

I'll take a look see.

@awesomebytes
Copy link

@hoonkai Thanks a lot for reporting and attaching the rosbag! I hope this is helpful for the developers :)
I'll look into the Could not capture frame error when I have some free time.

@hoonkai
Copy link

hoonkai commented May 18, 2020

@awesomebytes Thanks. Can you upload a working mp4 for me to test out video_stream_opencv + image_view? I've tried 5 different mp4s but none of them works and they all crash in the same fashion.

@hoonkai
Copy link

hoonkai commented May 18, 2020

@aytimothy Can you please test to see if the issue is resolved now that #526 is merged into Melodic?

That fixed it for me!

@awesomebytes
Copy link

@awesomebytes Thanks. Can you upload a working mp4 for me to test out video_stream_opencv + image_view? I've tried 5 different mp4s but none of them works and they all crash in the same fashion.

The mp4 found in video_stream_opencv was working I thought, up until your feedback. I can't take a look right now, but I'll do!

@JWhitleyWork
Copy link
Collaborator

@hoonkai Please pull master and test. Once you've verified that the issue is resolved, I'll make a new release for Melodic.

@JWhitleyWork
Copy link
Collaborator

@aytimothy Can you please test to see if the issue is resolved now that #526 is merged into Melodic?

That fixed it for me!

Awesome. I'll make release 1.15.0 for melodic now that includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants