# Sendbird UIKit memory leaks

**URL:** <https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546>\
**Category:** Sendbird Chat UIKit\
**Tags:** uikit, bug\
**Created:** [June 30, 2020, 7:54am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546 "2020-06-30T07:54:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmytro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dmytro/32/318_2.png) [@Dmytro](https://community.sendbird.com/u/Dmytro)\
**Post date:** [June 30, 2020, 7:54am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/1 "2020-06-30T07:54:52Z")

</div>

UIKit v1.0.7. Left in a tab for a weekend (latest Google Chrome) simple `App` component and see it leaks memory and CPU load a lot (macOS 10.15.5)!

No other tabs leaked even close to this one. Even Facebook.

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [June 30, 2020, 7:59am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/2 "2020-06-30T07:59:47Z")

</div>

Thanks for reporting this @Dmytro

Do you have any screenshots? Will fix this ASAP

---

<div class="post-metadata">

**Author:** ![Dmytro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dmytro/32/318_2.png) [@Dmytro](https://community.sendbird.com/u/Dmytro)\
**Post date:** [June 30, 2020, 8:04am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/3 "2020-06-30T08:04:37Z")

</div>

I’ve closed the tab already, but it was using a 98% of a single core (checked in Google Chrome Task Manager) and heat my Mac a lot.

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [June 30, 2020, 8:06am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/4 "2020-06-30T08:06:46Z")

</div>

> [@Dmytro](#):
>
> I’ve closed the tab already, but it was using a 98% of a single core and heat my Mac a lot.

Got it, we will increase the priority of this and try to fix it ASAP

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [July 1, 2020, 9:25am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/5 "2020-07-01T09:25:00Z")

</div>

Hello @Dmytro looking for a pointer - was it just the CPU or did you notice memory/javascript-heap; were they high too?

Also, how was your chat traffic - how many channels / message frequency?

---

<div class="post-metadata">

**Author:** ![Dmytro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dmytro/32/318_2.png) [@Dmytro](https://community.sendbird.com/u/Dmytro)\
**Post date:** [July 1, 2020, 10:42am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/6 "2020-07-01T10:42:25Z")

</div>

Gonna leave it once again for couple hours to check, but main concern was CPU (full core load and heats hardware).

I have a React app there with router and Material UI, but there was also another route in nearby tab and no leaks, no CPU load. Page with Sendbird UIKit is dead simple, only App component.

I had only 2 group chats there with couple messages each.

---

<div class="post-metadata">

**Author:** ![Dmytro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dmytro/32/318_2.png) [@Dmytro](https://community.sendbird.com/u/Dmytro)\
**Post date:** [July 1, 2020, 1:05pm UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/7 "2020-07-01T13:05:40Z")

</div>

So, after couple hours I’ve got back to the App and basically it had higher CPU load (up to 15% of the core) after wake up from sleep, but got back to normal after some time. No RAM leaks, memory was approx. the same as on launch. But I’ve got no new messages since then, will check it with new messages and see what happens in a few hours.

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [July 2, 2020, 1:53am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/8 "2020-07-02T01:53:50Z")

</div>

This is very helpful, thanks. We were doing mostly memory profiling actually

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [July 3, 2020, 1:58am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/9 "2020-07-03T01:58:32Z")

</div>

@Dmytro So, based on the investigation, the 15% spike is because there’s a reconnect / refresh

We are still trying to reproduce the `98% of a single core`, unsuccessful so far ☹  
Can you share your system specs? Like O/S hardware

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [July 7, 2020, 12:58am UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/10 "2020-07-07T00:58:07Z")

</div>

Have been trying to reproduce this issue over the last few days. Havent been able to reproduce

Will close for now

---

<div class="post-metadata">

**Author:** ![Dmytro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dmytro/32/318_2.png) [@Dmytro](https://community.sendbird.com/u/Dmytro)\
**Post date:** [July 27, 2020, 11:24pm UTC](https://community.sendbird.com/t/sendbird-uikit-memory-leaks/546/11 "2020-07-27T23:24:26Z")

</div>

Thank you for checking out. Recently I upgraded UIKit and had no issues like that. Will get back here in case it repeats.
