{"action":"closed","issue":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4519","repository_url":"https://api.github.com/repos/react-navigation/react-navigation","labels_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4519/labels{/name}","comments_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4519/comments","events_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4519/events","html_url":"https://github.com/react-navigation/react-navigation/issues/4519","id":332861974,"node_id":"MDU6SXNzdWUzMzI4NjE5NzQ=","number":4519,"title":"AsyncStorage access causes crash on Android","user":{"login":"ethanyuwang","id":17556945,"node_id":"MDQ6VXNlcjE3NTU2OTQ1","avatar_url":"https://avatars1.githubusercontent.com/u/17556945?v=4","gravatar_id":"","url":"https://api.github.com/users/ethanyuwang","html_url":"https://github.com/ethanyuwang","followers_url":"https://api.github.com/users/ethanyuwang/followers","following_url":"https://api.github.com/users/ethanyuwang/following{/other_user}","gists_url":"https://api.github.com/users/ethanyuwang/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanyuwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanyuwang/subscriptions","organizations_url":"https://api.github.com/users/ethanyuwang/orgs","repos_url":"https://api.github.com/users/ethanyuwang/repos","events_url":"https://api.github.com/users/ethanyuwang/events{/privacy}","received_events_url":"https://api.github.com/users/ethanyuwang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-15T17:46:41Z","updated_at":"2018-06-16T09:11:25Z","closed_at":"2018-06-16T09:11:24Z","author_association":"NONE","body":"### Current Behavior\r\n\r\nI followed this example (https://reactnavigation.org/docs/en/auth-flow.html) and set up my app log in flow. It has been working fine for two weeks but suddenly the android version starts crashing on start.\r\n\r\nAndroid log:\r\n\r\n```\r\n06-15 10:30:36.580  4231  4231 D ReactNative: ReactInstanceManager.ctor()\r\n06-15 10:30:36.629  4231  4231 D ReactNative: ReactInstanceManager.createReactContextInBackground()\r\n06-15 10:30:36.629  4231  4231 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()\r\n06-15 10:30:41.643  4231  4231 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()\r\n06-15 10:30:41.646  4231  4231 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()\r\n06-15 10:30:41.646  4231  4231 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()\r\n06-15 10:30:41.667  4231  4268 D ReactNative: ReactInstanceManager.createReactContext()\r\n06-15 10:30:41.930  4231  4268 D ReactNative: Initializing React Xplat Bridge.\r\n06-15 10:30:41.933  4231  4268 D ReactNative: Initializing React Xplat Bridge before initializeBridge\r\n06-15 10:30:41.944  4231  4268 D ReactNative: Initializing React Xplat Bridge after initializeBridge\r\n06-15 10:30:41.944  4231  4268 D ReactNative: CatalystInstanceImpl.runJSBundle()\r\n06-15 10:30:41.945  4231  4272 D ReactNative: ReactInstanceManager.setupReactContext()\r\n06-15 10:30:41.946  4231  4272 D ReactNative: CatalystInstanceImpl.initialize()\r\n06-15 10:30:41.953  4231  4272 D ReactNative: ReactInstanceManager.attachRootViewToInstance()\r\n06-15 10:31:08.631  4313  4313 D ReactNative: ReactInstanceManager.ctor()\r\n06-15 10:31:08.690  4313  4313 D ReactNative: ReactInstanceManager.createReactContextInBackground()\r\n06-15 10:31:08.691  4313  4313 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()\r\n06-15 10:31:08.694  4313  4313 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()\r\n06-15 10:31:08.696  4313  4313 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()\r\n06-15 10:31:08.696  4313  4313 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()\r\n06-15 10:31:08.720  4313  4342 D ReactNative: ReactInstanceManager.createReactContext()\r\n06-15 10:31:08.970  4313  4342 D ReactNative: Initializing React Xplat Bridge.\r\n06-15 10:31:08.973  4313  4342 D ReactNative: Initializing React Xplat Bridge before initializeBridge\r\n06-15 10:31:08.983  4313  4342 D ReactNative: Initializing React Xplat Bridge after initializeBridge\r\n06-15 10:31:08.984  4313  4342 D ReactNative: CatalystInstanceImpl.runJSBundle()\r\n06-15 10:31:08.985  4313  4349 D ReactNative: ReactInstanceManager.setupReactContext()\r\n06-15 10:31:08.985  4313  4349 D ReactNative: CatalystInstanceImpl.initialize()\r\n06-15 10:31:08.989  4313  4349 D ReactNative: ReactInstanceManager.attachRootViewToInstance()\r\n06-15 10:32:45.004  5082  5082 D ReactNative: ReactInstanceManager.ctor()\r\n06-15 10:32:45.050  5082  5082 D ReactNative: ReactInstanceManager.createReactContextInBackground()\r\n06-15 10:32:45.050  5082  5082 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()\r\n06-15 10:32:45.823  5082  5082 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()\r\n06-15 10:32:45.825  5082  5082 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()\r\n06-15 10:32:45.826  5082  5082 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()\r\n06-15 10:32:45.845  5082  5117 D ReactNative: ReactInstanceManager.createReactContext()\r\n06-15 10:32:46.072  5082  5117 D ReactNative: Initializing React Xplat Bridge.\r\n06-15 10:32:46.075  5082  5117 D ReactNative: Initializing React Xplat Bridge before initializeBridge\r\n06-15 10:32:46.087  5082  5117 D ReactNative: Initializing React Xplat Bridge after initializeBridge\r\n06-15 10:32:46.088  5082  5117 D ReactNative: CatalystInstanceImpl.runJSBundle()\r\n06-15 10:32:46.088  5082  5122 D ReactNative: ReactInstanceManager.setupReactContext()\r\n06-15 10:32:46.089  5082  5122 D ReactNative: CatalystInstanceImpl.initialize()\r\n06-15 10:32:46.097  5082  5122 D ReactNative: ReactInstanceManager.attachRootViewToInstance()\r\n06-15 10:32:55.870  5147  5147 D ReactNative: ReactInstanceManager.ctor()\r\n06-15 10:32:55.935  5147  5147 D ReactNative: ReactInstanceManager.createReactContextInBackground()\r\n06-15 10:32:55.935  5147  5147 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()\r\n06-15 10:32:55.937  5147  5147 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()\r\n06-15 10:32:55.940  5147  5147 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()\r\n06-15 10:32:55.940  5147  5147 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()\r\n06-15 10:32:55.962  5147  5172 D ReactNative: ReactInstanceManager.createReactContext()\r\n06-15 10:32:56.211  5147  5172 D ReactNative: Initializing React Xplat Bridge.\r\n06-15 10:32:56.214  5147  5172 D ReactNative: Initializing React Xplat Bridge before initializeBridge\r\n06-15 10:32:56.224  5147  5172 D ReactNative: Initializing React Xplat Bridge after initializeBridge\r\n06-15 10:32:56.224  5147  5172 D ReactNative: CatalystInstanceImpl.runJSBundle()\r\n06-15 10:32:56.225  5147  5183 D ReactNative: ReactInstanceManager.setupReactContext()\r\n06-15 10:32:56.225  5147  5183 D ReactNative: CatalystInstanceImpl.initialize()\r\n06-15 10:32:56.227  5147  5183 D ReactNative: ReactInstanceManager.attachRootViewToInstance()\r\n06-15 10:34:58.497  5912  5912 D ReactNative: ReactInstanceManager.ctor()\r\n06-15 10:34:58.541  5912  5912 D ReactNative: ReactInstanceManager.createReactContextInBackground()\r\n06-15 10:34:58.542  5912  5912 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()\r\n06-15 10:34:59.746  5912  5912 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()\r\n06-15 10:34:59.748  5912  5912 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()\r\n06-15 10:34:59.748  5912  5912 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()\r\n06-15 10:34:59.769  5912  5946 D ReactNative: ReactInstanceManager.createReactContext()\r\n06-15 10:34:59.986  5912  5946 D ReactNative: Initializing React Xplat Bridge.\r\n06-15 10:34:59.989  5912  5946 D ReactNative: Initializing React Xplat Bridge before initializeBridge\r\n06-15 10:34:59.998  5912  5946 D ReactNative: Initializing React Xplat Bridge after initializeBridge\r\n06-15 10:34:59.998  5912  5946 D ReactNative: CatalystInstanceImpl.runJSBundle()\r\n06-15 10:34:59.999  5912  5951 D ReactNative: ReactInstanceManager.setupReactContext()\r\n06-15 10:34:59.999  5912  5951 D ReactNative: CatalystInstanceImpl.initialize()\r\n06-15 10:35:00.004  5912  5951 D ReactNative: ReactInstanceManager.attachRootViewToInstance()\r\n```\r\nHowever, by commenting out `_bootstrapAsync` in `AuthLoading` the Android app starts normally.\r\nIt seems like its related to this issue for code-push: https://github.com/Microsoft/react-native-code-push/issues/1088. However, I'm not using `code-push` and there's no solution in that issue.\r\n\r\n### Expected Behavior\r\n\r\nApp should start normally.\r\n\r\n### How to reproduce\r\n\r\n1. Follow this example: https://reactnavigation.org/docs/en/auth-flow.html\r\n2. Android App crashes\r\n\r\n### Your Environment\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| react-navigation | \"^2.0.1\"\r\n| react-native     | \"0.55.4\",\r\n| node             | v8.9.4\r\n| npm or yarn      | 5.8.0\r\n"}}
{"actor":{"display_login":"vonovak"}}