You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
qcliwei
changed the title
ReceiveData里面appendData的时候,会报NSMallocException内存错误
MTHNetworkObserver类ReceiveData里面appendData的时候,会报NSMallocException内存错误
Jul 15, 2020
作者你好:
我这边监听直播推流请求的时候,发现会crash,看了崩溃日志,提示NSMallocException 错误
代码定位到
函数是
我看dataAccumulator逻辑是
didReceiveResponse 初始化
didReceiveData 里面拼接
didCompleteWithError 后面计算大小,移除
有没可能一开始dataAccumulator这个初始化的时候申请内存小了,然后后面不断拼返回的data,造成内存OOM了,直播的时候可能时间很长,导致数据越来越大,dataAccumulator这部分内存没有到didCompleteWithError就没有清除
The text was updated successfully, but these errors were encountered: