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

Playback hangs on initialization step #90

Open
nordanz opened this issue Sep 25, 2024 · 0 comments
Open

Playback hangs on initialization step #90

nordanz opened this issue Sep 25, 2024 · 0 comments

Comments

@nordanz
Copy link

nordanz commented Sep 25, 2024

Describe the bug
Using playback interface or pipeline interface to replay a recording file, randomly the replay example will hang when playback or pipeline instance try to initialize. Tried with different 1.10.x versions and they all have the same issue

To Reproduce

  1. To have a same machine you can reproduce it with an AWS EC2 t4g.xlarge machine with ubuntu 24.04
  2. build the example
  3. use a recording file which contains both depth and color images

Logs
these are the logs for when it hangs

[09/25 15:17:26.567271][debug][1245][Context.cpp:30] Context creating, work_dir=
/home/ubuntu/demo
[09/25 15:17:26.567317][debug][1245][Context.cpp:49] Config file version=1.1
[09/25 15:17:26.567801][debug][1245][FrameBufferManager.cpp:23] Max global frame
 buffer size updated! size=2048.000MB
[09/25 15:17:26.567813][info][1245][Context.cpp:68] Context created with config:
 default config!
[09/25 15:17:26.567841][info][1245][Context.cpp:73] Work directory=/home/ubuntu/
demo, SDK version=v1.10.12-20240809-69b687f
[09/25 15:17:26.567849][debug][1245][DeviceManager.cpp:30] DeviceManager init ..
.
[09/25 15:17:26.567851][info][1245][LinuxPal.cpp:32] createObPal: create LinuxPa
l!
[09/25 15:17:26.568214][debug][1245][DeviceManager.cpp:34] Enable USB Device Enu
merator ...
[09/25 15:17:26.568235][debug][1245][EnumeratorLibusb.cpp:324] queryDevicesInfo 
done!
[09/25 15:17:26.568327][info][1245][LinuxPal.cpp:143] Create PollingDeviceWatche
r!
[09/25 15:17:26.568345][debug][1245][UsbDeviceEnumerator.cpp:78] No matched usb 
device found!
[09/25 15:17:26.568402][info][1245][DeviceManager.cpp:15] Current found device(s
): (0)
[09/25 15:17:26.568406][debug][1245][DeviceManager.cpp:52] DeviceManager constru
ct done!
[09/25 15:17:26.568454][info][1245][Pipeline.cpp:51] Playback Pipeline init ...
[09/25 15:17:55.508386][debug][1245][Pipeline.cpp:168] loadFrameQueueSizeConfig(
) config queue size: 10
[09/25 15:17:55.509145][debug][1245][FrameProcessingBlock.cpp:26] Block created 
with frame queue size: 10
[09/25 15:17:55.509174][debug][1245][FrameProcessingBlock.cpp:26] Block created 
with frame queue size: 10
[09/25 15:17:55.509195][debug][1245][Pipeline.cpp:227] Pipeline start() start!
[09/25 15:17:55.509202][debug][1245][Pipeline.cpp:236] start pipeline with defau
lt config
[09/25 15:17:55.509223][debug][1245][FrameProcessingBlockManager.cpp:75]  FrameP
rocessingBlockManager started, 0 blocks contained!
[09/25 15:17:55.509341][info][1245][Pipeline.cpp:277] Pipeline start done!
[09/25 15:17:55.509350][info][1245][Pipeline.cpp:411] Try to stop pipeline!
[09/25 15:17:55.509440][debug][1245][FrameProcessingBlockManager.cpp:84] FramePr
ocessingBlockManager stoped!
[09/25 15:17:55.509446][debug][1245][FrameProcessingBlockManager.cpp:20] Process
ing block list cleared!
[09/25 15:17:55.509450][info][1245][Pipeline.cpp:443] Stop pipeline done!
[09/25 15:17:55.509453][debug][1245][Pipeline.cpp:68] Pipeline deInit start!
[09/25 15:17:55.509458][info][1245][Pipeline.cpp:75] Pipeline destroyed! @0xEBE6
B0008860
[09/25 15:17:55.509599][debug][1245][Context.cpp:81] Context destroying ...
[09/25 15:17:55.509606][debug][1245][DeviceManager.cpp:56] DeviceManager destroy
 ...
[09/25 15:17:55.509611][debug][1245][DeviceManager.cpp:64] DeviceManager Destruc
tors done
[09/25 15:17:55.509829][info][1245][Context.cpp:84] Context destroyed

