Intermodalics / tango_ros

ROS related software for Tango
Apache License 2.0
67 stars 22 forks source link

App crash when "unreliable" is checked in rviz for an image stream #376

Open PerrineAguiar opened 7 years ago

PerrineAguiar commented 7 years ago

When "unreliable" is checked UDP transport is used.

PerrineAguiar commented 7 years ago

@meyerj FYI

meyerj commented 7 years ago

Thanks for opening the issue!

Here is the related adb logcat output, even if the backtrace does not seem to be very useful:

--------- beginning of crash
08-23 21:58:27.576 11674 11780 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1c in tid 11780 (Thread-161)
08-23 21:58:27.641   510   510 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-23 21:58:27.641   510   510 F DEBUG   : Build fingerprint: 'Lenovo/phinny_na/PB2PRO:6.0.1/MMB29M/PB2-690Y_S200021_161202:userdebug/release-keys'
08-23 21:58:27.641   510   510 F DEBUG   : Revision: '0'
08-23 21:58:27.641   510   510 F DEBUG   : ABI: 'arm'
08-23 21:58:27.642   510   510 F DEBUG   : pid: 11674, tid: 11780, name: Thread-161  >>> eu.intermodalics.tango_ros_streamer <<<
08-23 21:58:27.642   510   510 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1c
08-23 21:58:27.652   510   510 I debuggerd: type=1400 audit(0.0:240): avc: denied { read } for name="libtango_client_api.so" dev="mmcblk0p48" ino=516904 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1
08-23 21:58:27.652   510   510 I debuggerd: type=1400 audit(0.0:241): avc: denied { open } for path="/data/data/com.google.tango/libfiles/armeabi-v7a/libtango_client_api.so" dev="mmcblk0p48" ino=516904 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1
08-23 21:58:27.652   510   510 I debuggerd: type=1400 audit(0.0:242): avc: denied { getattr } for path="/data/data/com.google.tango/libfiles/armeabi-v7a/libtango_client_api.so" dev="mmcblk0p48" ino=516904 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1
08-23 21:58:27.698   510   510 F DEBUG   :     r0 d80eb198  r1 0000001c  r2 aae6dcb0  r3 00000000
08-23 21:58:27.699   510   510 F DEBUG   :     r4 0000001c  r5 d80eb198  r6 dbf98b84  r7 00000000
08-23 21:58:27.699   510   510 F DEBUG   :     r8 d80eb1e4  r9 d80eb2c0  sl 000005dc  fp dbf993d0
08-23 21:58:27.699   510   510 F DEBUG   :     ip dbf98bd8  sp d80eb178  lr dbb1a10d  pc dbaf7f26  cpsr 000f0030
08-23 21:58:27.705   489  4983 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.710   510   510 F DEBUG   : 
08-23 21:58:27.710   510   510 F DEBUG   : backtrace:
08-23 21:58:27.710   510   510 F DEBUG   :     #00 pc 00237f26  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN5boost9function1IvRKNS_10shared_ptrIN3ros9TransportEEEE11move_assignERS7_+9)
08-23 21:58:27.710   510   510 F DEBUG   :     #01 pc 0025a109  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so
08-23 21:58:27.710   510   510 F DEBUG   :     #02 pc 0025ac8d  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN3ros10Connection10initializeERKN5boost10shared_ptrINS_9TransportEEEbRKNS1_8functionIFbRKNS2_IS0_EERKNS_6HeaderEEEE+144)
08-23 21:58:27.710   510   510 F DEBUG   :     #03 pc 00235103  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN3ros17ConnectionManager24udprosIncomingConnectionERKN5boost10shared_ptrINS_12TransportUDPEEERNS_6HeaderE+146)
08-23 21:58:27.710   510   510 F DEBUG   :     #04 pc 0022645f  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN3ros12TopicManager12requestTopicERKSsRN6XmlRpc11XmlRpcValueES5_+2442)
08-23 21:58:27.710   510   510 F DEBUG   :     #05 pc 00227289  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN3ros12TopicManager20requestTopicCallbackERN6XmlRpc11XmlRpcValueES3_+68)
08-23 21:58:27.710   510   510 F DEBUG   :     #06 pc 0022170d  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN5boost6detail8function26void_function_obj_invoker2INS_3_bi6bind_tIvNS_4_mfi3mf2IvN3ros12TopicManagerERN6XmlRpc11XmlRpcValueESB_EENS3_5list3INS3_5valueIPS8_EENS_3argILi1EEENSH_ILi2EEEEEEEvSB_SB_E6invokeERNS1_15function_bufferESB_SB_+16)
08-23 21:58:27.710   510   510 F DEBUG   :     #07 pc 00268965  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZNK5boost9function2IvRN6XmlRpc11XmlRpcValueES3_EclES3_S3_+16)
08-23 21:58:27.711   510   510 F DEBUG   :     #08 pc 0029bf79  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN6XmlRpc22XmlRpcServerConnection13executeMethodERKSsRNS_11XmlRpcValueES4_+24)
08-23 21:58:27.711   510   510 F DEBUG   :     #09 pc 0029cc25  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN6XmlRpc22XmlRpcServerConnection14executeRequestEv+56)
08-23 21:58:27.711   510   510 F DEBUG   :     #10 pc 0029bd27  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN6XmlRpc22XmlRpcServerConnection13writeResponseEv+18)
08-23 21:58:27.711   510   510 F DEBUG   :     #11 pc 0029be4f  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN6XmlRpc22XmlRpcServerConnection11handleEventEj+50)
08-23 21:58:27.711   510   510 F DEBUG   :     #12 pc 0029a3b5  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN6XmlRpc14XmlRpcDispatch4workEd+500)
08-23 21:58:27.711   510   510 F DEBUG   :     #13 pc 0026a499  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN3ros13XMLRPCManager16serverThreadFuncEv+192)
08-23 21:58:27.711   510   510 F DEBUG   :     #14 pc 00267bb9  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so (_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0IvN3ros13XMLRPCManagerEEENS2_5list1INS2_5valueIPS7_EEEEEEE3runEv+16)
08-23 21:58:27.711   510   510 F DEBUG   :     #15 pc 002a5f4d  /data/app/eu.intermodalics.tango_ros_streamer-1/lib/arm/libnodelet_manager.so
08-23 21:58:27.712   510   510 F DEBUG   :     #16 pc 00041823  /system/lib/libc.so (_ZL15__pthread_startPv+30)
08-23 21:58:27.712   510   510 F DEBUG   :     #17 pc 00019285  /system/lib/libc.so (__start_thread+6)
08-23 21:58:27.730   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:27.741   489  4984 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.772   489   493 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.797   489   491 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.808   489   491 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.830   489  4983 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.840   489   493 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.864   489   491 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.873   489   951 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.897   489   493 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.906   489  4984 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.930   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:27.942   489   951 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:27.973   489   493 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:28.006   489   491 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:28.039   489  4983 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:28.072   489  4984 W qdmemalloc: Gralloc using 4K chunk.
08-23 21:58:28.127   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:28.331   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:28.531   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:28.729   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:28.928   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:28.974   510   510 F DEBUG   : 
08-23 21:58:28.974   510   510 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_05
08-23 21:58:28.974   510   510 E DEBUG   : AM write failed: Broken pipe
08-23 21:58:28.977  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.985  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.985  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.986  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.987  1491  1551 I BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.988  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.991  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.993  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.994  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.994  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.994  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.997  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.997  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.997  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.997  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.997  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.997  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:28.999  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:28.999  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.000  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.002  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.005  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.005  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.008  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.008  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.008  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.008  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.015  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.015  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.015  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.042  1491 12102 W ActivityManager:   Force finishing activity eu.intermodalics.tango_ros_streamer/.activities.RunningActivity
08-23 21:58:29.046   487   487 E lowmemorykiller: Error writing /proc/11674/oom_score_adj; errno=22
08-23 21:58:29.128   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:29.146  4714  5991 E AnalyticsTracker: Each length of parameters value should less than 128 character, or will be CUT
08-23 21:58:29.320  1491  4040 D WifiService: Client connection lost with reason: 4
08-23 21:58:29.320  1491  4702 I WindowState: WIN DEATH: Window{70163d4 u0 eu.intermodalics.tango_ros_streamer/eu.intermodalics.tango_ros_streamer.activities.RunningActivity}
08-23 21:58:29.320  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.320  1491  4704 D GraphicsStats: Buffer count: 2
08-23 21:58:29.321  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.321  5744  6273 I tango   : TangoService.cc:999 Process disconnected dead listener
08-23 21:58:29.321  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.321  5744  6273 I tango   : TangoService.cc:190 ThreadLoop attempting disconnect number 6.
08-23 21:58:29.321  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.322  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.322  5744  6273 I tango   : tango_context.cc:319 TangoContext::StopRuntime() /sdcard/tango_ros_streamer/datasets/
08-23 21:58:29.322  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.322  5744  6273 W tango   : tango_image_callback.cc:213 Could not promote most recent yuv image.
08-23 21:58:29.322  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.322  5744  6273 W tango   : tango_image_callback.cc:105 Could not promote most recent fisheye image.
08-23 21:58:29.322  5744  6273 I tango   : tango_application.cc:296 TangoApplication: Stopping...
08-23 21:58:29.322  5744  6273 I tango   : tango_image_callback.cc:60 Stopping YUV callback thread.
08-23 21:58:29.322  5744  6273 I tango   : tango_image_callback.cc:62 YUV callback thread stopped.
08-23 21:58:29.322  5744  6273 I tango   : tango_image_callback.cc:64 Releasing YUV callback thread images.
08-23 21:58:29.322  1491  4652 D WifiService: releaseWifiLockLocked: WifiLock{NodeMainExecutorService type=3 binder=android.os.BinderProxy@1fa497d}
08-23 21:58:29.326  1491  1551 E WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
08-23 21:58:29.327  5744  6273 I tango   : schedule_queue_spins_thread_impl.h:95 Schedule queue tp_pose exiting with unprocessed data length 245.
08-23 21:58:29.329   589 11849 I mm-camera: module_module_set_session_data:5793max delay 2 report delay 0 retry skip 0
08-23 21:58:29.331  5744  6273 I tango   : tango_hal_device_wrapper.cc:186 HAL device wrapper calling stop.
08-23 21:58:29.331  5744  6291 D tango-hal: tango-context.cpp:Stop():356 Stop called
08-23 21:58:29.331  5744  6291 D tango-hal: tango-camera.cpp:disconnect():501 disconnect called
08-23 21:58:29.333  5744  6291 D tango-hal: tango-camera.cpp:stopStream():773 Stopped stream. Received 1294 frames from camera 3.
08-23 21:58:29.333  5744  6291 D tango-hal: tango-camera.cpp:deleteStream():585 deleteStream called
08-23 21:58:29.334   514  3755 E         : ROYALE: virtual void mms::BridgeDataReceiverMMS::stopCapture() E
08-23 21:58:29.338  5744  6273 I tango   : data_manager.cc:1090 Behind by: 1.44097 seconds, skip current frame.
08-23 21:58:29.339  1491  1551 E WallpaperManagerService: onEvent:settings_system.xml,changedFile:/data/system/users/0/settings_system.xml
08-23 21:58:29.339  1491  1551 E WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
08-23 21:58:29.344   489   489 W SurfaceFlinger: couldn't log to binary event log: overflow.
08-23 21:58:29.345  5744  6273 I tango   : data_manager.cc:1090 Behind by: 1.24444 seconds, skip current frame.
08-23 21:58:29.352  5744  6273 I tango   : data_manager.cc:1090 Behind by: 1.0398 seconds, skip current frame.
08-23 21:58:29.359  5744  6273 I tango   : data_manager.cc:1090 Behind by: 0.848836 seconds, skip current frame.
08-23 21:58:29.366   536   536 I Zygote  : Process 11674 exited due to signal (11)
08-23 21:58:29.368  5744  6273 I tango   : data_manager.cc:1090 Behind by: 0.671294 seconds, skip current frame.
08-23 21:58:29.368  1491  4719 I ActivityManager: Process eu.intermodalics.tango_ros_streamer (pid 11674) has died