{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/27","repository_url":"https://api.github.com/repos/FormidableLabs/victory-native","labels_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/27/comments","events_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/27/events","html_url":"https://github.com/FormidableLabs/victory-native/issues/27","id":186194094,"number":27,"title":"render VictoryChart will crash when more times ----only on android","user":{"login":"samuelltk","id":1639741,"avatar_url":"https://avatars.githubusercontent.com/u/1639741?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelltk","html_url":"https://github.com/samuelltk","followers_url":"https://api.github.com/users/samuelltk/followers","following_url":"https://api.github.com/users/samuelltk/following{/other_user}","gists_url":"https://api.github.com/users/samuelltk/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelltk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelltk/subscriptions","organizations_url":"https://api.github.com/users/samuelltk/orgs","repos_url":"https://api.github.com/users/samuelltk/repos","events_url":"https://api.github.com/users/samuelltk/events{/privacy}","received_events_url":"https://api.github.com/users/samuelltk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-31T03:07:31Z","updated_at":"2016-11-28T13:35:10Z","closed_at":null,"body":"getTransitionData() {\r\n    const n = random(4, 10)\r\n    return range(n).map((i) => {\r\n      return {\r\n        x: i,\r\n        y: random(2, 10)\r\n      };\r\n    });\r\n  }\r\n\r\n  componentDidMount() {\r\n    setInterval(() => {\r\n      this.setState({\r\n        transitionData: this.getTransitionData(),\r\n      });\r\n    }, 1000);\r\n  }\r\n\r\n  render() {\r\n    var datas=this.state.transitionData;\r\n    return (\r\n      <View style={styles.container}>\r\n        <VictoryChart\r\n          width={width}\r\n          padding={{left:50,right:25,top:20,bottom}}\r\n          >\r\n            <VictoryAxis\r\n              style={{\r\n                axis: {stroke: \"black\", strokeWidth:1},\r\n                ticks: {stroke: \"red\",size:4},\r\n                tickLabels: {fontSize: 18},\r\n                axisLabel: {fontsize: 36}\r\n              }}\r\n              tickValues={[0,1,2,3,4,5,6,7,8]}\r\n              domain={[0, 9]}\r\n              orientation=\"bottom\"\r\n              tickFormat={(x) => x}/>\r\n            <VictoryAxis\r\n              dependentAxis\r\n              style={{\r\n                axis: {stroke: \"black\", strokeWidth:1},\r\n                ticks: {stroke: \"red\",size:4},\r\n                grid: {stroke: \"gray\",strokeWidth: 1,strokeDasharray:\"5,5\"},\r\n                tickLabels: {fontSize: 12},\r\n              }}\r\n              domain={[-7, 20]}\r\n              tickFormat={(y) => y}\r\n            />\r\n            <VictoryLine\r\n              label=\"Line\"\r\n              style={{\r\n                data: {\r\n                  stroke: \"teal\",\r\n                  strokeWidth:1,\r\n                },\r\n                labels: {fontSize: 12}\r\n              }}\r\n              data={datas}/>\r\n\r\n            <VictoryScatter\r\n              width={400}\r\n              height={300}\r\n              standalone={false}\r\n              style={{\r\n                data: {\r\n                  fill: (data) => data.y < 2 ? \"red\" : \"green\"\r\n                },\r\n                labels: {\r\n                  fill: \"#ff00ff\",\r\n                  fontSize: 14,\r\n                  padding: 12\r\n                }\r\n              }}\r\n              size={4}\r\n              labels={[\r\n               \"a\", \"\", \"\", \"MaxValue\",\r\n              ]}\r\n              data={datas}\r\n            />\r\n        </VictoryChart>\r\n      </View>\r\n    );\r\n  }\r\n}\r\n\r\nThe app will crash when states change more times. please help me, thanks.\r\n\r\n10-27 23:09:21.858 15712-15762/com.myvictorytest A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x90cd005c in tid 15762 (mqt_js)\r\n10-27 23:09:24.828 15712-15712/com.myvictorytest I/Choreographer: Skipped 170 frames! The application may be doing too much work on its main thread."},"comment":{"url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/comments/263272436","html_url":"https://github.com/FormidableLabs/victory-native/issues/27#issuecomment-263272436","issue_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/27","id":263272436,"user":{"login":"jevakallio","id":1203949,"avatar_url":"https://avatars.githubusercontent.com/u/1203949?v=3","gravatar_id":"","url":"https://api.github.com/users/jevakallio","html_url":"https://github.com/jevakallio","followers_url":"https://api.github.com/users/jevakallio/followers","following_url":"https://api.github.com/users/jevakallio/following{/other_user}","gists_url":"https://api.github.com/users/jevakallio/gists{/gist_id}","starred_url":"https://api.github.com/users/jevakallio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jevakallio/subscriptions","organizations_url":"https://api.github.com/users/jevakallio/orgs","repos_url":"https://api.github.com/users/jevakallio/repos","events_url":"https://api.github.com/users/jevakallio/events{/privacy}","received_events_url":"https://api.github.com/users/jevakallio/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T13:35:10Z","updated_at":"2016-11-28T13:35:10Z","body":"@samuelltk the fix on `react-native-svg` did not fix the issue, and has been rolled back in `4.3.3`. \r\n\r\nHowever I've discovered that the issue does not occur when you turn off the JS Dev mode in: `Developer Menu (Shake / Cmd+M) > Dev Settings > JS Dev Mode`. This makes it a bit harder do debug javascript errors, but in my tests the Victory charts are 100% stable with the dev mode off. "}}
{"actor":{"display_login":"jevakallio"}}