{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/2892","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2892/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2892/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2892/events","html_url":"https://github.com/wix/react-native-navigation/issues/2892","id":306667454,"node_id":"MDU6SXNzdWUzMDY2Njc0NTQ=","number":2892,"title":"IllegalViewOperationException: Trying to add unknown view tag","user":{"login":"brunolemos","id":619186,"node_id":"MDQ6VXNlcjYxOTE4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/619186?v=4","gravatar_id":"","url":"https://api.github.com/users/brunolemos","html_url":"https://github.com/brunolemos","followers_url":"https://api.github.com/users/brunolemos/followers","following_url":"https://api.github.com/users/brunolemos/following{/other_user}","gists_url":"https://api.github.com/users/brunolemos/gists{/gist_id}","starred_url":"https://api.github.com/users/brunolemos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunolemos/subscriptions","organizations_url":"https://api.github.com/users/brunolemos/orgs","repos_url":"https://api.github.com/users/brunolemos/repos","events_url":"https://api.github.com/users/brunolemos/events{/privacy}","received_events_url":"https://api.github.com/users/brunolemos/received_events","type":"User","site_admin":false},"labels":[{"id":534815806,"node_id":"MDU6TGFiZWw1MzQ4MTU4MDY=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/platform:%20Android","name":"platform: Android","color":"bfdadc","default":false},{"id":828174913,"node_id":"MDU6TGFiZWw4MjgxNzQ5MTM=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/v1","name":"v1","color":"2cd6a0","default":false},{"id":602711689,"node_id":"MDU6TGFiZWw2MDI3MTE2ODk=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/v2","name":"v2","color":"5319e7","default":false},{"id":951486993,"node_id":"MDU6TGFiZWw5NTE0ODY5OTM=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/%F0%9F%93%8C%20pinned","name":"📌 pinned","color":"FFFFFF","default":false}],"state":"closed","locked":false,"assignee":{"login":"guyca","id":12352397,"node_id":"MDQ6VXNlcjEyMzUyMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/12352397?v=4","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false},"assignees":[{"login":"guyca","id":12352397,"node_id":"MDQ6VXNlcjEyMzUyMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/12352397?v=4","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/wix/react-native-navigation/milestones/1","html_url":"https://github.com/wix/react-native-navigation/milestone/1","labels_url":"https://api.github.com/repos/wix/react-native-navigation/milestones/1/labels","id":1914844,"node_id":"MDk6TWlsZXN0b25lMTkxNDg0NA==","number":1,"title":"2.x.x Complete Rewrite (full feature parity)","description":"Complete API redesign, react-native-controllers deprecation and merge, android and iOS redesign, (almost) complete feature parity, screen lifecycle, static Navigation commands, commands per screenId, complete test coverage","creator":{"login":"DanielZlotin","id":6660239,"node_id":"MDQ6VXNlcjY2NjAyMzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6660239?v=4","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},"open_issues":59,"closed_issues":311,"state":"open","created_at":"2016-08-01T07:15:56Z","updated_at":"2018-10-11T04:42:07Z","due_on":null,"closed_at":null},"comments":37,"created_at":"2018-03-19T22:53:39Z","updated_at":"2018-10-11T13:34:38Z","closed_at":"2018-08-02T16:14:56Z","author_association":"NONE","body":"<!--\r\n  Please post questions in Stack Overflow under the react-native-navigation tag\r\n  https://stackoverflow.com/questions/tagged/react-native-navigation\r\n-->\r\n\r\n### Issue Description\r\n\r\n1% of the users are facing this crash. Do you have any idea what could it be?\r\n\r\n```\r\ncom.facebook.react.uimanager.IllegalViewOperationException\r\ncom.reactnativenavigation.controllers.NavigationActivity\r\nTrying to add unknown view tag: 1234\r\n```\r\n\r\nI noticed most of these users had this weird behavior of `ActivityLifecycle` being triggered multiple times at the same time (`onDestroy()`, `onStop()`, `onResume()`,  `onStart()`, `onCreate()`, etc). What could cause this?\r\n\r\n<img width=\"1065\" alt=\"image\" src=\"https://user-images.githubusercontent.com/619186/37626535-285d338c-2baf-11e8-83eb-4fb5b3df08bb.png\">\r\n\r\nStack points to https://github.com/facebook/react-native/blob/353c070be9e9a5528d2098db4df3f0dc02d758a9/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java#L479 but I didn't have this before migrating to react-native-navigation afaik.\r\n\r\n```\r\n04-29 07:07:05.094 25419-25452/com.reactnativenavigation.playground E/unknown:ReactNative: Exception in native call\r\n    com.facebook.react.uimanager.IllegalViewOperationException: Trying to add unknown view tag: 70\r\n        at com.facebook.react.uimanager.UIImplementation.setChildren(UIImplementation.java:480)\r\n        at com.facebook.react.uimanager.UIManagerModule.setChildren(UIManagerModule.java:448)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:374)\r\n        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)\r\n        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)\r\n        at android.os.Handler.handleCallback(Handler.java:789)\r\n        at android.os.Handler.dispatchMessage(Handler.java:98)\r\n        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)\r\n        at android.os.Looper.loop(Looper.java:164)\r\n        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)\r\n        at java.lang.Thread.run(Thread.java:764)\r\n```\r\n\r\n### Steps to Reproduce / Code Snippets / Screenshots\r\n\r\nCould not reproduce, but maybe you could give some insights.\r\n\r\n---\r\n### Environment\r\n* React Native Navigation version: 1.1.365\r\n* React Native version: 0.54.0\r\n* Platform(s) (iOS, Android, or both?): Android only\r\n* Device info (Simulator/Device? OS version? Debug/Release?): Release\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/428957260","html_url":"https://github.com/wix/react-native-navigation/issues/2892#issuecomment-428957260","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/2892","id":428957260,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODk1NzI2MA==","user":{"login":"SudoPlz","id":3070948,"node_id":"MDQ6VXNlcjMwNzA5NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/3070948?v=4","gravatar_id":"","url":"https://api.github.com/users/SudoPlz","html_url":"https://github.com/SudoPlz","followers_url":"https://api.github.com/users/SudoPlz/followers","following_url":"https://api.github.com/users/SudoPlz/following{/other_user}","gists_url":"https://api.github.com/users/SudoPlz/gists{/gist_id}","starred_url":"https://api.github.com/users/SudoPlz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SudoPlz/subscriptions","organizations_url":"https://api.github.com/users/SudoPlz/orgs","repos_url":"https://api.github.com/users/SudoPlz/repos","events_url":"https://api.github.com/users/SudoPlz/events{/privacy}","received_events_url":"https://api.github.com/users/SudoPlz/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T13:34:38Z","updated_at":"2018-10-11T13:34:38Z","author_association":"CONTRIBUTOR","body":"I'm afraid I don't have a way of re-creating that crash in a simple react-native project. In our project, we can re-create that by [synchronously/manually](https://github.com/SudoPlz/react-native-synchronous-list/blob/master/lib/android/src/main/java/com/sudoplz/rnsynchronouslistmanager/Views/SyncRootView.java#L172) creating `RCTRootViews` and using them in a RecyclerList view."}}
{"actor":{"display_login":"SudoPlz"}}