{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/280","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/280/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/280/events","html_url":"https://github.com/wix/react-native-navigation/issues/280","id":175140783,"number":280,"title":"Crash after RN31 update then starting app from background","user":{"login":"MattDavies","id":1419633,"avatar_url":"https://avatars.githubusercontent.com/u/1419633?v=3","gravatar_id":"","url":"https://api.github.com/users/MattDavies","html_url":"https://github.com/MattDavies","followers_url":"https://api.github.com/users/MattDavies/followers","following_url":"https://api.github.com/users/MattDavies/following{/other_user}","gists_url":"https://api.github.com/users/MattDavies/gists{/gist_id}","starred_url":"https://api.github.com/users/MattDavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattDavies/subscriptions","organizations_url":"https://api.github.com/users/MattDavies/orgs","repos_url":"https://api.github.com/users/MattDavies/repos","events_url":"https://api.github.com/users/MattDavies/events{/privacy}","received_events_url":"https://api.github.com/users/MattDavies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"DanielZlotin","id":6660239,"avatar_url":"https://avatars.githubusercontent.com/u/6660239?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielZlotin","html_url":"https://github.com/DanielZlotin","followers_url":"https://api.github.com/users/DanielZlotin/followers","following_url":"https://api.github.com/users/DanielZlotin/following{/other_user}","gists_url":"https://api.github.com/users/DanielZlotin/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielZlotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielZlotin/subscriptions","organizations_url":"https://api.github.com/users/DanielZlotin/orgs","repos_url":"https://api.github.com/users/DanielZlotin/repos","events_url":"https://api.github.com/users/DanielZlotin/events{/privacy}","received_events_url":"https://api.github.com/users/DanielZlotin/received_events","type":"User","site_admin":false},"assignees":[{"login":"DanielZlotin","id":6660239,"avatar_url":"https://avatars.githubusercontent.com/u/6660239?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielZlotin","html_url":"https://github.com/DanielZlotin","followers_url":"https://api.github.com/users/DanielZlotin/followers","following_url":"https://api.github.com/users/DanielZlotin/following{/other_user}","gists_url":"https://api.github.com/users/DanielZlotin/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielZlotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielZlotin/subscriptions","organizations_url":"https://api.github.com/users/DanielZlotin/orgs","repos_url":"https://api.github.com/users/DanielZlotin/repos","events_url":"https://api.github.com/users/DanielZlotin/events{/privacy}","received_events_url":"https://api.github.com/users/DanielZlotin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-06T00:51:16Z","updated_at":"2016-09-07T15:25:57Z","closed_at":null,"body":"Hey guys,\r\n\r\nI've just pulled in the 31 changes (during the usual cache clearing) on Android.\r\n\r\nThe app launches fine, works perfectly. If I hit home and send the app to the background, wait a while, then start the app again, I get this crash:\r\n\r\n```\r\nProcess: ****, PID: 16966\r\njava.lang.AssertionError: createReactContextInBackground should only be called when creating the react application for the first time. When reloading JS, e.g. from a new file, explicitlyuse recreateReactContextInBackground\r\n\tat com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:65)\r\n\tat com.facebook.react.XReactInstanceManagerImpl.createReactContextInBackground(XReactInstanceManagerImpl.java:348)\r\n\tat com.reactnativenavigation.react.NavigationReactGateway.startReactContextOnceInBackgroundAndExecuteJS(NavigationReactGateway.java:33)\r\n\tat com.reactnativenavigation.NavigationApplication.startReactContext(NavigationApplication.java:35)\r\n\tat com.reactnativenavigation.controllers.SplashActivity.onCreate(SplashActivity.java:18)\r\n\tat au.****.MainActivity.onCreate(MainActivity.java:18)\r\n\tat android.app.Activity.performCreate(Activity.java:6876)\r\n\tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)\r\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)\r\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)\r\n\tat android.app.ActivityThread.access$1100(ActivityThread.java:222)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:158)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:7229)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)\r\n```\r\n\r\nI'll take a stab at figuring out why tonight, just wanted to log this incase you're already aware and have any tips."},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/245317271","html_url":"https://github.com/wix/react-native-navigation/issues/280#issuecomment-245317271","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/280","id":245317271,"user":{"login":"DanielZlotin","id":6660239,"avatar_url":"https://avatars.githubusercontent.com/u/6660239?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielZlotin","html_url":"https://github.com/DanielZlotin","followers_url":"https://api.github.com/users/DanielZlotin/followers","following_url":"https://api.github.com/users/DanielZlotin/following{/other_user}","gists_url":"https://api.github.com/users/DanielZlotin/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielZlotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielZlotin/subscriptions","organizations_url":"https://api.github.com/users/DanielZlotin/orgs","repos_url":"https://api.github.com/users/DanielZlotin/repos","events_url":"https://api.github.com/users/DanielZlotin/events{/privacy}","received_events_url":"https://api.github.com/users/DanielZlotin/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T15:25:57Z","updated_at":"2016-09-07T15:25:57Z","body":"@MattDavies I can't reproduce it... RN version is 31? "}}
{"actor":{"display_login":"DanielZlotin"}}