{"action":"opened","issue":{"url":"https://api.github.com/repos/randomPoison/amethyst-editor-sync/issues/12","repository_url":"https://api.github.com/repos/randomPoison/amethyst-editor-sync","labels_url":"https://api.github.com/repos/randomPoison/amethyst-editor-sync/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/randomPoison/amethyst-editor-sync/issues/12/comments","events_url":"https://api.github.com/repos/randomPoison/amethyst-editor-sync/issues/12/events","html_url":"https://github.com/randomPoison/amethyst-editor-sync/issues/12","id":365125155,"node_id":"MDU6SXNzdWUzNjUxMjUxNTU=","number":12,"title":"Panic when syncing many entities","user":{"login":"mvesterli","id":8142014,"node_id":"MDQ6VXNlcjgxNDIwMTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8142014?v=4","gravatar_id":"","url":"https://api.github.com/users/mvesterli","html_url":"https://github.com/mvesterli","followers_url":"https://api.github.com/users/mvesterli/followers","following_url":"https://api.github.com/users/mvesterli/following{/other_user}","gists_url":"https://api.github.com/users/mvesterli/gists{/gist_id}","starred_url":"https://api.github.com/users/mvesterli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvesterli/subscriptions","organizations_url":"https://api.github.com/users/mvesterli/orgs","repos_url":"https://api.github.com/users/mvesterli/repos","events_url":"https://api.github.com/users/mvesterli/events{/privacy}","received_events_url":"https://api.github.com/users/mvesterli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-29T11:43:22Z","updated_at":"2018-09-29T11:43:22Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If the synchronization message is greater than supported by the socket, it fails to send and therefore panics.\r\nOn windows 10 this limit is 64kB, which is ~2500 empty entities and significantly less when components are involved.\r\n\r\nThis code causes the error on my machine.\r\n```rust\r\nextern crate amethyst;\r\nextern crate amethyst_editor_sync;\r\n\r\nuse amethyst::prelude::*;\r\nuse amethyst_editor_sync::*;\r\n\r\nstruct TestState;\r\n\r\nimpl<'a, 'b> SimpleState<'a, 'b> for TestState {\r\n    fn on_start(&mut self, data: StateData<GameData>) {\r\n        for _ in 0..2_500 {\r\n            data.world.create_entity().build();\r\n        }\r\n    }\r\n}\r\n\r\nfn main() -> amethyst::Result<()> {\r\n    let editor_sync_bundle = SyncEditorBundle::new();\r\n    let game_data = GameDataBuilder::default()\r\n        .with_bundle(editor_sync_bundle)?;\r\n    let mut game = Application::build(\".\", TestState)?\r\n        .build(game_data)?;\r\n    game.run();\r\n    Ok(())\r\n}\r\n```"}}
{"actor":{"display_login":"mvesterli"}}