# EXC\_BAD\_ACCESS error in 1.3.3

**URL:** <https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404>\
**Category:** iOS\
**Created:** [August 17, 2022, 2:01pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404 "2022-08-17T14:01:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![veerlorden](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@veerlorden](https://devforum.zoom.us/u/veerlorden)\
**Post date:** [August 17, 2022, 2:01pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/1 "2022-08-17T14:01:11Z")

</div>

**Description**  
Hi, there. I’ve downloaded the latest version of ZoomVideoSDK 1.3.3. When I’m trying to get one of Zoom’s callbacks I tend to get an error instead:  
“Thread 1: EXC\_BAD\_ACCESS (code=1, address=0x3da7ad330)” at main  
This error is 100% reproducible when one of the users leaves session. I don’t get onUserLeave callback, but I do get an error. As a workaround I reverted SDK to the previous version and it works fine.

**Which iOS Video SDK version?**  
1.3.3. The previous version (1.3.2) is stable

**Smartphone:**

- Device: both iPhone 12 and Xcode Simulator
- OS: iOS 15.5

 ![bad_access](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/f/cf6c77e3e9d836e1a202fba3813025160680752d.png)

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [August 21, 2022, 4:03am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/2 "2022-08-21T04:03:06Z")

</div>

I am seeing the same exact crash. happening in 1.3.3, not happening on 1.3.0, 1.3.1, 1.3.2.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 1, 2022, 8:51am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/3 "2022-09-01T08:51:44Z")

</div>

Just tested with v1.4.0 - same crash.

```auto
EXC_BAD_ACCESS
addObject: > getCmmUserByUserId: > getUserById: > numberWithUnsignedInt: > removeUser: >
Attempted to dereference garbage pointer 0x165e15957400.

```

**To Reproduce**

- make 3 users join a session
- trigger a crash on user 1 (call `fatalError()` for example - or stop execution in Xcode) - the SDK callbacks are not called for user 1 - so user 2 in 3 are still seeing user 1 being part of the session
- after ~30sec both user 2 and 3 will experience the crash above - the SDK timed out user 1 and tries to remove it casing the crash to happen

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 8, 2022, 9:28am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/4 "2022-09-08T09:28:59Z")

</div>

@rokgregoric  
Thank you for reporting this issue.  
It seems your app crashed when you receive the error of Errors\_Session\_Disconncting(2008), right?  
We test with SDK demo app, can’t reproduce the issue of crash, it must have some different operation between your code and SDK Demo code.  
Would you mind to give us a call stack of this crash issue or some sample code?  
Thanks

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 8, 2022, 9:56am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/5 "2022-09-08T09:56:40Z")

</div>

@jackie.chen no … the app is not crashing on 2008 … this happens randomly when accessing the user object.

here is a crash stack trace:

```nohighlight
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP at 0x0000000f013cb770
Crashed Thread: 0

Application Specific Information:
addObject: > getCmmUserByUserId: > getUserById: > numberWithUnsignedInt: > removeUser: > XTUM >
Attempted to dereference garbage pointer 0xf013cb770.

Thread 0 Crashed:
0 libobjc.A.dylib 0x30332ae20 objc_retain_x0
1 ZoomVideoSDK 0x10e9ab40c <redacted>
2 ZoomVideoSDK 0x10fa0e030 <redacted>
3 ZoomVideoSDK 0x10fa0f544 <redacted>
4 ZoomVideoSDK 0x10f9f2748 <redacted>
5 Foundation 0x3054ca758 __NSFireTimer
6 CoreFoundation 0x310b2e72c <redacted>
7 CoreFoundation 0x310aeada8 <redacted>
8 CoreFoundation 0x310a8ea48 <redacted>
9 CoreFoundation 0x310adc39c <redacted>
10 CoreFoundation 0x310ae12a4 CFRunLoopRunSpecific
11 GraphicsServices 0x382669368 GSEventRunModal
12 UIKitCore 0x31512aefc <redacted>
13 UIKitCore 0x31512ab60 UIApplicationMain
14 Closer 0x202828430 main
15 <unknown> 0x1a8a20948 <redacted>

```

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 8, 2022, 10:16am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/6 "2022-09-08T10:16:33Z")

