-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MTHNetworkObserver类ReceiveData里面appendData的时候,会报NSMallocException内存错误 #63
Comments
qcliwei
changed the title
ReceiveData里面appendData的时候,会报NSMallocException内存错误
MTHNetworkObserver类ReceiveData里面appendData的时候,会报NSMallocException内存错误
Jul 15, 2020
之前这个组件未考虑适配这个场景,方便的话能否提供个 MR? |
MR是什么啊? |
Merge Request(Pull Request) https://github.com/meitu/MTHawkeye/blob/develop/Contributing.md 这个长度不是实际的长度,但可以作为粗略的参考 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者你好:
我这边监听直播推流请求的时候,发现会crash,看了崩溃日志,提示NSMallocException 错误
代码定位到
函数是
我看dataAccumulator逻辑是
didReceiveResponse 初始化
didReceiveData 里面拼接
didCompleteWithError 后面计算大小,移除
有没可能一开始dataAccumulator这个初始化的时候申请内存小了,然后后面不断拼返回的data,造成内存OOM了,直播的时候可能时间很长,导致数据越来越大,dataAccumulator这部分内存没有到didCompleteWithError就没有清除
The text was updated successfully, but these errors were encountered: