Have the strangest error. I upload files to S3 no problem. But my app always crashes on the 3rd upload
Code:
AWS.S3.putObject({ 'BucketName' : 'fb-us', 'ObjectName' : fileName, 'File' : file }, function(data, response){ Ti.API.info("MESSAGE : "+JSON.stringify(data)); setTimeout(maskUp(), 2000); }, function(message, error) { Ti.API.error(message); Ti.API.info(JSON.stringify(error)); });Error:
ERROR] : The application has crashed with an uncaught exception 'NSRangeException'. [ERROR] : Reason: [ERROR] : *** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 2] [ERROR] : Stack trace: [ERROR] : 0 CoreFoundation 0x046761c8 __exceptionPreprocess + 152 [ERROR] : 1 libobjc.A.dylib 0x041718e5 objc_exception_throw + 44 [ERROR] : 2 CoreFoundation 0x046173f6 -[__NSArrayM objectAtIndex:] + 246 [ERROR] : 3 fb 0x0007bd53 -[TiViewProxy insertSubview:forProxy:] + 1539 [ERROR] : 4 fb 0x0007b67f -[TiViewProxy refreshView:] + 2255 [ERROR] : 5 fb 0x0007c8e3 -[TiViewProxy layoutChildrenIfNeeded] + 259 [ERROR] : 6 fb 0x00205b77 +[TiLayoutQueue layoutProxy:] + 87 [ERROR] : 7 fb 0x00205949 performLayoutRefresh + 553 [ERROR] : 8 CoreFoundation 0x04634ac6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22 [ERROR] : 9 CoreFoundation 0x046344ad __CFRunLoopDoTimer + 1181 [ERROR] : 10 CoreFoundation 0x0461c538 __CFRunLoopRun + 1816 [ERROR] : 11 CoreFoundation 0x0461b9d3 CFRunLoopRunSpecific + 467 [ERROR] : 12 CoreFoundation 0x0461b7eb CFRunLoopRunInMode + 123 [ERROR] : 13 GraphicsServices 0x048d35ee GSEventRunModal + 192 [ERROR] : 14 GraphicsServices 0x048d342b GSEventRun + 104 [ERROR] : 15 UIKit 0x0168df9b UIApplicationMain + 1225 [ERROR] : 16 fotobom 0x000036f8 main + 456 [ERROR] : 17 libdyld.dylib 0x0527d701 start + 1 [ERROR] : 2014-05-02 20:44:44.209 fotobom[55237:70b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 2]' [ERROR] : *** First throw call stack: [ERROR] : ( [ERROR] : 0 CoreFoundation 0x046761e4 __exceptionPreprocess + 180 [ERROR] : 1 libobjc.A.dylib 0x041718e5 objc_exception_throw + 44 [ERROR] : 2 CoreFoundation 0x046173f6 -[__NSArrayM objectAtIndex:] + 246 [ERROR] : 3 fb 0x0007bd53 -[TiViewProxy insertSubview:forProxy:] + 1539 [ERROR] : 4 fb 0x0007b67f -[TiViewProxy refreshView:] + 2255 [ERROR] : 5 fb 0x0007c8e3 -[TiViewProxy layoutChildrenIfNeeded] + 259 [ERROR] : 6 fb 0x00205b77 +[TiLayoutQueue layoutProxy:] + 87 [ERROR] : 7 fb 0x00205949 performLayoutRefresh + 553 [ERROR] : 8 CoreFoundation 0x04634ac6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22 [ERROR] : 9 CoreFoundation 0x046344ad __CFRunLoopDoTimer + 1181 [ERROR] : 10 CoreFoundation 0x0461c538 __CFRunLoopRun + 1816 [ERROR] : 11 CoreFoundation 0x0461b9d3 CFRunLoopRunSpecific + 467 [ERROR] : 12 CoreFoundation 0x0461b7eb CFRunLoopRunInMode + 123 [ERROR] : 13 GraphicsServices 0x048d35ee GSEventRunModal + 192 [ERROR] : 14 GraphicsServices 0x048d342b GSEventRun + 104 [ERROR] : 15 UIKit 0x0168df9b UIApplicationMain + 1225 [ERROR] : 16 fb 0x000036f8 main + 456 [ERROR] : 17 libdyld.dylib 0x0527d701 start + 1 [ERROR] : ) [ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException -- End simulator log ---------------------------------------------------------