PRBonn / rangenet_lib

Inference module for RangeNet++ (milioto2019iros, chen2019iros)
MIT License
309 stars 72 forks source link

Unable to load example #22

Closed Spartacus782 closed 4 years ago

Spartacus782 commented 4 years ago

Hi,

Thanks for sharing your code, really excited to see it working, but I'm having the following issue...

./devel/lib/rangenet_lib/infer -p /home/stucky/catkin_ws2/src/darknet53 -s /home/stucky/catkin_ws2/src/rangenet_lib/example/000000.bin

scan: /home/stucky/catkin_ws2/src/rangenet_lib/example/000000.bin path: /home/stucky/catkin_ws2/src/darknet53/ verbose: 0

Setting verbosity to: false Trying to open model Trying to deserialize previously stored: /home/stucky/catkin_ws2/src/darknet53//model.trt Could not deserialize TensorRT engine. Generating from sratch... This may take a while... Trying to generate trt engine from : /home/stucky/catkin_ws2/src/darknet53//model.onnx Segmentation fault (core dumped)

Any help would be appreciated.

Thanks!

Chen-Xieyuanli commented 4 years ago

Hey @Spartacus782,

Thank you for using our code.

This issue looks quite similar to #5. Could you please have a look there?

Spartacus782 commented 4 years ago

Thanks for the quick response

I looked at #5 and mine seems different from that one. In my error, it does not try the modeling. The core segmentation fault happens immediately and the program exits. Program exits in less than a second. Per some of the other threads I tried decreasing the min and max workspace sizes and the same error occured.

Would a stack trace help? I will include it below

