# The program crash when calling ZoomVideoService::ReleaseSDK

**URL:** <https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243>\
**Category:** Linux\
**Created:** [January 5, 2024, 3:27am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243 "2024-01-05T03:27:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 5, 2024, 3:27am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/1 "2024-01-05T03:27:16Z")

</div>

On Ubuntu 20.04, I developed a video software base on VideoSDK. When I want to release SDK, the program stucked. Here is the stack trace for analysis. Would you help me to analyze it?

#0 0x00007ffff6f19aff in \_\_GI\_\_\_poll (fds=0x7fffffffc1c0, nfds=1, timeout=-1) at …/sysdeps/unix/sysv/linux/poll.c:29  
#1 0x00007fffc9cbfa3c in ssb::notifier\_pipe\_t::wait(int, bool) () from lib/libvideosdk.so.1  
#2 0x00007fffc9ca4f7b in ssb::msg\_queue\_t::send\_msg(ssb::msg\_it\*, ssb::msg\_queue\_sink\_it\*, int) () from lib/libvideosdk.so.1  
#3 0x00007fffc9caf94a in ssb::thread\_wrapper\_t::stop() () from lib/libvideosdk.so.1  
#4 0x00007fffc9cafba7 in ssb::thread\_io\_t::stop() () from lib/libvideosdk.so.1  
#5 0x00007fffc9cb32e1 in ssb::thread\_mgr\_t::stop\_threads\_by\_type(unsigned int) () from lib/libvideosdk.so.1  
#6 0x00007fffc9c134ca in ssb::dns\_provider\_t::stop() () from lib/libvideosdk.so.1  
#7 0x00007fffc9bfb90e in tp\_uninit () from lib/libvideosdk.so.1  
#8 0x00007fffc8d45ed5 in CSBWebServiceModuleClient::~CSBWebServiceModuleClient() () from lib/libvideosdk.so.1  
#9 0x00007fffc8d45fe9 in CSBWebServiceModuleClient::~CSBWebServiceModuleClient() () from lib/libvideosdk.so.1  
#10 0x00007fffc8d45b2b in TermWebServiceModule () from lib/libvideosdk.so.1  
#11 0x00007fffc82afa4a in ZOOMLITESDK::iOSZoomRTCModuleMgr::UnloadInternal(bool) () from lib/libvideosdk.so.1  
#12 0x00007fffc82ae4a3 in ZOOMLITESDK::CZoomRTCModuleMgr::Unload(bool) () from lib/libvideosdk.so.1  
#13 0x00007fffc82a385c in ZOOMLITESDK::CZoomLITESDKContext::Uninit() () from lib/libvideosdk.so.1  
#14 0x00007fffc82a0aeb in ZOOMLITESDK::CZoomRTCMgr::Shutdown(bool) () from lib/libvideosdk.so.1  
#15 0x00007fffc82a0c30 in ZOOMLITESDK::CZoomRTCMgr::Cleanup() () from lib/libvideosdk.so.1  
#16 0x00007fffc829484b in ZOOMVIDEOSDK::ZoomVideoSDK::UNInitialize() () from lib/libvideosdk.so.1  
#17 0x00007fffc8296fb2 in ZOOMVIDEOSDK::ZoomVideoSDK::~ZoomVideoSDK() () from lib/libvideosdk.so.1  
#18 0x00007fffc8297159 in ZOOMVIDEOSDK::ZoomVideoSDK::~ZoomVideoSDK() () from lib/libvideosdk.so.1  
#19 0x00007fffc8298e06 in DestroyZoomVideoSDKObj () from lib/libvideosdk.so.1  
#20 0x00007fffd3bacf2a in ZoomVideoService::ReleaseSDK() () from lib/libultraremotemodel.so  
#21 0x00007fffd3b82219 in ReleaseResourceService::ReleaseResourceService(QObject\*) () from lib/libultraremotemodel.so

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 8, 2024, 6:40am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/2 "2024-01-08T06:40:32Z")

</div>

@ chunsiong.zoom Would you help me to analyze it?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 10, 2024, 8:49am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/3 "2024-01-10T08:49:53Z")

</div>

@Wang ,

I’m in midst of publishing a sample app for Video SDK Linux, I’ll tag you when it is published

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 11, 2024, 8:44am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/4 "2024-01-11T08:44:18Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 11, 2024, 1:46pm UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/5 "2024-01-11T13:46:20Z")

</div>

The SDK version is 1.8.10. And there is another case, when I call joinSession, don’t wait for onSessionJoin event then call leaveSession(true) and DestoryZoomVideoSDKObj(), it will receive SIGSEGV.

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 12, 2024, 12:27am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/6 "2024-01-12T00:27:27Z")

</div>

By the way, the Qt version is 5.15.2

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 17, 2024, 2:23am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/7 "2024-01-17T02:23:26Z")

</div>

@Wang ,

I’ve just published the sample app, could you check it out here?

> **[GitHub - zoom/videosdk-linux-raw-recording-sample](https://github.com/zoom/videosdk-linux-raw-recording-sample)**
>
> Contribute to zoom/videosdk-linux-raw-recording-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 19, 2024, 9:30am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/8 "2024-01-19T09:30:20Z")

</div>

Thank you! I will try run this sample, and then replies you to confirm the result.

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 25, 2024, 2:45am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/9 "2024-01-25T02:45:41Z")

</div>

I have studied this demo, the process is consistent with my App, but my audio and video function is only a sub-function of the original App. When I exit this sub-function, the DestroyZoomVideoSDKObj is called, and there is a 1/20 chance that I get stuck inside the SDK ssb::notifier\_pipe\_t::wait.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 26, 2024, 7:44am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/10 "2024-01-26T07:44:14Z")

