Compare commits

...
4 Commits
Author SHA1 Message Date
Gina Häußge a70a45f062 Merge branch 'staging/maintenance' into rc/maintenance 2019-09-23 12:59:49 +02:00
Gina Häußge 61b0845f19 🔖 Preparing release of 1.3.12rc3 2019-09-23 12:55:39 +02:00
Gina Häußge b9665a8af4 🐛 Don't try to trigger M112 on connection errors
Doesn't make sense, we don't HAVE a connection yet.
2019-09-19 10:19:19 +02:00
Gina Häußge 15522a98b0 🐛 GCODE viewer: get rid of deep clone
Fixes #3277
2019-09-18 13:45:01 +02:00
4 changed files with 29 additions and 12 deletions

No files matched your search

+15
View File
@@ -1,5 +1,20 @@
# OctoPrint Changelog
## 1.3.12rc3 (2019-09-23)
### Bug fixes
* [#3277](https://github.com/foosel/OctoPrint/issues/3277) (regression) - GCODE viewer: Fix huge memory consumption due to misplaced deep clone.
* [#3282](https://github.com/foosel/OctoPrint/issues/3282) (regression) - Don't trigger `M112` routine for firmware errors on a connection error when no connection has even been established yet.
### Special thanks to all the contributors!
Special thanks to everyone who contributed to this release candidate and provided full, analysable bug reports!
### More information
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.12rc2...1.3.12rc3)
## 1.3.12rc2 (2019-09-17)
### Improvements
@@ -13,8 +13,8 @@ from octoprint.util.version import get_octoprint_version_string, is_released_oct
from flask import jsonify
from flask_babel import gettext
SENTRY_URL_SERVER = "https://2eecd116552e4d498caa75d2e67edc5a@sentry.io/1373987"
SENTRY_URL_COREUI = "https://f5e6d16d17d64d588b5d8221eb9eeb39@sentry.io/1374096"
SENTRY_URL_SERVER = "https://562288d61d724563b6d43e2a6670616e@sentry.io/1373987"
SENTRY_URL_COREUI = "https://5c2e838ac5554162bfc30142788362db@sentry.io/1374096"
SETTINGS_DEFAULTS = dict(enabled=False,
enabled_unreleased=False,
@@ -105,6 +105,7 @@ GCODE.gCodeReader = (function(){
var purgeLayers = function(m){
if(!m) return;
var tmpModel = [];
var purge;
for(var i = 0; i < m.length; i++){
@@ -119,13 +120,12 @@ GCODE.gCodeReader = (function(){
}
}
if (purge) {
m.splice(i, 1);
i--;
if (!purge) {
tmpModel.push(m[i]);
}
}
return m;
return tmpModel;
};
// ***** PUBLIC *******
@@ -178,7 +178,7 @@ GCODE.gCodeReader = (function(){
},
passDataToRenderer: function(){
var m = _.cloneDeep(model);
var m = model;
if (gCodeOptions["sortLayers"]) m = sortLayers(m);
if (gCodeOptions["purgeEmptyLayers"]) m = purgeLayers(m);
prepareLinesIndex(m);
+7 -5
View File
@@ -2779,7 +2779,9 @@ class MachineCom(object):
self._changeState(self.STATE_ERROR)
eventManager().fire(Events.ERROR, {"error": self.getErrorString(), "reason": reason})
if close:
if self._send_m112_on_error and not self.isSdPrinting():
if self._send_m112_on_error and not self.isSdPrinting() and reason not in ("connection",
"autodetect_baudrate",
"autodetect_port"):
self._trigger_emergency_stop(close=False)
self.close(is_error=True)
@@ -3730,11 +3732,11 @@ class MachineCom(object):
if self._printerProfileManager.get_current_or_default()["heatedBed"]:
self._do_increment_and_send_with_checksum("M140 S0")
# close to reset host state
error_text = "Closing serial port due to emergency stop M112."
self._log(error_text)
if close:
# close to reset host state
error_text = "Closing serial port due to emergency stop M112."
self._log(error_text)
self._errorValue = error_text
self.close(is_error=True)