$ valgrind -v ./devel/lib/rangenet_lib/infer -p /home/stucky/catkin_ws/src/darknet53 -s /home/stucky/catkin_ws/src/rangenet_lib/example/000000.bin --verbose ==18406== Memcheck, a memory error detector ==18406== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==18406== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==18406== Command: ./devel/lib/rangenet_lib/infer -p /home/stucky/catkin_ws/src/darknet53 -s /home/stucky/catkin_ws/src/rangenet_lib/example/000000.bin --verbose ==18406== --18406-- Valgrind options: --18406-- -v --18406-- Contents of /proc/version: --18406-- Linux version 4.15.0-76-generic (buildd@lgw01-amd64-023) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)) #86~16.04.1-Ubuntu SMP Mon Jan 20 11:02:50 UTC 2020 --18406-- --18406-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi --18406-- Page sizes: currently 4096, max supported 4096 --18406-- Valgrind library directory: /usr/lib/valgrind --18406-- Reading syms from /home/stucky/catkin_ws/devel/.private/rangenet_lib/lib/rangenet_lib/infer --18406-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so --18406-- Considering /lib/x86_64-linux-gnu/ld-2.23.so .. --18406-- .. CRC mismatch (computed 10d8ea02 wanted 4fdda1aa) --18406-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so .. --18406-- .. CRC is valid --18406-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux --18406-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. --18406-- .. CRC mismatch (computed eea41ea9 wanted 2009db78) --18406-- object doesn't have a symbol table --18406-- object doesn't have a dynamic symbol table --18406-- Scheduler: using generic scheduler lock implementation. --18406-- Reading suppressions file: /usr/lib/valgrind/default.supp ==18406== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-18406-by-stucky-on-??? ==18406== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-18406-by-stucky-on-??? ==18406== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-18406-by-stucky-on-??? ==18406== ==18406== TO CONTROL THIS PROCESS USING vgdb (which you probably ==18406== don't want to do, unless you know exactly what you're doing, ==18406== or are doing some strange experiment): ==18406== /usr/lib/valgrind/../../bin/vgdb --pid=18406 ...command... ==18406== ==18406== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==18406== /path/to/gdb ./devel/lib/rangenet_lib/infer ==18406== and then give GDB the following command ==18406== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=18406 ==18406== --pid is optional if only one valgrind process is running ==18406== --18406-- REDIR: 0x401cf10 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809e181 (???) --18406-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so --18406-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. --18406-- .. CRC mismatch (computed 2567ccf6 wanted 49420590) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so --18406-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. --18406-- .. CRC mismatch (computed 0e27c9a8 wanted ac585421) --18406-- object doesn't have a symbol table ==18406== WARNING: new redirection conflicts with existing -- ignoring it --18406-- old: 0x0401cf10 (strlen ) R-> (0000.0) 0x3809e181 ??? --18406-- new: 0x0401cf10 (strlen ) R-> (2007.0) 0x04c31020 strlen --18406-- REDIR: 0x401b860 (ld-linux-x86-64.so.2:index) redirected to 0x4c30bc0 (index) --18406-- REDIR: 0x401ba80 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c320d0 (strcmp) --18406-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c35270 (mempcpy) --18406-- Reading syms from /home/stucky/catkin_ws/devel/.private/rangenet_lib/lib/librangenet_lib.so --18406-- Reading syms from /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_viz3.so.3.3.1 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_core3.so.3.3.1 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 --18406-- Considering /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 .. --18406-- .. CRC mismatch (computed eb112249 wanted d0509bc9) --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libgcc_s.so.1 --18406-- Considering /lib/x86_64-linux-gnu/libgcc_s.so.1 .. --18406-- .. CRC mismatch (computed b9a68419 wanted 29d51b00) --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so --18406-- Considering /lib/x86_64-linux-gnu/libc-2.23.so .. --18406-- .. CRC mismatch (computed 10016417 wanted 1f868c97) --18406-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so .. --18406-- .. CRC is valid --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libyaml-cpp.so.0.5.2 --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libpthread-2.23.so --18406-- Considering /usr/lib/debug/.build-id/b1/7c21299099640a6d863e423d99265824e7bb16.debug .. --18406-- .. build-id is valid --18406-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.23.so --18406-- Considering /lib/x86_64-linux-gnu/libdl-2.23.so .. --18406-- .. CRC mismatch (computed ca8e05bc wanted c502f875) --18406-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.23.so .. --18406-- .. CRC is valid --18406-- Reading syms from /lib/x86_64-linux-gnu/librt-2.23.so --18406-- Considering /lib/x86_64-linux-gnu/librt-2.23.so .. --18406-- .. CRC mismatch (computed bbc6ed8b wanted 6e62fb7a) --18406-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/librt-2.23.so .. --18406-- .. CRC is valid --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libnvinfer.so.5.1.2 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libnvonnxparser.so.0.1.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libnvonnxparser_runtime.so.0.1.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libm-2.23.so --18406-- Considering /lib/x86_64-linux-gnu/libm-2.23.so .. --18406-- .. CRC mismatch (computed d1bcd7c2 wanted c6824701) --18406-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.23.so .. --18406-- .. CRC is valid --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkInteractionStyle-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingLOD-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkIOPLY-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkIOGeometry-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersTexture-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkIOExport-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGL-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkIOImage-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkIOCore-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingFreeType-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingCore-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersExtraction-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkImagingCore-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersSources-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersGeneral-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersCore-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonExecutionModel-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonTransforms-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonMath-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libz.so.1.2.8 --18406-- object doesn't have a symbol table ==18406== Warning: set address range perms: large range [0x15f7d000, 0x2dfcd000) (defined) --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libcudnn.so.7.5.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libcublas.so.10.2.1.243 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudart.so.10.1.243 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersModeling-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonMisc-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1.7.2 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonSystem-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtksys-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PS-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingLabel-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/libgl2ps.so.0.0.0 --18406-- Considering /usr/lib/libgl2ps.so.0.0.0 .. --18406-- .. CRC mismatch (computed 48d73f16 wanted 4c1ed255) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkRenderingContext2D-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersGeometry-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/nvidia-418/libGL.so.418.87.00 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkImagingHybrid-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 --18406-- Considering /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 .. --18406-- .. CRC mismatch (computed 2d6b0194 wanted c4b33c13) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2 --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libpng12.so.0.54.0 --18406-- Considering /lib/x86_64-linux-gnu/libpng12.so.0.54.0 .. --18406-- .. CRC mismatch (computed 6f238d5c wanted 8f335665) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkmetaio-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkDICOMParser-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkftgl-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonColor-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkCommonComputationalGeometry-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkFiltersStatistics-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libcublasLt.so.10.2.1.243 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/nvidia-418/tls/libnvidia-tls.so.418.87.00 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/nvidia-418/libnvidia-glcore.so.418.87.00 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 --18406-- Considering /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 .. --18406-- .. CRC mismatch (computed b483887a wanted 38c83e44) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/liblzma.so.5.0.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libjbig.so.0 --18406-- Considering /usr/lib/x86_64-linux-gnu/libjbig.so.0 .. --18406-- .. CRC mismatch (computed 62ceb709 wanted f6cb0ad8) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkImagingFourier-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libvtkalglib-6.2.so.6.2.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 --18406-- Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 .. --18406-- .. CRC mismatch (computed 256f5df8 wanted 5d40ac88) --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0 --18406-- object doesn't have a symbol table --18406-- Reading syms from /lib/x86_64-linux-gnu/libuuid.so.1.3.0 --18406-- object doesn't have a symbol table --18406-- REDIR: 0x6d22a00 (libc.so.6:strcasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d1e280 (libc.so.6:strcspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d24cf0 (libc.so.6:strncasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d206f0 (libc.so.6:strpbrk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d20a80 (libc.so.6:strspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d2214b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d1e160 (libc.so.6:strcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d221b0 (libc.so.6:memset) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d21bb0 (libc.so.6:bcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d1ccd0 (libc.so.6:strcmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6da9210 (libc.so.6:memcpy_chk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d273f0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d20400 (libc.so.6:rindex) redirected to 0x4c308a0 (rindex) --18406-- REDIR: 0x6d17130 (libc.so.6:malloc) redirected to 0x4c2db20 (malloc) --18406-- REDIR: 0x6788e60 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x4c2e080 (operator new(unsigned long)) --18406-- REDIR: 0x6de0ea0 (libc.so.6:memcpy_avx_unaligned) redirected to 0x4c324a0 (memcpy@@GLIBC_2.14) --18406-- REDIR: 0x6786f10 (libstdc++.so.6:operator delete(void)) redirected to 0x4c2f1e0 (operator delete(void)) --18406-- REDIR: 0x6e01430 (libc.so.6:memcmp_sse4_1) redirected to 0x4c33cd0 (memcmp_sse4_1) --18406-- REDIR: 0x6d1e720 (libc.so.6:strlen) redirected to 0x4c30f60 (strlen) --18406-- REDIR: 0x6d223b0 (libc.so.6:GI_mempcpy) redirected to 0x4c34fa0 (__GI_mempcpy) --18406-- REDIR: 0x6d1eb70 (libc.so.6:GI_strncmp) redirected to 0x4c31710 (GI_strncmp) --18406-- REDIR: 0x6d21bf0 (libc.so.6:__GI_memcmp) redirected to 0x4c33b90 (GI_memcmp) --18406-- REDIR: 0x6d32570 (libc.so.6:strcmp_sse2_unaligned) redirected to 0x4c31f90 (strcmp) --18406-- REDIR: 0x6788f10 (libstdc++.so.6:operator new[](unsigned long)) redirected to 0x4c2e7a0 (operator new[](unsigned long)) --18406-- REDIR: 0x6de09b0 (libc.so.6:memmove_avx_unaligned) redirected to 0x4c32230 (memcpy@GLIBC_2.2.5) --18406-- REDIR: 0x6d17d10 (libc.so.6:calloc) redirected to 0x4c2faa0 (calloc) --18406-- REDIR: 0x6d389d0 (libc.so.6:strcpy_sse2_unaligned) redirected to 0x4c31040 (strcpy) --18406-- REDIR: 0x6786f40 (libstdc++.so.6:operator delete) redirected to 0x4c2f6e0 (operator delete) --18406-- REDIR: 0x6e05970 (libc.so.6:memset_avx2) redirected to 0x4c344c0 (memset) --18406-- REDIR: 0x6d174f0 (libc.so.6:free) redirected to 0x4c2ed80 (free) --18406-- REDIR: 0x6d203c0 (libc.so.6:strncpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d39000 (libc.so.6:strncpy_sse2_unaligned) redirected to 0x4c31570 (strncpy_sse2_unaligned) --18406-- REDIR: 0x6d29760 (libc.so.6:strchrnul) redirected to 0x4c34da0 (strchrnul) --18406-- REDIR: 0x6d176c0 (libc.so.6:realloc) redirected to 0x4c2fce0 (realloc) --18406-- REDIR: 0x6d1a600 (libc.so.6:posix_memalign) redirected to 0x4c300a0 (posix_memalign) --18406-- REDIR: 0x401ddc0 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4c342c0 (stpcpy) --18406-- REDIR: 0x6ddd980 (libc.so.6:strcasecmp_avx) redirected to 0x4c31860 (strcasecmp) --18406-- REDIR: 0x6d1c880 (libc.so.6:strcat) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d3b7f0 (libc.so.6:strcat_sse2_unaligned) redirected to 0x4c30c00 (strcat) --18406-- REDIR: 0x6d1ca80 (libc.so.6:index) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d1cab0 (libc.so.6:GI_strchr) redirected to 0x4c30a00 (__GI_strchr) --18406-- REDIR: 0x6d21060 (libc.so.6:GI_strstr) redirected to 0x4c354d0 (strstr_sse2) --18406-- REDIR: 0x6d27470 (libc.so.6:__GI_memcpy) redirected to 0x4c32b00 (GI_memcpy) --18406-- REDIR: 0x6d21860 (libc.so.6:memchr) redirected to 0x4c32170 (memchr) --18406-- REDIR: 0x6d21630 (libc.so.6:strstr) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d3d070 (libc.so.6:strstr_sse2_unaligned) redirected to 0x4c35460 (strstr) --18406-- REDIR: 0x6d29550 (libc.so.6:rawmemchr) redirected to 0x4c34dd0 (rawmemchr) --18406-- REDIR: 0x6d21ff0 (libc.so.6:GI_memmove) redirected to 0x4c347e0 (GI_memmove) --18406-- REDIR: 0x6d1cd10 (libc.so.6:__GI_strcmp) redirected to 0x4c31fe0 (GI_strcmp) --18406-- REDIR: 0x6d24d60 (libc.so.6:GI___strncasecmp_l) redirected to 0x4c31e90 (GI___strncasecmp_l)

