# Leaks in memory and terminate app

**URL:** <https://community.wowza.com/t/leaks-in-memory-and-terminate-app/52529>\
**Category:** Wowza GoCoder SDK\
**Created:** [December 19, 2018, 11:39am UTC](https://community.wowza.com/t/leaks-in-memory-and-terminate-app/52529 "2018-12-19T11:39:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11140](https://avatars.discourse-cdn.com/v4/letter/1/e56c9b/32.png) [@11140](https://community.wowza.com/u/11140)\
**Post date:** [December 19, 2018, 11:39am UTC](https://community.wowza.com/t/leaks-in-memory-and-terminate-app/52529/1 "2018-12-19T11:39:17Z")

</div>

iOS: terminated due to memory issue (

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [December 19, 2018, 5:38pm UTC](https://community.wowza.com/t/leaks-in-memory-and-terminate-app/52529/2 "2018-12-19T17:38:56Z")

</div>

Can you provide more specifics? What version are you using of the GoCoder SDK? Repro steps? What tool are you using to detect memory leaks? etc. Thanks.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [December 19, 2018, 8:41pm UTC](https://community.wowza.com/t/leaks-in-memory-and-terminate-app/52529/3 "2018-12-19T20:41:51Z")

</div>

You will need to use our iOS SDK version 1.5.1 to resolve your memory leak issue. There were some audio related issues in the previous versions that were corrected in 1.5.1.

[https://www.wowza.com/products/gocoder](https://www.wowza.com/products/gocoder)

If you are already using 1.5.1:

To rule out whether the issue is in your code or in the SDK, we suggest you do the following test:

For the playback memory issue, I recommend testing with two different iOS physical devices one for broadcast and one for playback. Please use the All-in-OneSampleApp.objc sample app "Stream live video and audio on one device w/ default settings to broadcast. Then use on a 2nd device “Play a live stream”.

Let us know your results…

---

<div class="post-metadata">

**Author:** ![11140](https://avatars.discourse-cdn.com/v4/letter/1/e56c9b/32.png) [@11140](https://community.wowza.com/u/11140)\
**Post date:** [December 20, 2018, 7:25am UTC](https://community.wowza.com/t/leaks-in-memory-and-terminate-app/52529/4 "2018-12-20T07:25:21Z")

</div>

gocoder-sdk-ios-build-1027-v1.6.0

```auto
goCoderConfig = WowzaConfig()

        goCoderConfig.hostAddress = "server"
        goCoderConfig.applicationName = "id"
        goCoderConfig.portNumber = 1935
        goCoderConfig.streamName = "key"
        goCoderConfig.load(.preset640x480)
        goCoderConfig.videoBitrate = 2000000
        goCoderConfig.videoFrameRate = 15
        goCoderConfig.videoKeyFrameInterval = 15
        goCoderConfig.videoBitrateLowBandwidthScalingFactor = 0.0
        goCoderConfig.videoFrameRateLowBandwidthSkipCount = 14
        goCoderConfig.broadcastScaleMode = .aspectFill
        goCoderConfig.videoPreviewRotates = false
        goCoderConfig.capturedVideoRotates = false

```
