Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (3.4.0)
Viewing all articles
Browse latest Browse all 66

App Crashes after multiple downloads

$
0
0

I've been having an issue with my app crashing while a download is in progress within the app. This started with SDK 3.3.0 and has continued now to 3.4.0.v20140917120000

Evertthing in the app works fine when I use it I can run many downloads but after a bit of time it will just crash and give me the error below. Does anyone know how to fix this or what is causing it or maybe some tips of places to look to figure out whats going on?

There is this issue that I discovered with multiple onreadystatechanges being called and I'm not sure if its related to that: https://jira.appcelerator.org/browse/TIMOB-17704

[ERROR] :  The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[INFO] :   download thread 2: 0.3705732822418213
[ERROR] :  Reason:
[ERROR] :  *** NSAllocateMemoryPages(43459736) failed
[ERROR] :  Stack trace:
[ERROR] :  
[ERROR] :  0   CoreFoundation                      0x04e9ddda __exceptionPreprocess + 154
[ERROR] :  1   libobjc.A.dylib                     0x04a60a97 objc_exception_throw + 44
[ERROR] :  2   CoreFoundation                      0x04e9dd1d +[NSException raise:format:] + 141
[ERROR] :  3   Foundation                          0x01f75cfc NSAllocateMemoryPages + 106
[ERROR] :  4   Foundation                          0x01e84323 _NSDataCreateVMDispatchData + 34
[ERROR] :  5   Foundation                          0x01e8251a -[_NSPlaceholderData initWithBytes:length:copy:deallocator:] + 252
[ERROR] :  6   Foundation                          0x01e8240d -[NSData(NSData) initWithBytes:length:copy:freeWhenDone:bytesAreVM:] + 92
[ERROR] :  7   Foundation                          0x01edefb3 -[NSData(NSData) copyWithZone:] + 144
[ERROR] :  8   libobjc.A.dylib                     0x04a76b45 -[NSObject copy] + 41
[ERROR] :  9   Speedtest X                         0x003038ef -[APSHTTPResponse responseData] + 48
[ERROR] :  10  Speedtest X                         0x003039d6 -[APSHTTPResponse responseLength] + 218
[ERROR] :  11  Speedtest X                         0x00306540 -[APSHTTPRequest connection:didReceiveData:] + 327
[ERROR] :  12  CFNetwork                           0x039704a1 ___ZL30_NSURLConnectionDidReceiveDataP16_CFURLConnectionPK8__CFDatalPKv_block_invoke + 51
[ERROR] :  13  CFNetwork                           0x03987f99 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 83
[ERROR] :  14  Foundation                          0x01f71365 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 12
[ERROR] :  15  Foundation                          0x01e97e45 -[NSBlockOperation main] + 99
[ERROR] :  16  Foundation                          0x01e77247 -[__NSOperationInternal _start:] + 700
[ERROR] :  17  Foundation                          0x01e76f79 -[NSOperation start] + 83
[ERROR] :  18  Foundation                          0x01e76dc3 __NSOQSchedule_f + 237
[ERROR] :  19  libdispatch.dylib                   0x0581d03f _dispatch_client_callout + 14
[ERROR] :  20  libdispatch.dylib                   0x05805d86 _dispatch_queue_drain + 690
[ERROR] :  21  libdispatch.dylib                   0x05805976 _dispatch_queue_invoke + 197
[ERROR] :  22  libdispatch.dylib                   0x05807a07 _dispatch_root_queue_drain + 374
[ERROR] :  23  libdispatch.dylib                   0x0580899d _dispatch_worker_thread3 + 108
[ERROR] :  24  libsystem_pthread.dylib             0x05b72296 _pthread_wqthread + 724
[ERROR] :  25  libsystem_pthread.dylib             0x05b6feea start_wqthread + 30
[ERROR] :  2014-09-18 00:53:44.669 Speedtest X[21696:1665754] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** NSAllocateMemoryPages(43459736) failed'
[ERROR] :  *** First throw call stack:
[ERROR] :  (
[ERROR] :   0   CoreFoundation                      0x04e9ddf6 __exceptionPreprocess + 182
[ERROR] :   1   libobjc.A.dylib                     0x04a60a97 objc_exception_throw + 44
[ERROR] :   2   CoreFoundation                      0x04e9dd1d +[NSException raise:format:] + 141
[ERROR] :   3   Foundation                          0x01f75cfc NSAllocateMemoryPages + 106
[ERROR] :   4   Foundation                          0x01e84323 _NSDataCreateVMDispatchData + 34
[ERROR] :   5   Foundation                          0x01e8251a -[_NSPlaceholderData initWithBytes:length:copy:deallocator:] + 252
[ERROR] :   6   Foundation                          0x01e8240d -[NSData(NSData) initWithBytes:length:copy:freeWhenDone:bytesAreVM:] + 92
[ERROR] :   7   Foundation                          0x01edefb3 -[NSData(NSData) copyWithZone:] + 144
[ERROR] :   8   libobjc.A.dylib                     0x04a76b45 -[NSObject copy] + 41
[ERROR] :   9   Speedtest X                         0x003038ef -[APSHTTPResponse responseData] + 48
[ERROR] :   10  Speedtest X                         0x003039d6 -[APSHTTPResponse responseLength] + 218
[ERROR] :   11  Speedtest X                         0x00306540 -[APSHTTPRequest connection:didReceiveData:] + 327
[ERROR] :   12  CFNetwork                           0x039704a1 ___ZL30_NSURLConnectionDidReceiveDataP16_CFURLConnectionPK8__CFDatalPKv_block_invoke + 51
[ERROR] :   13  CFNetwork                           0x03987f99 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 83
[ERROR] :   14  Foundation                          0x01f71365 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 12
[ERROR] :   15  Foundation                          0x01e97e45 -[NSBlockOperation main] + 99
[ERROR] :   16  Foundation                          0x01e77247 -[__NSOperationInternal _start:] + 700
[ERROR] :   17  Foundation                          0x01e76f79 -[NSOperation start] + 83
[ERROR] :   18  Foundation                          0x01e76dc3 __NSOQSchedule_f + 237
[ERROR] :   19  libdispatch.dylib                   0x0581d03f _dispatch_client_callout + 14
[ERROR] :   20  libdispatch.dylib                   0x05805d86 _dispatch_queue_drain + 690
[ERROR] :   21  libdispatch.dylib                   0x05805976 _dispatch_queue_invoke + 197
[ERROR] :   22  libdispatch.dylib                   0x05807a07 _dispatch_root_queue_drain + 374
[ERROR] :   23  libdispatch.dylib                   0x0580899d _dispatch_worker_thread3 + 108
[ERROR] :   24  libsystem_pthread.dylib             0x05b72296 _pthread_wqthread + 724
[ERROR] :   25  libsystem_pthread.dylib             0x05b6feea start_wqthread + 30
[ERROR] :  )
[ERROR] :  libc++abi.dylib: terminating with uncaught exception of type NSException
-- End simulator log ---------------------------------------------------------

Viewing all articles
Browse latest Browse all 66

Trending Articles