After 20 second or so I send a SIGTERM and I believe it should be at this line [09/25 15:17:55.508386][debug].

And here the logs for when it works

[09/25 15:18:04.189608][info][1269][Context.cpp:73] Work directory=/home/ubuntu/
demo, SDK version=v1.10.12-20240809-69b687f
[09/25 15:18:04.189616][debug][1269][DeviceManager.cpp:30] DeviceManager init ..
.
[09/25 15:18:04.189619][info][1269][LinuxPal.cpp:32] createObPal: create LinuxPa
l!
[09/25 15:18:04.189932][debug][1269][DeviceManager.cpp:34] Enable USB Device Enu
merator ...
[09/25 15:18:04.189950][debug][1269][EnumeratorLibusb.cpp:324] queryDevicesInfo 
done!
[09/25 15:18:04.190009][info][1269][LinuxPal.cpp:143] Create PollingDeviceWatche
r!
[09/25 15:18:04.190023][debug][1269][UsbDeviceEnumerator.cpp:78] No matched usb 
device found!
[09/25 15:18:04.190031][info][1269][DeviceManager.cpp:15] Current found device(s
): (0)
[09/25 15:18:04.190036][debug][1269][DeviceManager.cpp:52] DeviceManager constru
ct done!
[09/25 15:18:04.190079][info][1269][Pipeline.cpp:51] Playback Pipeline init ...
[09/25 15:18:04.193570][debug][1269][Pipeline.cpp:168] loadFrameQueueSizeConfig(
) config queue size: 10
[09/25 15:18:04.193649][debug][1269][FrameProcessingBlock.cpp:26] Block created 
with frame queue size: 10
[09/25 15:18:04.193677][debug][1269][FrameProcessingBlock.cpp:26] Block created 
with frame queue size: 10
[09/25 15:18:04.193714][debug][1269][Pipeline.cpp:227] Pipeline start() start!
[09/25 15:18:04.193723][debug][1269][Pipeline.cpp:236] start pipeline with defau
lt config
[09/25 15:18:04.193755][debug][1269][FrameProcessingBlockManager.cpp:75]  FrameP
rocessingBlockManager started, 0 blocks contained!
[09/25 15:18:04.193896][info][1269][Pipeline.cpp:277] Pipeline start done!
[09/25 15:18:04.282348][debug][1279][FrameMemoryPool.cpp:35] FrameMemoryPool cre
ated!
[09/25 15:18:04.282421][debug][1279][FrameBufferManager.hpp:65] FrameBufferManag
er created! frame type:N11libobsensor10DepthFrameE, obj addr:0xe5ff1c001f20, fra
me obj total size:0.586MB
[09/25 15:18:04.282435][debug][1279][FrameMemoryPool.cpp:60] DepthFrame bufferMa
nager created!
[09/25 15:18:04.282483][debug][1279][FrameBufferManager.cpp:35] New frame buffer
 allocated=0.586MB, total usage: allocated=0.586MB, max limit=2048.000MB
[09/25 15:18:04.282752][debug][1279][FrameProcessingBlock.cpp:26] Block created 
with frame queue size: 10
[09/25 15:18:04.282955][debug][1278][FrameBufferManager.hpp:65] FrameBufferManag
er created! frame type:N11libobsensor8FrameSetE, obj addr:0xe5ff18000b70, frame 
obj total size:0.000MB
[09/25 15:18:04.282988][debug][1278][FrameMemoryPool.cpp:92] Frameset bufferMana
ger created!
[09/25 15:18:04.283170][debug][1279][FrameBufferManager.cpp:35] New frame buffer
 allocated=0.586MB, total usage: allocated=1.173MB, max limit=2048.000MB
[09/25 15:18:04.283669][debug][1278][Pipeline.cpp:319] Frame received on pipelin
e! type=OB_FRAME_DEPTH
[09/25 15:18:04.388417][debug][1279][FrameBufferManager.cpp:35] New frame buffer
 allocated=0.586MB, total usage: allocated=1.759MB, max limit=2048.000MB
[09/25 15:18:04.388799][debug][1279][FrameBufferManager.cpp:35] New frame buffer
 allocated=0.586MB, total usage: allocated=2.346MB, max limit=2048.000MB
...

Desktop (please complete the following information):

  • OS with Version: Ubuntu 24.0.4
  • SDK Version: 1.10.x
  • Firmware version: don't use the camera
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