我正在制作一个使用 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
这是非常奇特的,我发现这与内存管理有关。我怎样才能解决这个问题????