报告ALAssetRepresentation元数据方法崩溃 [英] Crash being reported for ALAssetRepresentation metadata method
问题描述
我有一些代码可以包装从枚举ALAssetLibrary中的资源中检索到的ALAsset对象。我收到用户遇到崩溃的报告,其中包装器对象的一部分要求它包含元数据的ALAsset。
I have some code that wraps an ALAsset object that is retrieved from enumerating the assets in an ALAssetLibrary. I'm getting reports of users encountering crashes with the part of the wrapper object that asks the ALAsset it contains for metadata.
崩溃的代码在这个包装器类中,它只是询问其ALAsset的元数据,如下所示:
The code that crashes is in this wrapper class and it simply asks for its ALAsset's metadata like so:
[[myAlAsset defaultRepresentation] metadata];
这是一个部分堆栈跟踪,代表我看到的崩溃:
Here is a partial stack trace that is representative of the crashes I'm seeing:
0
CoreFoundation CFDataGetBytePtr + 5
1
PhotoLibraryServices __46-[PLManagedAsset adjustmentsXMPRepresentation]_block_invoke + 228
2
PhotoLibraryServices __46-[PLManagedAsset adjustmentsXMPRepresentation]_block_invoke + 228
3
CoreData developerSubmittedBlockToNSManagedObjectContextPerform + 88
4
CoreData -[NSManagedObjectContext performBlockAndWait:] + 114
5
PhotoLibraryServices -[PLManagedAsset adjustmentsXMPRepresentation] + 226
6
AssetsLibrary __33-[ALAssetRepresentation metadata]_block_invoke + 24
7
AssetsLibrary __53-[ALAssetRepresentationPrivate _performBlockAndWait:]_block_invoke + 68
8
CoreData developerSubmittedBlockToNSManagedObjectContextPerform + 88
9
libdispatch.dylib _dispatch_client_callout + 22
10
libdispatch.dylib _dispatch_barrier_sync_f_invoke + 26
11
CoreData -[NSManagedObjectContext performBlockAndWait:] + 106
12
AssetsLibrary -[ALAssetsLibrary _performBlockAndWait:] + 134
13
AssetsLibrary -[ALAssetRepresentationPrivate _performBlockAndWait:] + 176
14
AssetsLibrary -[ALAssetRepresentation metadata] + 464
有没有人对可能发生的事情有所了解?作为这些资产基础的AlAssetLibrary使用静态引用保存,因此不应该在内存中清理它,因此我不希望ALAsset被无效。这个问题似乎已经开始专门针对iOS 7发布了。
Does anyone have ideas on what may be going on? The AlAssetLibrary that underlies these assets is saved with a static reference, so it should not be getting cleaned up in memory and so I wouldn't expect the ALAsset to have been invalidated. This issue seems to have started specifically with iOS 7 being released.
崩溃本身是EXC_BAD_ACCESS,KERN_INVALID_ADDRESS位于0x0。
The crash itself is EXC_BAD_ACCESS with KERN_INVALID_ADDRESS at 0x0.
推荐答案
这可能是由于缓冲区溢出造成的。请检查Apple网站的链接,该链接显示与您相同的缓冲区溢出崩溃报告。希望这可以帮到你。
This may have caused because of buffer overflows. Pls check the link of apple website which shows the buffer overflow crash report same as you have. Hope this may help you.
这篇关于报告ALAssetRepresentation元数据方法崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!