SaveFile { HTML | HTML5 } Fails after PreviewBuffer is closed
Steps to Reproduce
a. Komodo Edit running for some time
b. Great s/w but many small bugs, most of them failing to perform some action, rather than being destructive. I am only reporting this because it auto-generated a crash report.
Run Komodo Edit
General context: write a program in awk, that builds a HTML file, and displays it by launching Safari.
During dev & test, copy part of the file into a new Komodo tab, test.html, and display it via Komodo Preview Buffer in Browser. Works most of the time. For reasons unknown, it sometimes refuses to display the file. No error displayed.
Save the file [3]. Works most of the time. For reasons unknown, it sometimes refuses to save the file, and produces this error message. I have tried setting the Lang to HTML & HTML5, error occurs with both.
Komodo Edit, version 9.3.2, build 16460.
Built on Thu Dec 10 19:37:46 2015.
<<<<
Once the error occurs, SaveFile keeps failing: ie. it is permanent for that file.
Platform Information
Komodo Edit or IDE?
(Above)
Komodo Version?
(Above)
Operating System (and version)?
Mac OSX 10.10.5
(Stable. Will not upgrade to 10.11 or 10.12 due to instability and massive loss of features)
Additional Information
4.a. It is possible the "dead object" refers to the launched PreviewBufferInKomodo window, which worked at the time, and which was closed. It appears (not sure) the error occurs that.
4.b. The file continues to work when launched via Safari, confirming that (i) the file content is still viable, and (ii) there is no error in the HTML content.
Workaround. Copy-paste content into a new Komodo tab. Save file. Works just fine, several times. Until the error occurs.
Screenshots
(Attachments not supported, link provided)
[2017-07-28 08:45:35,845] [ERROR] console-logger: can't access dead object (0) in vieweditor:1205
Traceback (most recent call last):
File "vieweditor", line 1205, in
[2017-07-28 08:50:53,252] [ERROR] view.editor: Error in editor view .save()
-- EXCEPTION START --
TypeError: can't access dead object
stack
_doSave@vieweditor:1205:1
save@vieweditor:1325:28
viewManager.prototype.do_cmd_save@chrome://komodo/content/views.js:1836:5
xtk.Controller.prototype.doCommand@chrome://xtk/content/controller.js:91:9
command_doCommand@chrome://komodo/content/library/commands.js:263:1
command_doCommandAsync@chrome://komodo/content/library/commands.js:215:1
@chrome://komodo/content/keybindings/keybindings.js line 2488 > eval:1:1
this.Manager.prototype.evalCommand@chrome://komodo/content/keybindings/keybindings.js:2488:23
this.Manager.prototype.keypressHandler@chrome://komodo/content/keybindings/keybindings.js:2657:17
gKeyHandler@chrome://komodo/content/keybindings/keybindings.js:2543:5
-- EXCEPTION END --
[2017-07-28 08:50:53,556] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-07-28 08:50:53,556] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-07-28 08:50:53,556] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-07-28 08:50:53,556] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-07-28 08:50:53,557] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-07-28 08:50:53,557] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-07-28 08:50:53,557] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-07-28 08:50:53,557] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
<<<<<
Short Summary
SaveFile { HTML | HTML5 } Fails after PreviewBuffer is closed
Steps to Reproduce
a. Komodo Edit running for some time b. Great s/w but many small bugs, most of them failing to perform some action, rather than being destructive. I am only reporting this because it auto-generated a crash report.
Expected results
Save the file as requested.
Actual results
Exception: TypeError: can't access dead object
Traceback: _doSave@vieweditor:1205:1 save@vieweditor:1325:28 viewManager.prototype.do_cmd_save@chrome://komodo/content/views.js:1836:5 xtk.Controller.prototype.doCommand@chrome://xtk/content/controller.js:91:9 command_doCommand@chrome://komodo/content/library/commands.js:263:1 command_doCommandAsync@chrome://komodo/content/library/commands.js:215:1 @chrome://komodo/content/keybindings/keybindings.js line 2488 > eval:1:1 this.Manager.prototype.evalCommand@chrome://komodo/content/keybindings/keybindings.js:2488:23 this.Manager.prototype.keypressHandler@chrome://komodo/content/keybindings/keybindings.js:2657:17 gKeyHandler@chrome://komodo/content/keybindings/keybindings.js:2543:5
Komodo Edit, version 9.3.2, build 16460. Built on Thu Dec 10 19:37:46 2015. <<<<
Once the error occurs, SaveFile keeps failing: ie. it is permanent for that file.
Platform Information
Komodo Edit or IDE? (Above)
Komodo Version? (Above)
Operating System (and version)? Mac OSX 10.10.5 (Stable. Will not upgrade to 10.11 or 10.12 due to instability and massive loss of features)
Additional Information
4.a. It is possible the "dead object" refers to the launched PreviewBufferInKomodo window, which worked at the time, and which was closed. It appears (not sure) the error occurs that.
4.b. The file continues to work when launched via Safari, confirming that (i) the file content is still viable, and (ii) there is no error in the HTML content.
Workaround. Copy-paste content into a new Komodo tab. Save file. Works just fine, several times. Until the error occurs.
Screenshots (Attachments not supported, link provided)
7.A http://www.softwaregems.com.au/Documents/Miscellany/SaveFile%20Failed%20A.tiff
7.B http://www.softwaregems.com.au/Documents/Miscellany/SaveFile%20Failed%20B.tiff
[2017-07-28 08:50:53,252] [ERROR] view.editor: Error in editor view .save() -- EXCEPTION START -- TypeError: can't access dead object
Cheers Derek derek.asirvadem@gmail.com