</div>

@rokgregoric  
Sorry, one more information needed.  
Which SDK version was used of this crash call stack?  
And, please give us the full crash call stack, that will be useful for tracking.

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 13, 2022, 8:34am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/7 "2022-09-13T08:34:16Z")

</div>

Hi @rokgregoric and @veerlorden ,  
I am waiting for your crash call stacks and SDK version for debug this issue.  
Would you kindle send us this two informations.  
Thanks.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 14, 2022, 3:21am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/8 "2022-09-14T03:21:55Z")

</div>

v1.3.3 was used used … but v1.4.0 produces the same crash. The crash stack is above.

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 14, 2022, 6:36am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/9 "2022-09-14T06:36:29Z")

</div>

Hi @rokgregoric ,  
The call stack you paste is not enough to analyzing.  
If the crash happened when you developing, please input the command “bt” and “image all” and copy the output to us.  
If the crash not happened in developing. Please check the device log by Xcode. There have the full crash call stack.  
Thanks again for report this issue.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 14, 2022, 7:55am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/10 "2022-09-14T07:55:57Z")

</div>

I ran `bt all` and `image list`. Here is the log [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-J5K3ThnaYc)

Hope this is OK … LMK if you need anything else.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 14, 2022, 7:59am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/11 "2022-09-14T07:59:44Z")

</div>

I replicated this simply by running the app from Xcode and after the session has started, re-run the same app without quitting it - Xcode kills it.  
When the app restart there is a fantom/zombie user (the old one) still in the session. After around 30sec - when the zombie user times out - it gets disconnected - causing the crash to occur.

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 14, 2022, 1:30pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/12 "2022-09-14T13:30:14Z")

</div>

Hi @rokgregoric ,  
After Engineer analyzing, the SDK you used is 1.3.3.1231 and the SDK is for x86\_64 simulator.  
Would you please have a try with device SDK of 1.3.3.1231？  
And get the “bt” and “image list” output for us.

I tried the way you mention above, but still can’t reproduce, even I used the simulator SDK same as you.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 14, 2022, 2:01pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/13 "2022-09-14T14:01:02Z")

</div>

here you go [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-E1XjCKUuEh).  
I am running iOS 16.1 - but the same happens on 15.x as well.

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 15, 2022, 3:16am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/14 "2022-09-15T03:16:45Z")

</div>

Hi @rokgregoric ,

Sorry to bothering you again. We need the log from you app launched to crash happened.  
You can normally reproduce the issue.  
After crash, you can get the log from Xcode → window → devices and simulators → select device → download containers → and zip the “tmp” folder in the sandbox → send the zip file to us.  
Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 15, 2022, 10:53am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/15 "2022-09-15T10:53:23Z")

</div>

here you go [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-xsEU9rwG7J)

I updated the initParams so you have multiple logs inside - I’ve also added crash reports from the device itself. This time it was on iOS 15.7

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 16, 2022, 11:24am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/16 "2022-09-16T11:24:00Z")

</div>

Hi @rokgregoric ,

Thanks for your great help.  
We have some fix codes in next release.

Thanks again.

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [September 16, 2022, 12:20pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/17 "2022-09-16T12:20:58Z")

</div>

amazing ❤❤❤ … can’t wait 🚢

---

<div class="post-metadata">

**Author:** ![vladimir](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@vladimir](https://devforum.zoom.us/u/vladimir)\
**Post date:** [September 26, 2022, 9:24am UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/18 "2022-09-26T09:24:48Z")

</div>

Hey Jackie, do you have an ETA for the fix ? We would like to plan our release and this issue is holding us back. Thanks

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [October 6, 2022, 12:29pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/19 "2022-10-06T12:29:21Z")

</div>

I can confirm 1.5.0 fixes it … great job 🙏

---

<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:** [November 5, 2022, 10:29pm UTC](https://devforum.zoom.us/t/exc-bad-access-error-in-1-3-3/74404/20 "2022-11-05T22:29:59Z")

</div>

Closed on November 5, 2022, 10:29pm UTC

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