{"action":"created","issue":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/1946","repository_url":"https://api.github.com/repos/foosel/OctoPrint","labels_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1946/labels{/name}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1946/comments","events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1946/events","html_url":"https://github.com/foosel/OctoPrint/issues/1946","id":233101288,"number":1946,"title":"Cancel/Abort much slower in 1.3.4","user":{"login":"Givemeyourgits","id":1454872,"avatar_url":"https://avatars0.githubusercontent.com/u/1454872?v=3","gravatar_id":"","url":"https://api.github.com/users/Givemeyourgits","html_url":"https://github.com/Givemeyourgits","followers_url":"https://api.github.com/users/Givemeyourgits/followers","following_url":"https://api.github.com/users/Givemeyourgits/following{/other_user}","gists_url":"https://api.github.com/users/Givemeyourgits/gists{/gist_id}","starred_url":"https://api.github.com/users/Givemeyourgits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Givemeyourgits/subscriptions","organizations_url":"https://api.github.com/users/Givemeyourgits/orgs","repos_url":"https://api.github.com/users/Givemeyourgits/repos","events_url":"https://api.github.com/users/Givemeyourgits/events{/privacy}","received_events_url":"https://api.github.com/users/Givemeyourgits/received_events","type":"User","site_admin":false},"labels":[{"id":57696631,"url":"https://api.github.com/repos/foosel/OctoPrint/labels/status:awaiting%20information","name":"status:awaiting information","color":"fef2c0","default":false},{"id":93426895,"url":"https://api.github.com/repos/foosel/OctoPrint/labels/status:unreproduced","name":"status:unreproduced","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":55,"created_at":"2017-06-02T07:38:55Z","updated_at":"2017-07-13T07:32:55Z","closed_at":null,"body":"\r\n\r\n#### What were you doing?\r\n\r\nCanceling prints via Cura/Octoprint Web\r\n\r\nIf you encountered a problem with specific files of any sorts, make sure\r\nto also include a link to a file with which to reproduce the problem.]\r\n\r\n#### What did you expect to happen?\r\n\r\nCancel within 1 second\r\n\r\n#### What happened instead?\r\n\r\nCancels within 4-5+ seconds.  In 1.34 cancel was nearly instant.\r\n\r\n#### Did the same happen when running OctoPrint in safe mode?\r\n\r\nHave not tried\r\n\r\n#### Branch & Commit or Version of OctoPrint\r\n\r\nOctoPrint 1.3.4 (master branch)\r\n\r\n#### Operating System running OctoPrint\r\n\r\nOctopi\r\n\r\n#### Printer model & used firmware incl. version\r\n\r\nAnet A8\r\n\r\n#### Browser and Version of Browser, Operating System running Browser\r\n\r\nGoogle Chrome, Windows 10 Pro x64\r\n\r\n#### Link to octoprint.log\r\n\r\nN/A\r\n\r\n#### Link to contents of terminal tab or serial.log\r\n\r\nN/A\r\n\r\n#### Link to contents of Javascript console in the browser\r\n\r\nN/A\r\n\r\n#### Screenshot(s)/video(s) showing the problem:\r\n\r\nN/A\r\n\r\nI have read the FAQ.\r\n"},"comment":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/comments/314996578","html_url":"https://github.com/foosel/OctoPrint/issues/1946#issuecomment-314996578","issue_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1946","id":314996578,"user":{"login":"foosel","id":83657,"avatar_url":"https://avatars3.githubusercontent.com/u/83657?v=3","gravatar_id":"","url":"https://api.github.com/users/foosel","html_url":"https://github.com/foosel","followers_url":"https://api.github.com/users/foosel/followers","following_url":"https://api.github.com/users/foosel/following{/other_user}","gists_url":"https://api.github.com/users/foosel/gists{/gist_id}","starred_url":"https://api.github.com/users/foosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foosel/subscriptions","organizations_url":"https://api.github.com/users/foosel/orgs","repos_url":"https://api.github.com/users/foosel/repos","events_url":"https://api.github.com/users/foosel/events{/privacy}","received_events_url":"https://api.github.com/users/foosel/received_events","type":"User","site_admin":false},"created_at":"2017-07-13T07:32:54Z","updated_at":"2017-07-13T07:32:54Z","body":"@Givemeyourgits I can't know your network setup, but yes, in that case it sounds unlikely. I'm just saying that this might also be a possibility which is why the timing between clicking cancel & the printer state change in the log is also important.\r\n\r\n---\r\n\r\nAs a quick summary what we currently have from the logs here:\r\n\r\n  * `M114` reporting position immediately but then taking some sweet time to send the accompanying `ok` (in logs from @mrvanes, @TylonHH ) - only here did we actually see values above 10sec delay, and only in the logs from @TylonHH, so the perceived delays in the other cases must come from something else\r\n  * `M114` taking its sweet time to come up with the position report in the first place (in logs from @TylonHH, @Givemeyourgits)\r\n  * `M400` taking a while (depending on your firmware's buffer size this is to be expected btw, seen in logs from everyone)\r\n  * the first command *after* the `M400` & `M114` pair having a delay in the accompanying `ok` (in logs from @beeb)\r\n\r\nThe only idea I have left right now is to prepare a separate branch with the `M114` and `M400` pair removed on cancel for you to test against. Again, this stuff has been in there since 1.3.0/December 2016, so if you did not see your delays in 1.3.2 but are now seeing them in 1.3.4, this will most likely not change anything. But it's something to try and the only something I can come up with right now to maybe get some additional data points, especially since there simply were no changes in cancel behaviour at all between 1.3.2 and 1.3.3/1.3.4."}}
{"actor":{"display_login":"foosel"}}