{"action":"created","issue":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/2707","repository_url":"https://api.github.com/repos/foosel/OctoPrint","labels_url":"https://api.github.com/repos/foosel/OctoPrint/issues/2707/labels{/name}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/2707/comments","events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/2707/events","html_url":"https://github.com/foosel/OctoPrint/issues/2707","id":336577465,"node_id":"MDU6SXNzdWUzMzY1Nzc0NjU=","number":2707,"title":"Unregular ValueError during analyzation of gcode","user":{"login":"christianlupus","id":8202922,"node_id":"MDQ6VXNlcjgyMDI5MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/8202922?v=4","gravatar_id":"","url":"https://api.github.com/users/christianlupus","html_url":"https://github.com/christianlupus","followers_url":"https://api.github.com/users/christianlupus/followers","following_url":"https://api.github.com/users/christianlupus/following{/other_user}","gists_url":"https://api.github.com/users/christianlupus/gists{/gist_id}","starred_url":"https://api.github.com/users/christianlupus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianlupus/subscriptions","organizations_url":"https://api.github.com/users/christianlupus/orgs","repos_url":"https://api.github.com/users/christianlupus/repos","events_url":"https://api.github.com/users/christianlupus/events{/privacy}","received_events_url":"https://api.github.com/users/christianlupus/received_events","type":"User","site_admin":false},"labels":[{"id":326275175,"node_id":"MDU6TGFiZWwzMjYyNzUxNzU=","url":"https://api.github.com/repos/foosel/OctoPrint/labels/type:potential%20bug","name":"type:potential bug","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-28T11:13:20Z","updated_at":"2018-06-29T08:43:34Z","closed_at":"2018-06-29T08:43:34Z","author_association":"NONE","body":"<!--\r\nREAD THE FOLLOWING FIRST:\r\n\r\nIf not already done, please read the the Contribution Guidelines that\r\nare linked to the right under \"Helpful resources\" > \"Contributing\".\r\n\r\nAlso read the FAQ: https://faq.octoprint.org\r\n\r\nThis is a bug and feature tracker, please only use it to report bugs\r\nor request features within OctoPrint (not OctoPi, not any OctoPrint\r\nplugins and not unofficial OctoPrint versions).\r\n\r\nDo not seek support here (\"I need help with ...\", \"I have a\r\nquestion ...\"), that belongs on the community forum at \r\ndiscourse.octoprint.org, NOT here.\r\n\r\nMark requests with a \"[Request]\" prefix in the title please. For bug\r\nreports fully fill out the bug reporting template (if you don't know\r\nwhere to find some information - it's all described in the Contribution\r\nGuidelines linked up there in the big yellow box).\r\n\r\nWhen reporting a bug do NOT delete ANY lines from the template.\r\n\r\nMake sure any bug you want to report is still present with the CURRENT\r\nOctoPrint version and that it does not vanish when you start OctoPrint\r\nin safe mode - how to do that is also explained in the Contribution\r\nGuidelines linked up there in the big yellow box.\r\n\r\nThank you!\r\n-->\r\n\r\n#### What were you doing?\r\n\r\n<!-- \r\nPlease be as specific as possible here. The maintainers will need to\r\nreproduce your issue in order to fix it and that is not possible if they\r\ndon't know what you did to get it to happen in the first place.\r\n\r\nIdeally provide exact steps to follow in order to reproduce your problem:\r\n-->\r\n\r\nI simply sliced a STL file in Slic3r and made a automatic upload to the OP server.\r\n\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\r\n#### What did you expect to happen?\r\n\r\nThe file gets accepted and the server continues to run.\r\n\r\n#### What happened instead?\r\n\r\nFrom time to time, the OP server renders itself unresponsive after a short period of time after the upload. This happens (unfortunately for the debugging) not deterministically. At least I did not find any indicator when it happens.\r\nI have the intuition that it happens more frequently if the OP server did some printing before. A clean restart from SSH often solves the problem.\r\n\r\nWhen monitoring the pi after an upload, I see an additional process in the list of threads of OP that seems to analyse the gcode:\r\n\r\n    /home/printer/OctoPrint/virt/bin/python2 -m octoprint analysis gcode <...>\r\n\r\nThis process must terminate before I start printing. Either it succeeds, then I can start printing. Sometimes it seems to fail. (I will attach an log of OP.) Then the complete OP server stalls and is no longer reachable. I can only `kill` the individual subprocesses of OP and at some point OP will shut down. However this will ruin any running print.\r\n\r\nWhen looking into the logs live during such a failure, every ~30 seconds a message about an unknown format code appears (see log). The CPU load drops to about nothing. The whole OP server seems to wait for an external event that cannot/will not happen.\r\n\r\n#### Did the same happen when running OctoPrint in safe mode?\r\n\r\n<!-- \r\nTest if you can reproduce your problem in safe mode. You can find information\r\non how to enable safe mode in the Contribution Guidelines.\r\n\r\nIf you can't reproduce in safe mode, this is a bug with one of your\r\ninstalled third party plugins. Don't open a ticket here!\r\n\r\nIf you can't test this in safe mode, state why.\r\n-->\r\n\r\nI cannot try as I would have to run OP in safe mode continuously to test if it was an issue. This is not a good idea in a \"productive\" environment.\r\n\r\n#### Version of OctoPrint\r\n\r\n<!--\r\nCan be found in the lower left corner of the web interface. ALWAYS INCLUDE.\r\n-->\r\n\r\n1.3.9rc1 (fdf0f75ffa5731fee406c6e761e84a9d2b47aa43)\r\n\r\n#### Operating System running OctoPrint\r\n\r\n<!--\r\nOctoPi, Linux, Windows, MacOS, something else? With version please.\r\nOctoPi's version can be found in /etc/octopi_version or in the lower left\r\ncorner of the web interface.\r\n-->\r\n\r\nRaspbian jessie\r\n\r\n#### Printer model & used firmware incl. version\r\n\r\n<!--\r\nIf applicable, always include if unsure.\r\n-->\r\nZonestar Q802N\r\n\r\n#### Browser and version of browser, operating system running browser\r\n\r\n<!--\r\nIf applicable, always include if unsure.\r\n-->\r\nLinux, Firefox 60.0.2\r\n\r\n#### Link to octoprint.log\r\n\r\n<!--\r\nOn gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate.\r\n\r\nThe Contribution Guidelines tell you where to find that.\r\n-->\r\nhttps://gist.github.com/christianlupus/7b84b4fe0ac4dfd68c9235f617a4e010\r\n\r\n#### Link to contents of terminal tab or serial.log\r\n\r\n<!--\r\nOn gist.github.com or pastebin.com. If applicable, always include if unsure or\r\nreporting communication issues. Never truncate.\r\n\r\nserial.log is usually not written due to performance reasons and must be\r\nenabled explicitly. Provide at the very least the FULL contents of your\r\nterminal tab at the time of the bug occurrence, even if you do not have\r\na serial.log (which the Contribution Guidelines tell you where to find).\r\n-->\r\n\r\nNot a communication problem with the printer but inside OP. Thus no serial logs attached.\r\n\r\n#### Link to contents of Javascript console in the browser\r\n\r\n<!--\r\nOn gist.github.com or pastebin.com or alternatively a screenshot. If applicable -\r\nalways include if unsure or reporting UI issues.\r\n\r\nThe Contribution Guidelines tell you where to find that.\r\n-->\r\n\r\nOP server is completely unresponsive. Thus no logs here.\r\n\r\n#### Side remarks\r\n\r\nI recently updated to the 1.3.9 RC. I do not know if this error here is related to #2688.\r\n\r\nI have read the FAQ.\r\n"},"comment":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/comments/401290189","html_url":"https://github.com/foosel/OctoPrint/issues/2707#issuecomment-401290189","issue_url":"https://api.github.com/repos/foosel/OctoPrint/issues/2707","id":401290189,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTI5MDE4OQ==","user":{"login":"christianlupus","id":8202922,"node_id":"MDQ6VXNlcjgyMDI5MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/8202922?v=4","gravatar_id":"","url":"https://api.github.com/users/christianlupus","html_url":"https://github.com/christianlupus","followers_url":"https://api.github.com/users/christianlupus/followers","following_url":"https://api.github.com/users/christianlupus/following{/other_user}","gists_url":"https://api.github.com/users/christianlupus/gists{/gist_id}","starred_url":"https://api.github.com/users/christianlupus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianlupus/subscriptions","organizations_url":"https://api.github.com/users/christianlupus/orgs","repos_url":"https://api.github.com/users/christianlupus/repos","events_url":"https://api.github.com/users/christianlupus/events{/privacy}","received_events_url":"https://api.github.com/users/christianlupus/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T08:43:34Z","updated_at":"2018-06-29T08:43:34Z","author_association":"NONE","body":"OK, I disabled the plugin now. I know that it is bad to have a non-deterministic problem and no clue. This is why I tried to explain so much in the section \"what happens\".\r\n\r\nI will have a closer look if the issue persists, however this will take some time. I finished printing the parts for my current project last night and next I need to focus on other parts of it, so the printer will be used less in the near future, I fear.\r\n\r\nTo avoid scattering your issue list, I will assume, that the plugin is responsible and close this issue for now (reopen if I find the problem unrelated to the plugin)."}}
{"actor":{"display_login":"christianlupus"}}