Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.15k stars 301 forks source link

SaveFile { HTML | HTML5 } Fails after PreviewBuffer is closed #2723

Open Derek-Asirvadem opened 7 years ago

Derek-Asirvadem commented 7 years ago

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.

  1. Run Komodo Edit
  2. General context: write a program in awk, that builds a HTML file, and displays it by launching Safari.
  3. 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.
  4. 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.

Expected results

Save the file as requested.

Actual results

  1. File not saved.
  2. This error message in a dialog:

TypeError: can't access dead object

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.

  1. Workaround. Copy-paste content into a new Komodo tab. Save file. Works just fine, several times. Until the error occurs.

  2. 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

  1. Error Log

    [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

Cheers Derek derek.asirvadem@gmail.com

th3coop commented 7 years ago

@Derek-Asirvadem This is great. Thank you very much.