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

Segmentation fault error when running on Ubuntu 20.04 #159

Open
ricardohogan opened this issue Jan 10, 2025 · 1 comment
Open

Segmentation fault error when running on Ubuntu 20.04 #159

ricardohogan opened this issue Jan 10, 2025 · 1 comment

Comments

@ricardohogan
Copy link

Hi, I cannot obtain the depth image from my Femto Bolt when running ./OBMultiStream. Then I tried to run only the ./OBDepthVIewer, I got a segmentation fault error. below are the details.

System Environment:

  • OS: Ubuntu 20.04
  • Arch: x86_64
  • RAM : 64Gb
  • GPU: GeForce RTX 4080

Device Information:

  • Model: Femto Bolt
  • Firmware Version: 1.0.9

Log Output

$ sudo ./OBDepthViewer 
[01/10 09:31:10.820096][info][1831859][Context.cpp:68] Context created with config: default config!
[01/10 09:31:10.820115][info][1831859][Context.cpp:73] Work directory=/home/solomon/Workspace/OrbbecSDK/build/bin, SDK version=v1.10.18-20250103-27bf2f6
[01/10 09:31:10.820127][info][1831859][LinuxPal.cpp:32] createObPal: create LinuxPal!
[01/10 09:31:10.822060][info][1831859][LinuxPal.cpp:166] Create PollingDeviceWatcher!
[01/10 09:31:10.822081][info][1831859][DeviceManager.cpp:15] Current found device(s): (1)
[01/10 09:31:10.822088][info][1831859][DeviceManager.cpp:24]    - Name: Femto Bolt, PID: 0x066b, SN/ID: CL8NB4300AJ, Connection: USB3.1
[01/10 09:31:10.822109][info][1831859][Pipeline.cpp:15] Try to create pipeline with default device.
[01/10 09:31:10.822142][info][1831859][FemtoBoltUvcDevice.cpp:23] FemtoBoltUvcDevice init ...
[01/10 09:31:10.822196][info][1831859][FemtoBoltUvcDevice.cpp:122] Create command start!
[01/10 09:31:10.823503][info][1831859][MSDEConverterDevice.cpp:726] Succeed to load depth engine plugin
[01/10 09:31:11.183933][info][1831859][AbstractDevice.cpp:125]  - Firmware version: 1.0.9
[01/10 09:31:11.183951][info][1831859][FemtoBoltUvcDevice.cpp:281] Create command done!
[01/10 09:31:11.183958][info][1831859][FemtoBoltUvcDevice.cpp:356] init sensor map start!
[01/10 09:31:11.183967][info][1831859][FemtoBoltUvcDevice.cpp:383] init sensor map done!
[01/10 09:31:11.184034][info][1831859][FemtoBoltUvcDevice.cpp:285] Init depth process param start!
[01/10 09:31:11.190372][info][1831859][MSDEConverterDevice.cpp:777] got nvram data succeed.
[01/10 09:31:11.487974][info][1831859][FemtoBoltUvcDevice.cpp:313] setNvramDataStreamStopFunc succeed
[01/10 09:31:11.488049][info][1831859][FemtoBoltUvcDevice.cpp:352] Init depth process param done!
[01/10 09:31:11.488658][info][1831859][FemtoBoltUvcDevice.cpp:39] FemtoBoltUvcDevice init done!
[01/10 09:31:11.488670][info][1831859][DeviceManager.cpp:150] Device created successfully! Name: Femto Bolt, PID: 0x066b, SN/ID: CL8NB4300AJ
[01/10 09:31:11.488701][info][1831859][Pipeline.cpp:47] Pipeline created with device: {name: Femto Bolt, sn: CL8NB4300AJ}, @0x5BFCB47B1540
[01/10 09:31:11.488718][info][1831859][Pipeline.cpp:188] Check and set config start!
[01/10 09:31:11.489249][info][1831859][FemtoBoltUvcDevice.cpp:483] Depth sensor has been created!
[01/10 09:31:11.489306][info][1831859][VideoSensor.cpp:384] Query stream profile! size= 14, SensorType=OB_SENSOR_DEPTH
[01/10 09:31:11.489316][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 640, height: 576, fps: 15}
[01/10 09:31:11.489321][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 1024, height: 1024, fps: 15}
[01/10 09:31:11.489324][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 1024, height: 1024, fps: 5}
[01/10 09:31:11.489332][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 640, height: 576, fps: 30}
[01/10 09:31:11.489337][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 320, height: 288, fps: 30}
[01/10 09:31:11.489342][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 640, height: 576, fps: 25}
[01/10 09:31:11.489346][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 320, height: 288, fps: 25}
[01/10 09:31:11.489350][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 320, height: 288, fps: 15}
[01/10 09:31:11.489353][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 640, height: 576, fps: 5}
[01/10 09:31:11.489357][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 320, height: 288, fps: 5}
[01/10 09:31:11.489362][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 512, height: 512, fps: 30}
[01/10 09:31:11.489366][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 512, height: 512, fps: 25}
[01/10 09:31:11.489370][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 512, height: 512, fps: 15}
[01/10 09:31:11.489375][info][1831859][VideoSensor.cpp:386]  - {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 512, height: 512, fps: 5}
[01/10 09:31:11.489383][info][1831859][Pipeline.cpp:223] Check and set config done!
[01/10 09:31:11.490360][info][1831859][Pipeline.cpp:288] Try to start streams!
[01/10 09:31:11.490393][info][1831859][VideoSensor.cpp:646] start OB_SENSOR_DEPTH stream with profile: {type: OB_STREAM_DEPTH, format: OB_FORMAT_Y16, width: 640, height: 576, fps: 15}, Backend Format: OB_FORMAT_Y16
[01/10 09:31:11.490398][info][1831859][MSDEConverterDevice.cpp:549] Start real profile,width:7680 height:434
[01/10 09:31:11.491910][info][1831876][MSDEConverterDevice.cpp:67] Depth engine got nvram data size:492168
[01/10 09:31:11.491918][info][1831876][MSDEConverterDevice.cpp:94] use dynlib load depthengine lib......
[01/10 09:31:11.595885][info][1831876][MSDEConverterDevice.cpp:105] Depth engine init succeed!
[01/10 09:31:11.595971][info][1831859][Pipeline.cpp:301] Start streams done!
[01/10 09:31:11.595977][info][1831859][Pipeline.cpp:277] Pipeline start done!
[01/10 09:31:11.696554][warning][1831859][Pipeline.cpp:377] Wait for frame timeout, you can try to increase the wait time! current timeout=100
[01/10 09:31:14.698252][warning][1831859][Pipeline.cpp:377] Wait for frame timeout, you can try to increase the wait time! current timeout=100 [**30 logs in 3001ms**]
Segmentation fault

Any help for this issue ? Thank you so much.

@ricardohogan
Copy link
Author

Additional detail, Ive tested the SDK on 4 computers : 3 x86_64 computers and 1 aarch64 jetson computer.
The 3 computers with x86_64 arch suffer from this error, while the jetson is not.

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

1 participant