-
Notifications
You must be signed in to change notification settings - Fork 466
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
SDK4.2.1: SVO2 recorder hangs when enable and disable too frequently #658
Comments
Hi @MartinChowYW |
Thanks @Myzhar for coming back to me. I do not have the C++ code snippet at this moment but I am able to reproduce the same bug using the python script below: Please run the provided python script to open the zed camera and start recording e.g. "./recorder.py ${PATH_TO_SVO2_FILE}"
Changing the sleep time or the condition check on the frame_counter will the time to reproduce. I found that the shorter the sleep/frame_counter, the faster the bug will happen. Please let me know if the python script is sufficient enough, happy to draft a C++ version of it. Hope to hear you back. Cheers. |
Hi @Myzhar, please find the above python script and it would be awesome if I can hear some feedback from you. Cheers. |
It's been found that this happens to JetPack library and I've managed to reproduce it with ZedBox and another hardware platform. |
Hi @MartinChowYW |
Yes I did |
Preliminary Checks
Description
I have seen this issue from SDK 4.1 and it looks like it has not been resolved. There is a need for me to keep creating a fixed length of SVO2 recording files. I did that by calling "enableRecording" and "disableRecording" and it worked perfectly fine in SVO version one. After switching to SVO2, the SDK will hang with the below backtrack:
#0 __pthread_clockjoin_ex (threadid=281468863297792, thread_return=0x0, clockid=0, abstime=<optimized out>, block=<optimized out>) at pthread_join_common.c:145 #1 0x0000ffff92bb0230 in std::thread::join() () from /lib/aarch64-linux-gnu/libstdc++.so.6 #2 0x0000ffff93e88324 in MCAPWriter::close() () from /usr/local/zed/lib/libsl_zed.so #3 0x0000ffff93dba2c8 in sl::svorw::SVOGen2Writer::~SVOGen2Writer() () from /usr/local/zed/lib/libsl_zed.so #4 0x0000ffff93dba734 in sl::svorw::SVOGen2Writer::~SVOGen2Writer() () from /usr/local/zed/lib/libsl_zed.so #5 0x0000ffff93dc9f04 in sl::svorw::SVOVideo::close() () from /usr/local/zed/lib/libsl_zed.so #6 0x0000ffff94dce074 in sl::Camera::disableRecording() () from /usr/local/zed/lib/libsl_zed.so
Steps to Reproduce
Expected Result
The SDK will not hang and continue to produce SVO2 file.
Actual Result
The SDK hanged with the below backtrack:
#0 __pthread_clockjoin_ex (threadid=281468863297792, thread_return=0x0, clockid=0, abstime=<optimized out>, block=<optimized out>) at pthread_join_common.c:145 #1 0x0000ffff92bb0230 in std::thread::join() () from /lib/aarch64-linux-gnu/libstdc++.so.6 #2 0x0000ffff93e88324 in MCAPWriter::close() () from /usr/local/zed/lib/libsl_zed.so #3 0x0000ffff93dba2c8 in sl::svorw::SVOGen2Writer::~SVOGen2Writer() () from /usr/local/zed/lib/libsl_zed.so #4 0x0000ffff93dba734 in sl::svorw::SVOGen2Writer::~SVOGen2Writer() () from /usr/local/zed/lib/libsl_zed.so #5 0x0000ffff93dc9f04 in sl::svorw::SVOVideo::close() () from /usr/local/zed/lib/libsl_zed.so #6 0x0000ffff94dce074 in sl::Camera::disableRecording() () from /usr/local/zed/lib/libsl_zed.so
ZED Camera model
ZED2i
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: