今天測試 ios直播SDK 的穩(wěn)定性题篷,連續(xù)推流5個小時(shí)以上的時(shí)候鳄抒,程序停止冶匹,并且Xcode報(bào)了以下錯誤:
warning: could not load any Objective-C class information from the dyld shared cache.
This will significantly reduce the quality of type information available.
并不能看出比較明顯的錯誤,退出時(shí)Xcode 停到這一句
self.totalOutputBytes += retLen
self.totalOutputBytes
為Int類型虽风,此時(shí)值為0x 7F FF 62 8E
棒口,再次去加 retLen寄月,self.totalOutputBytes
會被寫滿溢出了,Xcode就會報(bào)此錯誤无牵。
為了驗(yàn)證想法漾肮,之后定義了UInt8 類型變量,讓他不斷累加茎毁,果然最后也會累加溢出報(bào)此錯誤克懊。