简体   繁体   English

仪器和泄漏

[英]Instruments and leaks

I am testing my app and I keep getting these leaks but none of them are in my code..I think, has anyone else had these issues? 我正在测试我的应用程序,并且不断收到这些泄漏,但是我的代码中没有泄漏。.我认为,还有其他人遇到这些问题吗?

__NSCFDictionary        0x5f8cfe0   48  AudioToolbox    SimAggregateDevice::SimAggregateDevice(__CFString const*, __CFString const*, long&)

Malloc 32 Bytes     0x5f83a00   32  AudioToolbox    SimAggregateDevice::SimAggregateDevice(__CFString const*, __CFString const*, long&)

Malloc 48 Bytes     0x5f839d0   48  AudioToolbox    SimAggregateDevice::SimAggregateDevice(__CFString const*, __CFString const*, long&)

Malloc 32 Bytes     0x5f839b0   32  AudioToolbox    CreateDictionaryForDevice(unsigned long)

Malloc 32 Bytes     0x5f83990   32  AudioToolbox    CreateDictionaryForDevice(unsigned long)
__NSCFDictionary        0x5f83960   48  AudioToolbox    CreateDictionaryForDevice(unsigned long)

Malloc 32 Bytes     0x5f83940   32  AudioToolbox    SimAggregateDevice::SimAggregateDevice(__CFString const*, __CFString const*, long&)

__NSCFArray     0x5f838b0   32  AudioToolbox    SimAggregateDevice::SimAggregateDevice(__CFString const*, __CFString const*, long&)

any help would be awesome and thank you from... yes... a newbie. 任何帮助都将非常棒,谢谢...是的...新手。

Firstly, I think you're running your app on the simulator - you shouldn't. 首先,我认为您正在模拟器上运行您的应用程序-您不应该这样做。

Or rather, never use the simulator to test for memory allocations, leaks, etc. You should always run it on the device itself. 或者,绝对不要使用模拟器来测试内存分配,泄漏等。您应该始终在设备本身上运行它。

I think if you run it on the device you'll still see this leak (well, you'll see something similar), if you google the various things you're getting back you'll see other people having this problem. 我认为,如果您在设备上运行它,仍然会看到此泄漏(嗯,您会看到类似的东西),如果您在搜索各种返回的内容时,会看到其他人遇到此问题。 It appears as if there are some small leaks within the framework itself, which is something outside of your control. 似乎框架本身内有一些小漏洞,这是您无法控制的。 I'd just leave them be. 我就离开他们。

Also try the static analysis build. 还可以尝试进行静态分析。 That will often reveal retain/release mismatches and general leaks. 这通常会显示保留/释放不匹配和普遍泄漏。 You can run it with Cmd+Shift+A (I think). 您可以使用Cmd + Shift + A来运行它(我认为)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM