If you issue a request with network.request() using a server that is down (or non-existent), Corona crashes with the trace attached below.
Note: I’ve traced this issue to build 2013.1114. There were some code changes to the network module in that build.
Build 2013.1108 works fine.
2013-05-29 18:30:11.807 Corona Simulator[85491:707] -[CoronaURLConnection reportErrors]: unrecognized selector sent to instance 0x102ad77f0
2013-05-29 18:30:11.808 Corona Simulator[85491:707] -[CoronaURLConnection reportErrors]: unrecognized selector sent to instance 0x102ad77f0
2013-05-29 18:30:11.809 Corona Simulator[85491:707] (
0 CoreFoundation 0x00007fff8c524b06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8b6203f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c5bb40a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3 CoreFoundation 0x00007fff8c51302e ___forwarding___ + 414
4 CoreFoundation 0x00007fff8c512e18 _CF_forwarding_prep_0 + 232
5 network.dylib 0x000000010174004a -[CoronaConnectionDelegate connection:didFailWithError:] + 206
6 Foundation 0x00007fff8e04c528 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 28
7 Foundation 0x00007fff8e04c46c -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 227
8 Foundation 0x00007fff8e1c3524 -[NSURLConnectionInternal _withErrorForConnection:] + 105
9 CFNetwork 0x00007fff866d5d45 ___delegate_didFail_block_invoke_0 + 57
10 CFNetwork 0x00007fff86676a7a ___withDelegateAsync_block_invoke_0 + 90
11 CFNetwork 0x00007fff867072ea __block_global_1 + 28
12 CoreFoundation 0x00007fff8c4c2154 CFArrayApplyFunction + 68
13 CFNetwork 0x00007fff866677e4 _ZN19RunloopBlockContext7performEv + 124
14 CFNetwork 0x00007fff866676bb _ZN17MultiplexerSource7performEv + 221
15 CoreFoundation 0x00007fff8c4a3b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16 CoreFoundation 0x00007fff8c4a3455 __CFRunLoopDoSources0 + 245
17 CoreFoundation 0x00007fff8c4c67f5 __CFRunLoopRun + 789
18 CoreFoundation 0x00007fff8c4c60e2 CFRunLoopRunSpecific + 290
19 HIToolbox 0x00007fff8559beb4 RunCurrentEventLoopInMode + 209
20 HIToolbox 0x00007fff8559bc52 ReceiveNextEventCommon + 356
21 HIToolbox 0x00007fff8559bae3 BlockUntilNextEventMatchingListInMode + 62
22 AppKit 0x00007fff859c2563 _DPSNextEvent + 685
23 AppKit 0x00007fff859c1e22 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
24 AppKit 0x00007fff859b91d3 -[NSApplication run] + 517
25 AppKit 0x00007fff8595dc06 NSApplicationMain + 869
26 Corona Simulator 0x0000000100001874 start + 52
27 ??? 0x0000000000000003 0x0 + 3
)