Filepicker.io Objective-c荒诞数据?

时间:2012-12-08 04:49:33

标签: ios nsdata filepicker.io

我正在制作一个使用filepicker.io的iOS SDK的iOS应用程序,并且在添加大型视频时我一直遇到此问题。我几乎立即崩溃整个应用程序。这是问题所在:

malloc: *** mmap(size=532119552) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
2012-12-07 23:46:56.886 App_Name[1106:1d03] *** Terminating app due to uncaught exception       'NSInvalidArgumentException', reason: '*** -[NSConcreteData initWithBytes:length:copy:freeWhenDone:bytesAreVM:]: absurd length: 4294967295, maximum size: 2147483648 bytes'
*** First throw call stack:
(0x3ac1e2a3 0x34b0d97f 0x3ac1e1c5 0x35980407 0x359877bf 0x3598777d 0x5d41d 0x6064d 0x5ffc3 0x38f1111f 0x38f14b97 0x38f17139 0x38f1591d 0x38f15ac1 0x35c7aa11 0x35c7a8a4)
libc++abi.dylib: terminate called throwing an exception

这是非常奇特的,我发现这一点就是它与内存管理有关。我怎样才能解决这个问题????

0 个答案:

没有答案