3DiVi / nuitrack-sdk

Nuitrack™ is a 3D tracking middleware developed by 3DiVi Inc.

Home Page:https://nuitrack.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation Fault

Albert950207 opened this issue · comments

Hi, I am new to the nuitrack-sdk

I followed the installation instructions to install nuitrack sdk on ubuntu 20.04 however after I installed and run nuitrack on terminal I get this error:

Screenshot from 2021-09-17 20-14-26

Does anyone know what happened ?

Thanks!

Hi @Albert950207,

Please try to execute the nuitrack_sample application and send us the output.

Hi @VadimAspirin

Thank you for your replying. Where is nuitrack_sample application is ?

@Albert950207 , you can run nuitrack_sample from the command line as the nuitrack application (just in case: /usr/bin/nuitrack_sample).

@VadimAspirin I run nuitrack_sample from the command line and I get this error:
nuitrack_sample: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory

@Albert950207 please try to install freeglut3 and libbluetooth3 packages and execute the nuitrack app again: apt install freeglut3 libbluetooth3

@VadimAspirin I have installed freeglut3 and libbluetooth3 but after I run nuitrack_sample, I just get a flash of this application and then still get the error:
Screenshot from 2021-09-29 17-23-03

@Albert950207, please advise, what Nuitrack version and RGBD-sensor model do you use?

If you execute nuitrack_device_api_sample and post the output here it will be very helpful too.

@VadimAspirin My RGBD-sensor is intel D435i and I dont know what my version of Nuitrack is but it could be the latest one because I just download it from repository of installation Nuitrack. I dont know how to check the version because I cant run nuitrack, nuitrack_sample or even nuitrack_device_api_sample. All of them give me an same error: Segmentation fault.

Btw, I install and run nuitrack in my Windows operating system with same computer and same RGBD-sensor but when I run some samples in nuitrack I got error code 2. I check it on google and google told me that I need to make my intel sensor connected as usb 3.2(mine is 2.1). Can nuitrack work when intel sensor connected as usb 2.1?

@Albert950207, Nuitrack only supports Intel Realsense sensors when Intel Realsense is connected to USB 3 (as Intel recommends).

@VadimAspirin I have the same problem on Ubuntu 20.04 . I opened this issue back in May as well but no solution as of yet? I get a segmentation fault when running nuitrack, nuitrack_sample or even nuitrack_device_api_sample. I'm using the latest download.

Below is a backtrace from /usr/bin/QtNuitrackLicense

(gdb) bt
#0  _IO_fgets (buf=buf@entry=0x7fffd53b8250 "", n=n@entry=255, fp=fp@entry=0x0)
    at iofgets.c:47
#1  0x00007fff6107b16b in fgets (__stream=0x0, __n=255, __s=0x7fffd53b8250 "")
    at /usr/include/x86_64-linux-gnu/bits/stdio2.h:263
#2  list_video_devices(bool, bool) (rescan=false, silent=true)
    at /home/voxel/5voxel/code/0529/3DCameraAPI/3DCameraAPI/plat/linux/../../../3DCameraAPI/src/3DCameraAPI/v4l2_wrapper.cpp:1544
#3  0x00007fff6107c29d in get_device_id_from_pid_vid(char const*, char const*)
    (pid=pid@entry=0x7fff6213a705 <productList+5> "182d", vid=vid@entry=0x7fff6213a700 <productList> "0b05")
    at /home/voxel/5voxel/code/0529/3DCameraAPI/3DCameraAPI/plat/linux/../../../3DCameraAPI/src/3DCameraAPI/v4l2_wrapper.cpp:1590
#4  0x00007fff610684f4 in deviceSensorAPI::scanVideoCamera(CameraDevInfo*)
    (this=0x7fffc80bd390, cameraDevInfo=0x7fffc80a6d20)
    at /home/voxel/5voxel/code/0529/3DCameraAPI/3DCameraAPI/plat/linux/../../../3DCameraAPI/src/3DCameraAPI/3DCameraAPI.cpp:2445
#5  0x00007fff61059ea6 in SenDuckDriver::initialize(void (*)(OniDeviceInfo const*, void*), void (*)(OniDeviceInfo const*, void*), void (*)(OniDeviceInfo const*, int, void*), void*) ()
    at /usr/local/lib/nuitrack/OpenNI2/Drivers/libSenDuck.so
#6  0x00007fffe9380f30 in oni::implementation::DeviceDriver::initialize() ()
    at /usr/local/lib/nuitrack/libOpenNI2.so
#7  0x00007fffe9378f17 in oni::implementation::Context::loadLibraries() ()
--Type <RET> for more, q to quit, c to continue without paging--
   sr/local/lib/nuitrack/libOpenNI2.so
#8  0x00007fffe937add6 in oni::implementation::Context::initialize() () at /usr/local/lib/nuitrack/libOpenNI2.so
#9  0x00007fffda1025c1 in  () at /usr/etc/nuitrack/middleware/libNuitrackModule.so
#10 0x00007fffda0eb6fc in  () at /usr/etc/nuitrack/middleware/libNuitrackModule.so
#11 0x00007ffff5e4a21d in tdv::nuitrack::middleware::Core::getDeviceList() () at /usr/local/lib/nuitrack/libmiddleware.so
#12 0x00007ffff7a953c6 in tdv::nuitrack::Nuitrack::getDeviceList() () at /usr/local/lib/nuitrack/libnuitrack.so
#13 0x00007ffff7ab80c2 in nuitrack_GetDeviceList () at /usr/local/lib/nuitrack/libnuitrack.so
#14 0x000000000040ffbc in tdv::nuitrack::Nuitrack::getDeviceList() ()
#15 0x000000000040dc77 in QtConcurrent::StoredFunctorCall0<std::vector<std::shared_ptr<tdv::nuitrack::device::NuitrackDevice>, std::allocator<std::shared_ptr<tdv::nuitrack::device::NuitrackDevice> > >, std::vector<std::shared_ptr<tdv::nuitrack::device::NuitrackDevice>, std::allocator<std::shared_ptr<tdv::nuitrack::device::NuitrackDevice> > > (*)()>::runFunctor() ()
#16 0x000000000041165b in QtConcurrent::RunFunctionTask<std::vector<std::shared_ptr<tdv::nuitrack::device::NuitrackDevice>, std::allocator<std::shared_ptr<tdv::nuitrack::device::NuitrackDevice> > > >::run() ()
#17 0x00007ffff688ff82 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff688c9d2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ffff63c3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#20 0x00007ffff64ff293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Hi @jimruxton, if I understood correctly this is your issue on the Nuitrack community forum? According to the information I have, removing libSenDuck.so from the /usr/local/lib/nuitrack/OpenNI2/Drivers/ folder helped solve your segmentation fault.

Hi @Albert950207,

How are you? Has your issue been solved?
Would be great if you could provide some reply/feedback, we will be ready to help.
Thanks.