scan: /home/stucky/catkin_ws/src/rangenet_lib/example/000000.bin path: /home/stucky/catkin_ws/src/darknet53/ verbose: 1

Setting verbosity to: false Trying to open model Trying to deserialize previously stored: /home/stucky/catkin_ws/src/darknet53/model.trt Could not deserialize TensorRT engine. Generating from sratch... This may take a while... Trying to generate trt engine from : /home/stucky/catkin_ws/src/darknet53/model.onnx --18406-- Reading syms from /usr/lib/x86_64-linux-gnu/libcuda.so.418.87.00 --18406-- object doesn't have a symbol table --18406-- Reading syms from /usr/lib/nvidia-418/libnvidia-fatbinaryloader.so.418.87.00 --18406-- object doesn't have a symbol table --18406-- REDIR: 0x6d22850 (libc.so.6:stpcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d1eae0 (libc.so.6:strncat) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d1eb20 (libc.so.6:strncmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6d22330 (libc.so.6:mempcpy) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper) --18406-- REDIR: 0x6de1240 (libc.so.6:mempcpy_avx_unaligned) redirected to 0x4c34eb0 (mempcpy) --18406-- Discarding syms at 0x3e5c9230-0x3e8d7e98 in /usr/lib/x86_64-linux-gnu/libcuda.so.418.87.00 due to munmap() --18406-- Discarding syms at 0x3d104b80-0x3d1346c8 in /usr/lib/nvidia-418/libnvidia-fatbinaryloader.so.418.87.00 due to munmap() ==18406== Invalid read of size 8 ==18406== at 0x4E5CA23: rangenet::segmentation::NetTensorRT::generateEngine(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (netTensorRT.cpp:506) ==18406== by 0x4E5EC78: rangenet::segmentation::NetTensorRT::NetTensorRT(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (netTensorRT.cpp:53) ==18406== by 0x4E5BE16: rangenet::segmentation::make_net(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (selector.cpp:46) ==18406== by 0x404F2C: main (infer.cpp:93) ==18406== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==18406== ==18406== ==18406== Process terminating with default action of signal 11 (SIGSEGV) ==18406== Access not within mapped region at address 0x0 ==18406== at 0x4E5CA23: rangenet::segmentation::NetTensorRT::generateEngine(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (netTensorRT.cpp:506) ==18406== by 0x4E5EC78: rangenet::segmentation::NetTensorRT::NetTensorRT(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (netTensorRT.cpp:53) ==18406== by 0x4E5BE16: rangenet::segmentation::make_net(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (selector.cpp:46) ==18406== by 0x404F2C: main (infer.cpp:93) ==18406== If you believe this happened as a result of a stack ==18406== overflow in your program's main thread (unlikely but ==18406== possible), you can try to increase the size of the ==18406== main thread stack using the --main-stacksize= flag. ==18406== The main thread stack size used in this run was 8388608. Platform ==18406== ==18406== HEAP SUMMARY: ==18406== in use at exit: 3,489,552 bytes in 37,856 blocks ==18406== total heap usage: 66,596 allocs, 28,740 frees, 929,779,304 bytes allocated ==18406== ==18406== Searching for pointers to 37,856 not-freed blocks ==18406== Checked 10,693,528 bytes ==18406== ==18406== LEAK SUMMARY: ==18406== definitely lost: 0 bytes in 0 blocks ==18406== indirectly lost: 0 bytes in 0 blocks ==18406== possibly lost: 307,455 bytes in 2 blocks ==18406== still reachable: 3,182,097 bytes in 37,854 blocks ==18406== of which reachable via heuristic: ==18406== stdstring : 76,664 bytes in 1,011 blocks ==18406== suppressed: 0 bytes in 0 blocks ==18406== Rerun with --leak-check=full to see details of leaked memory ==18406== ==18406== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ==18406== ==18406== 1 errors in context 1 of 1: ==18406== Invalid read of size 8 ==18406== at 0x4E5CA23: rangenet::segmentation::NetTensorRT::generateEngine(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (netTensorRT.cpp:506) ==18406== by 0x4E5EC78: rangenet::segmentation::NetTensorRT::NetTensorRT(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) (netTensorRT.cpp:53) ==18406== by 0x4E5BE16: rangenet::segmentation::make_net(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) (selector.cpp:46) ==18406== by 0x404F2C: main (infer.cpp:93) ==18406== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==18406== ==18406== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) Segmentation fault (core dumped)

Spartacus782 commented 4 years ago

I think I have resolved all the issues. Still not sure exactly what the issue was but it was install related. Reinstalled the cuda/tensorRT stack again and it worked this time. Thanks for the help!

ojoo432 commented 4 years ago

Hi @Spartacus782 ~ I am having the same problem now. Which Cuda、TensorRT、Ubuntu version are you using, I am using cuda 10.0 (local deb), TensorRT 5.1.5.0 GA for Ubuntu 1604 and CUDA 10.0 DEB local repo packages. But there is still the problem.

Spartacus782 commented 4 years ago

I think cuda 10.1 is the prereq for TensorRT 5.1. I also used RC, not sure if that matters. I started from scratch ripping everything out down to the nvidia drivers and following the install directions super closely. I also avoided installing anything that wasn't strictly necessary.

Hi @Spartacus782 ~ I am having the same problem now. Which Cuda、TensorRT、Ubuntu version are you using, I am using cuda 10.0 (local deb), TensorRT 5.1.5.0 GA for Ubuntu 1604 and CUDA 10.0 DEB local repo packages. But there is still the problem.