# getValidRecivedShareSource returns non-zero array after first share is ended

**URL:** <https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930>\
**Category:** macOS\
**Created:** [March 17, 2022, 3:49am UTC](https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930 "2022-03-17T03:49:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [March 17, 2022, 3:49am UTC](https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930/1 "2022-03-17T03:49:40Z")

</div>

**Description**  
The getValidRecivedShareSource inside CustomizedRecordingLayoutHelper returns a non-empty array after any user starts and stops sharing.

This is occurring inside the recording layout handler

- ( **void** )setRecordingLayoutForHelper:(CustomizedRecordingLayoutHelper \*)helper

**Which macOS Meeting SDK version?**  
5.9.6

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Launch a meeting as host with custom SDK application (user A)
2. Join the meeting with the Zoom client (user B)

(lldb) po [helper getValidRecivedShareSource]  
\<\_\_NSArrayM 0x600001b21d70\>(  
)

**NOTE: Empty array**

1. Allow user B to share screen
2. user B starts screen share

(lldb) po [helper getValidRecivedShareSource]  
\<\_\_NSArrayM 0x600001b21d70\>(  
0,  
16779264  
)

**NOTE: Contains userID of sharer + a zero entry for some reason**

1. User B stops screen share

(lldb) po [helper getValidRecivedShareSource]  
\<\_\_NSArrayM 0x600001b21d70\>(  
0  
)

**NOTE: Non-empty array.**

**Device (please complete the following information):**  
Apple MacBook Pro (13-inch, M1)  
12.2.1

**Additional context**

This causes an issue with the following code:

- ( **void** )setRecordingLayoutForHelper:(CustomizedRecordingLayoutHelper \*)helper

The workaround of course is to check for any zero entries. But I am not sure why there is a zero entry at all after the first share. This is inconsistent because it does not occur before the first occurrence of a share session.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 18, 2022, 7:59pm UTC](https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930/2 "2022-03-18T19:59:21Z")

</div>

Hi @KieranAC,

I was able to reproduce this behavior. We’ll need to investigate and will keep you updated as soon as we have any new information.

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [March 18, 2022, 8:11pm UTC](https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930/3 "2022-03-18T20:11:43Z")

</div>

Thanks. We have a functional workaround for now.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 21, 2022, 7:05pm UTC](https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930/4 "2022-03-21T19:05:49Z")

</div>

Hi @KieranAC,

As it turns out, we have already identified a fix for this issue which will be included in the next SDK release (v.5.10.0).

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 21, 2022, 5:06am UTC](https://devforum.zoom.us/t/getvalidrecivedsharesource-returns-non-zero-array-after-first-share-is-ended/65930/5 "2022-04-21T05:06:07Z")

</div>

Closed on April 21, 2022, 5:06am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
