{"action":"opened","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/5848","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/5848/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/5848/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/5848/events","html_url":"https://github.com/godotengine/godot/issues/5848","id":166944104,"number":5848,"title":"The game crashes on GDScript error","user":{"login":"Zylann","id":1311555,"avatar_url":"https://avatars.githubusercontent.com/u/1311555?v=3","gravatar_id":"","url":"https://api.github.com/users/Zylann","html_url":"https://github.com/Zylann","followers_url":"https://api.github.com/users/Zylann/followers","following_url":"https://api.github.com/users/Zylann/following{/other_user}","gists_url":"https://api.github.com/users/Zylann/gists{/gist_id}","starred_url":"https://api.github.com/users/Zylann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zylann/subscriptions","organizations_url":"https://api.github.com/users/Zylann/orgs","repos_url":"https://api.github.com/users/Zylann/repos","events_url":"https://api.github.com/users/Zylann/events{/privacy}","received_events_url":"https://api.github.com/users/Zylann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T00:00:33Z","updated_at":"2016-07-22T00:00:33Z","closed_at":null,"body":"Tested on Godot 2.0.4 and 2.1 beta, Windows 10 64 bits\r\n\r\nUnder a specific error situation, the game crashes when I debug it from the editor. I can still get the script error, however the game is no longer running and the \"program stopped working\" window appears.\r\nI expected the error to occur and see the debugger pause the execution, not the game to crash.\r\n\r\nI simplified my project to the point I can't tell what is causing the error: I just see that if I disable one of two lines in the script, Godot no longer crashes.\r\n[ScriptErrorCrash.zip](https://github.com/godotengine/godot/files/377191/ScriptErrorCrash.zip)\r\nOpen the project and run it, crash.\r\nNow comment one of the indicated lines in terrain.gd, run again: no crash.\r\n\r\nBoth versions of Godot say this in the simplified project:\r\n```\r\nshit?: No error\r\nERROR: StreamPeerWinsock::read: Server disconnected!\r\n   At: platform\\windows\\stream_peer_winsock.cpp:210\r\n```\r\n\r\nIn the full project, this error occurs just before, maybe it's related:\r\n```\r\nERROR: PacketPeerStream::put_packet: Condition ' p_buffer_size+4 > temp_buffer.size() ' is true. returned: ERR_INVALID_PARAMETER\r\n   At: core\\io\\packet_peer.cpp:228\r\n```"}}
{"actor":{"display_login":"Zylann"}}