You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:NULL] in the RCTBundleURLProvider.m crashed in iOS 10, if the dev app running in offline/other network mode.
I think we need to check the error before parsing the data.
I don't understand your reproduction steps here. I can deploy the dev version of an app, switch the network, and have it still work. Can you provide a more specific explanation of how to reproduce this bug?
Basically, if I disconnected my app and switch to 4G, then kill app and reopen, the crash happened, from the crash log in Devices, it seems the sendSynchronousRequest has some problems, please advice.
Date/Time: 2016-10-25 11:13:05.0675 +0800
Launch Time: 2016-10-25 11:12:44.8976 +0800
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
+1. Attaching a stack trace of the thread (main thread) that causes iOS to kill the app. The app never opens and it's killed about 10 seconds after clicking on the app icon in iOS. I replaced my app name with AppName.
@wafisher It's unclear to me what you're +1ing. Are you agreeing with @satya164 saying that this is expected behavior since we aren't caching the bundle on iOS?
I think this is a dupe of #10187 so I am going to close this one. A pull request to improve the error-detection behavior in this bit of code would be great too!
Activity
lacker commentedon Oct 25, 2016
I don't understand your reproduction steps here. I can deploy the dev version of an app, switch the network, and have it still work. Can you provide a more specific explanation of how to reproduce this bug?
atcfu commentedon Oct 25, 2016
Basically, if I disconnected my app and switch to 4G, then kill app and reopen, the crash happened, from the crash log in Devices, it seems the sendSynchronousRequest has some problems, please advice.
Date/Time: 2016-10-25 11:13:05.0675 +0800
Launch Time: 2016-10-25 11:12:44.8976 +0800
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001903f41a8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001902df7ec _dispatch_semaphore_wait_slow + 216
2 CFNetwork 0x0000000191ae0c58 CFURLConnectionSendSynchronousRequest + 284
3 CFNetwork 0x0000000191b0c1dc +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 120
4 duolamarket 0x0000000100360934 0x1000d4000 + 2672948
5 duolamarket 0x0000000100360c2c 0x1000d4000 + 2673708
6 duolamarket 0x0000000100360e3c 0x1000d4000 + 2674236
7 duolamarket 0x0000000100361000 0x1000d4000 + 2674688
8 duolamarket 0x0000000100122d4c 0x1000d4000 + 322892
9 duolamarket 0x00000001001228b8 0x1000d4000 + 321720
10 UIKit 0x00000001972ff42c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
11 UIKit 0x000000019750fb70 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3524
12 UIKit 0x00000001975158e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1656
13 UIKit 0x000000019752a080 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3134 + 48
14 UIKit 0x00000001975128c4 -[UIApplication workspaceDidEndTransaction:] + 168
15 FrontBoardServices 0x0000000192fe58bc FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 36
16 FrontBoardServices 0x0000000192fe5728 -[FBSSerialQueue _performNext] + 176
17 FrontBoardServices 0x0000000192fe5ad0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
18 CoreFoundation 0x00000001913f2278 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
19 CoreFoundation 0x00000001913f1bc0 __CFRunLoopDoSources0 + 524
20 CoreFoundation 0x00000001913ef7c0 __CFRunLoopRun + 804
21 CoreFoundation 0x000000019131e048 CFRunLoopRunSpecific + 444
22 UIKit 0x00000001972f85dc -[UIApplication _run] + 608
23 UIKit 0x00000001972f3360 UIApplicationMain + 208
24 duolamarket 0x0000000100136e78 0x1000d4000 + 405112
25 libdyld.dylib 0x00000001903005b8 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001904d4db0 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001904d4db0 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001904d4db0 start_wqthread + 0
lacker commentedon Oct 26, 2016
Does this happen with just a blank new app?
satya164 commentedon Oct 27, 2016
I don't think we're caching the bundle on iOS, in which case this is expected behaviour?
wafisher commentedon Nov 1, 2016
+1. Attaching a stack trace of the thread (main thread) that causes iOS to kill the app. The app never opens and it's killed about 10 seconds after clicking on the app icon in iOS. I replaced my app name with
AppName.lacker commentedon Nov 2, 2016
@wafisher It's unclear to me what you're +1ing. Are you agreeing with @satya164 saying that this is expected behavior since we aren't caching the bundle on iOS?
wafisher commentedon Nov 2, 2016
Sorry, +1 on experiencing the problem and providing a stack trace with line numbers. Running version 0.34.
palmsey commentedon Nov 11, 2016
This is happening for me too, running 0.36 on iOS 10.1.1. I think the same issue is described here: #10187
For me, I'm not able to get past the launch screen when wifi is disabled. The iOS crash log is the same as @wafisher reported.
dennislaupman commentedon Dec 9, 2016
Hi Guy's,
I've got same problem :(
react-native-cli: 0.2.0
react-native: 0.39.1
App crashed after switching network. For example from Wifi to 4G.
You can reproduce it by:
After a freeze of a few seconds the app crashed.
alejandromizraji commentedon Jan 29, 2017
I've got same problem
react-native-cli: 2.0.1
react-native: 0.40.0
When i launch the app with lte it crashes
lacker commentedon Feb 7, 2017
I think this is a dupe of #10187 so I am going to close this one. A pull request to improve the error-detection behavior in this bit of code would be great too!