From 440ccf165e2c5a9ed97a2d6842cc4699aaaa9fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Apr 2018 11:50:16 +0200 Subject: [PATCH 1/4] [Docs] Add missing image Fixes #2557 --- ...ndledplugins-printer_safety_check-example.png | Bin 0 -> 6695 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/images/bundledplugins-printer_safety_check-example.png diff --git a/docs/images/bundledplugins-printer_safety_check-example.png b/docs/images/bundledplugins-printer_safety_check-example.png new file mode 100644 index 0000000000000000000000000000000000000000..c6bac3a8e0907a853947a28e5d7069d1dcace12c GIT binary patch literal 6695 zcmbVRcT|(jmkuftKq1s1)re9ADGGvA30;sVNR!?~1qn@RAc%>PBIQFsYQzF6B?5xd zB{V6Dh!7-5hfsx(Kqx7j@3;HUp53$i?Y`%{Gw<9p_spG{JI|f>xk=Y-%#ZVk^8f&V zOZcJjyN|Ds?ZgD~>Q*b10zdo8&UPam3%~su2KCoz6@5;$*kEgDsrH z006#@zh90X_#0ogP%zxoDclZzD?HLG)DK`D>gN{}b{ihlktINoI0KhZ&Bnpr) z^8j=R@Q4cv1c*rkApp;)|5oV0JL8xxeHFRiHCQ&qSi%g$SqoS%HL*Y;vwV|r6Y-J$ zvyfNZ6#!4R$ZAySQ8_B(=V-q0(TDBzzOU@{D+Hmgr91sx=9jIWnAl#MRKH^%O1X|&{k`6ty5e(iKqsjJ%G ztAmuEL>uVGb=(bbNwyy_Zb;fJ%#TaI1E0XUe?Q_eg*B)d_v&!rF9YMTtrzrJ=HZ3A z7@-=hcwF`fI>Sk{!qqorZzHWGI(=zREuR&qD&Eg|)X4 z9A3Koi`s=tRUhCJ#ODQjB*S#xpJ{CgO?ds?gh$}Z&*J2oFV%;?RX#JECb$XUV*+zP zE8wFS%M>TGC7W8?(;HzF(F2er6TI{Ga=KMC?rWBJXj~sSoAiT=z4aa3=*^L395RVd z%5uOYleyqddHY`BwoQ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BMg!(P>|$#*)e z%J@7Z{-RqBFdEM`6!nnn9QVaBA!)BeGS0BQRU!1dP|3JqzsIXc*Kcm`XLX%4xVRyZ zfalpwH~;u!4QK=4g7RktMg096uWRl=ngic#N^qU=2JZpC8@bCO022lvJTb8t=+JyK z?JSC_QQh;=Y5M#F(BvWaiJR~OF=L*YJ}@`HhV!2=9JTi#%`DO~R~yqeMqHHxFnuxM zZ$gz~D$}iN}M6dF}QN#L0b)-I)I02lu5Za??RO9ZkEC!~ZMOAKd0Mfb^cxDnUoP7orQLo`# z+wfM+pbCCKu!f2g@Z~3Aq&&FmVal-?Tv2e5B`^y|uXk`G%)YJsyGOk$>a_d#v#}_3 z?|ZJNO(dR>nJ>l)U4co{s$HjV z+w^}<29O-kn~{e5GgRbMybz9^J&4UP%XHX&e+9^*reI-6#yYZ72>=+Aes%p{96uf> zt-p1}N@%7R1bBbOBFmz{;-y7-jMEv^k*k;QT4fC#1pl1_NX(SWyttiwvic^QL-WM_ zi%F}!3G`@=QrC~&3EW?+9W0fH6|efPk6d1s! zX6^{y5xR2&Csrj0wROp7uS`A99pO9n{Om-;Q&CtVAmN;`xarN24tAP?HUj{>zaLY_ o!(O_v Date: Mon, 9 Apr 2018 12:38:56 +0200 Subject: [PATCH 2/4] Preparing release of 1.3.7 --- CHANGELOG.md | 67 +++++++++++++++++++++++---------------------------- SUPPORTERS.md | 3 ++- 2 files changed, 32 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 963eb5425..560a28bbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,45 +1,11 @@ # OctoPrint Changelog -## 1.3.7rc4 (2018-04-04) - -### Bugfixes - - * [#2536](https://github.com/foosel/OctoPrint/issues/2536) - Fix a wrong state tracking when starting an SD print through the controller, causing a disconnect due to a timeout. - * [#2544](https://github.com/foosel/OctoPrint/issues/2544) - Fix an exception when connecting to the raw websocket at `/sockjs/websocket` (instead of `/sockjs///websocket`). - * [#2546](https://github.com/foosel/OctoPrint/issues/2546) - Fix the `PRINT_FAILED` event getting triggered twice on print failure due to disconnect - -([Commits](https://github.com/foosel/OctoPrint/compare/1.3.7rc3...1.3.7rc4)) - -## 1.3.7rc3 (2018-03-29) - -### Bugfixes - - * [#2524](https://github.com/foosel/OctoPrint/issues/2524) Ignore `wait` while job is on hold. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.3.7rc2...1.3.7rc3)) - -## 1.3.7rc2 (2018-03-23) - -### Bugfixes - - * [#1951](http://github.com/foosel/OctoPrint/issues/1951) - Fixed plugins being able to modify internal state data (e.g. progress, job), causing concurrent modification and resulting run time errors in the printer state processing. - * [#2494](https://github.com/foosel/OctoPrint/issues/2494) - Fixed `undefined` values not saving in the settings. - * [#2499](https://github.com/foosel/OctoPrint/issues/2499) - Fixed communication error notification lacking the actual error message. - * [#2501](https://github.com/foosel/OctoPrint/issues/2501) - Fixed a bug causing log downloads to fail with an HTTP 500 error. - * [#2506](https://github.com/foosel/OctoPrint/issues/2506) - Fixed `printer.get_current_data` and `printer.get_current_job` returning `frozendict` instead of `dict` instances, causing issues with plugins relying on being able to modify the returned data (e.g. [dattas/OctoPrint-DetailedProgress#26](https://github.com/dattas/OctoPrint-DetailedProgress/issues/26)). - * [#2508](https://github.com/foosel/OctoPrint/issues/2508) - Fixed HTTP 500 error on `/api/slicing` in case of an unconfigured slicer. - * Have `OctoPrintJsonEncoder` fall back to regular flask JSON encoder, otherwise we might not be able to serialize some data types we need to be able to serialize. - * Use `pkg_resources` to determine pip version during environment check instead of `import pip; pip.__version__` since the latter causes issues with pip version 9.0.2. In the same spirit make `pip.main` approach of calling `pip` in the PipCaller the last resort during auto detection, only after trying `pip` or `pip.exe` inside the same folder as the Python executable. - * Use `octoprint.util.monotonic_time` instead of `monotonic.monotonic` in comm layer. - * Fixed timelapse not stopping on print failure due to firmware error due to missing `PrintFailed` event. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.3.7rc1...1.3.7rc2)) - -## 1.3.7rc1 (2018-03-19) +## 1.3.7 (2018-04-09) ### Improvements * [#324](https://github.com/foosel/OctoPrint/issues/324) & [#2414](https://github.com/foosel/OctoPrint/issues/2414) - Native support for the following [@ commands](http://docs.octoprint.org/en/maintenance/features/atcommands.html): `@pause` (pauses the print), `@resume` (resumes the print), `@cancel` or `@abort` (cancels the print). More commands can be added through the plugin hooks [`octoprint.comm.protocol.atcommand.*`](http://docs.octoprint.org/en/maintenance/plugins/hooks.html#octoprint-comm-protocol-atcommand-phase). + * [#1951](http://github.com/foosel/OctoPrint/issues/1951) - Fixed plugins being able to modify internal state data (e.g. progress, job), causing concurrent modification and resulting run time errors in the printer state processing. * [#2208](https://github.com/foosel/OctoPrint/issues/2208) - New plugin hook [`octoprint.comm.protocol.gcode.error`](http://docs.octoprint.org/en/maintenance/plugins/hooks.html#octoprint-comm-protocol-gcode-error) to allow plugins to override OctoPrint's handling of `Error:`/`!!` messages reported by the firmware. Can be used to "downgrade" errors that aren't actually fatal errors that make the printer halt. * [#2213](https://github.com/foosel/OctoPrint/issues/2213) - Made sure to prevent accidental configuration of a temperature cutoff value less than 1min for the temperature graph. * [#2250](https://github.com/foosel/OctoPrint/pull/2250) - Added [`octoprint.util.ResettableTimer`](http://docs.octoprint.org/en/maintenance/modules/util.html#octoprint.util.ResettableTimer) helper class. @@ -50,6 +16,7 @@ * Firmware must send a "File opened: ..." message on start of the print * Firmware must respond to an immediately sent `M27` with `SD printing byte /` * Firmware must stay responsive during ongoing print to allow for regular M27 polls (or push those automatically) or M25 to pause/cancel the print through OctoPrint. + * Firmware must send `Done printing file` or respond to `M27` with `Not SD printing` when SD printing finishes (either due to being done or to having been cancelled by the user). * [#2362](https://github.com/foosel/OctoPrint/issues/2362) - Added option to configure timelapse snapshot timeout. * [#2367](https://github.com/foosel/OctoPrint/issues/2367) - Added support for `//action:cancel` action command. * [#2378](https://github.com/foosel/OctoPrint/issues/2378) - Made GCODE viewer gracefully handle GCODE subcodes. @@ -104,11 +71,37 @@ * [#2426](https://github.com/foosel/OctoPrint/issues/2426) - Made resend logging to `octoprint.log` unicode safe * [#2442](https://github.com/foosel/OctoPrint/issues/2442) - Don't even import disabled plugins, use a dummy entry for them just like for backlisted plugins. More resilience against misbehaving plugins. * [#2461](https://github.com/foosel/OctoPrint/issues/2461) - Fixed OctoPrint not properly disconnecting in case of a firmware error. + * [#2494](https://github.com/foosel/OctoPrint/issues/2494) - Fixed `undefined` values not saving in the settings. + * [#2499](https://github.com/foosel/OctoPrint/issues/2499) (regression) - Fixed communication error notification lacking the actual error message. + * [#2501](https://github.com/foosel/OctoPrint/issues/2501) (regression) - Fixed a bug causing log downloads to fail with an HTTP 500 error. + * [#2506](https://github.com/foosel/OctoPrint/issues/2506) (regression) - Fixed `printer.get_current_data` and `printer.get_current_job` returning `frozendict` instead of `dict` instances, causing issues with plugins relying on being able to modify the returned data (e.g. [dattas/OctoPrint-DetailedProgress#26](https://github.com/dattas/OctoPrint-DetailedProgress/issues/26)). + * [#2508](https://github.com/foosel/OctoPrint/issues/2508) (regression) - Fixed HTTP 500 error on `/api/slicing` in case of an unconfigured slicer. + * [#2524](https://github.com/foosel/OctoPrint/issues/2524) - Ignore `wait` while job is on hold. + * [#2536](https://github.com/foosel/OctoPrint/issues/2536) - Fix a wrong state tracking when starting an SD print through the controller, causing a disconnect due to a timeout. + * [#2544](https://github.com/foosel/OctoPrint/issues/2544) (regression) - Fix an exception when connecting to the raw websocket at `/sockjs/websocket` (instead of `/sockjs///websocket`). + * [#2546](https://github.com/foosel/OctoPrint/issues/2546) (regression) - Fix the `PRINT_FAILED` event getting triggered twice on print failure due to disconnect + * Use `pkg_resources` to determine pip version during environment check instead of `import pip; pip.__version__` since the latter causes issues with pip version 9.0.2. In the same spirit make `pip.main` approach of calling `pip` in the PipCaller the last resort during auto detection, only after trying `pip` or `pip.exe` inside the same folder as the Python executable. + * Use `octoprint.util.monotonic_time` instead of `monotonic.monotonic` in comm layer. + * Fixed timelapse not stopping on print failure due to firmware error due to missing `PrintFailed` event. * Announcement Plugin: Fixed a missing line break in case of more than three announcements in a notification. * Docs: Documentation for printer profile related bits and pieces * Docs: Various fixes of typos and grammar. + * Have `OctoPrintJsonEncoder` fall back to regular flask JSON encoder, otherwise we might not be able to serialize some data types we need to be able to serialize. (regression) -([Commits](https://github.com/foosel/OctoPrint/compare/1.3.6...1.3.7rc1)) +### Known bugs + + * [#2547](https://github.com/foosel/OctoPrint/issues/2547) - Error during processing of afterPrintJobDone script will trigger PRINT_FAILED event even though PRINT_DONE event was already triggered + +### More Information + + * [Commits](https://github.com/foosel/OctoPrint/compare/1.3.6...1.3.7) + * Release Candidates: + * [1.3.7rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.7rc1) + * [1.3.7rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.7rc2) + * [1.3.7rc3](https://github.com/foosel/OctoPrint/releases/tag/1.3.7rc3) + * [1.3.7rc4](https://github.com/foosel/OctoPrint/releases/tag/1.3.7rc4) + * A special **Thank you!** to everyone who reported back on these release candidates this time: + [aaronkeck](https://github.com/aaronkeck), [akurz42](https://github.com/akurz42), [andrivet](https://github.com/andrivet), [anthonyst91](https://github.com/anthonyst91), [arhi](https://github.com/arhi), [b-morgan](https://github.com/b-morgan), [BryanSmithDev](https://github.com/BryanSmithDev), [chippypilot](https://github.com/chippypilot), [ChrisHeerschap](https://github.com/ChrisHeerschap), [Crowlord](https://github.com/Crowlord), [dforsi](https://github.com/dforsi), [drdelaney](https://github.com/drdelaney), [FormerLurker](https://github.com/FormerLurker), [goeland86](https://github.com/goeland86), [inspiredbylife](https://github.com/inspiredbylife), [jbjones27](https://github.com/jbjones27), [jesasi](https://github.com/jesasi), [jneilliii](https://github.com/jneilliii), [JohnOCFII](https://github.com/JohnOCFII), [kantlivelong](https://github.com/kantlivelong), [lnx13](https://github.com/lnx13), [makaper](https://github.com/makaper), [markwal](https://github.com/markwal), [MiquelAdell](https://discourse.octoprint.org/u/MiquelAdell), [ml0w](https://github.com/ml0w), [mmotley999](https://github.com/mmotley999), [mrhanman](https://github.com/mrhanman), [SCiunczyk](https://github.com/SCiunczyk), [tdub415](https://github.com/tdub415), [tedder42](https://discourse.octoprint.org/u/tedder42), [thatjoshguy](https://github.com/thatjoshguy), [wescrockett](https://github.com/wescrockett) ## 1.3.6 (2017-12-12) diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 1de21d611..6159d8f79 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -23,6 +23,7 @@ thanks to everyone who contributed! * günter weber * James Seigel * Jeff Moe + * Jeff Renfer * Jefferson Hunt * Jeremiah Avery * Josh Daniels @@ -54,4 +55,4 @@ thanks to everyone who contributed! * Thomas Hatley * Trent Shumay -and 1217 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! \ No newline at end of file +and 1233 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! \ No newline at end of file From 8869748ecc0526e964d0b7dec1bb6a54072f41cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Apr 2018 15:53:25 +0200 Subject: [PATCH 3/4] Don't trigger ok timeout while heating or in long running command Workaround for printers that don't send busy:processing during heatups like they should. --- src/octoprint/util/comm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 45975124a..3780dbf04 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1554,7 +1554,11 @@ class MachineCom(object): handled = True # process timeouts - elif ((line == "" and now > self._timeout) or (self.isPrinting() and not self.isSdPrinting() and not self.job_on_hold and now > self._ok_timeout)) \ + elif ((line == "" and now > self._timeout) or (self.isPrinting() + and not self.isSdPrinting() + and not self.job_on_hold + and not self._long_running_command + and not self._heating and now > self._ok_timeout)) \ and (not self._blockWhileDwelling or not self._dwelling_until or now > self._dwelling_until): # We have two timeout variants: # From 6d7f8a2a64b364504f11dafd5009a85fb785127a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Apr 2018 15:56:35 +0200 Subject: [PATCH 4/4] Don't raise error when trying to read from finished print Could be caused by timing issues and one `continue_sending` too many, so just ignore this but log a warning. --- src/octoprint/util/comm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 3780dbf04..03d4c32c7 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -3547,7 +3547,8 @@ class PrintingGcodeFileInformation(PrintingFileInformation): """ with self._handle_mutex: if self._handle is None: - raise ValueError("File %s is not open for reading" % self._filename) + self._logger.warn(u"File {} is not open for reading".format(self._filename)) + return None, None, None try: offsets = self._offsets_callback() if self._offsets_callback is not None else None