</div>

@Wang , what you say subfunction, do you mean it is running on a different thread?

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [January 26, 2024, 9:39am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/11 "2024-01-26T09:39:01Z")

</div>

@ chunsiong.zoom Create ZoomSDK object, join session, leave session and destroy SDK object all run on main thread

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 7, 2024, 4:33am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/12 "2024-02-07T04:33:17Z")

</div>

@Wang try to run the cleanup function first, then destroysdkobject function

---

<div class="post-metadata">

**Author:** ![Wang](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@Wang](https://devforum.zoom.us/u/Wang)\
**Post date:** [February 19, 2024, 6:12am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/13 "2024-02-19T06:12:10Z")

</div>

I’ve tried to test it 25 times, and I’ve stuck once and crashed four times. Please also help analyze and locate the problem.  
The crash stack is as follows:

Core was generated by `./zoom\_v-sdk\_linux\_bot’.  
Program terminated with signal SIGSEGV, Segmentation fault.  
#0 0x00007f6313d681ca in ssb::thread\_mgr\_t::find\_by\_type(unsigned int) const () from libvideosdk.so.1  
[Current thread is 1 (Thread 0x7f630b05c9c0 (LWP 8888))]  
(gdb) bt  
#0 0x00007f6313d681ca in ssb::thread\_mgr\_t::find\_by\_type(unsigned int) const () from libvideosdk.so.1  
#1 0x00007f6313d68bbe in ssb::thread\_mgr\_t::stop\_threads\_by\_type(unsigned int) () from libvideosdk.so.1  
#2 0x00007f6313cc1c57 in ssb::dns\_provider\_t::~dns\_provider\_t() () from libvideosdk.so.1  
#3 0x00007f6313cc1ce9 in ssb::dns\_provider\_t::~dns\_provider\_t() () from libvideosdk.so.1  
#4 0x00007f6313caf894 in ssb::singleton\_t\<ssb::dns\_provider\_t, ssb::thread\_mutex\_recursive\>::reset\_all() () from libvideosdk.so.1  
#5 0x00007f6313d5ef23 in ssb::singleton\_life\_t::cleanup() () from libvideosdk.so.1  
#6 0x00007f6313d74913 in util\_uninit () from libvideosdk.so.1  
#7 0x00007f6313d74961 in _sdk\_global\_exit_ () from libvideosdk.so.1  
#8 0x00007f6312031ebc in ZOOMVIDEOSDK::ZoomVideoSDK::UNInitialize() () from libvideosdk.so.1  
#9 0x00007f6312031ff9 in ZOOMVIDEOSDK::ZoomVideoSDK::cleanup() () from libvideosdk.so.1  
#10 0x00005631524cb1bd in destroySDKObj () at /home/wangsheng/zoomvideodemo/videosdk-linux-raw-recording-sample-main/src/zoom\_v-sdk\_linux\_bot.cpp:388  
#11 0x00005631524d0958 in ZoomVideoSDKDelegate::onSessionLeave (this=0x56315430f220) at /home/wangsheng/zoomvideodemo/videosdk-linux-raw-recording-sample-main/src/zoom\_v-sdk\_linux\_bot.cpp:130  
#12 0x00007f6312031daf in ZOOMVIDEOSDK::ZoomVideoSDK::onConferenceLeftNotification() () from libvideosdk.so.1  
#13 0x00007f6312054970 in ZOOMVIDEOSDK::CZoomLiteRTCConfStatusHandler::ProcConferenceLeftNotification(bool) () from libvideosdk.so.1  
#14 0x00007f63120cc28b in ZMMeetingBridgeAsyncHelper::RunDelayTaskList(bool) () from libvideosdk.so.1  
#15 0x00007f63120cc587 in non-virtual thunk to ZMMeetingBridgeAsyncHelper::OnTimer(void\*, unsigned int, unsigned int, unsigned long) () from libvideosdk.so.1  
#16 0x00007f6311fe31ee in Cmm::GLIBTimer\_Notify(void\*) () from libvideosdk.so.1  
#17 0x00007f6310a6dbe8 in ?? () from /lib/x86\_64-linux-gnu/libglib-2.0.so.0  
#18 0x00007f6310a6d04e in g\_main\_context\_dispatch () from /lib/x86\_64-linux-gnu/libglib-2.0.so.0  
#19 0x00007f6310a6d400 in ?? () from /lib/x86\_64-linux-gnu/libglib-2.0.so.0  
#20 0x00007f6310a6d6f3 in g\_main\_loop\_run () from /lib/x86\_64-linux-gnu/libglib-2.0.so.0  
#21 0x00005631524cd3da in main (argc=1, argv=0x7ffe905fce18) at /home/wangsheng/zoomvideodemo/videosdk-linux-raw-recording-sample-main/src/zoom\_v-sdk\_linux\_bot.cpp:680

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 19, 2024, 10:41am UTC](https://devforum.zoom.us/t/the-program-crash-when-calling-zoomvideoservice-releasesdk/101243/14 "2024-02-19T10:41:16Z")

</div>

@Wang could you capture the log using this?

- **How to enable SDK log**

When initializing the SDK, set InitParam.enableLog to be true, then the log feature will be enabled, the default log size will be 5MB

```auto
ZoomVideoSDKInitParams initParam;
initParam.domain = L"https://zoom.us";
initParam.enableLog = true;

```

- **Where to find SDK log**
  - The SDK log files are encrypted files that end with the extension “.log”
  - Location: ~/.zoomvideosdk/logs or ~/.zoomsdk/logs/
