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 302 forks source link

Komodo IDE 10.2.1 on macOS 10.12.4 hanging #2424

Closed pemcg closed 7 years ago

pemcg commented 7 years ago

Short Summary

I'm running Komodo IDE 10.2.1 on MacOS 10.12.4. I haven't used Komodo for a while so I'm not sure if the issues are related to the 10.12.4 upgrade that I did this morning, but I've had 2 cases today of Komodo hanging (infinite beachball). I've also noticed generally that the UI is frustratingly slow scrolling up and down, it's not a smooth experience at all.

Both of the hangs have been with about 5-6 files open, relatively small files (<400 lines)

Note From Developer - Please Read

A nightly is now available with a fix for this hang, you can download it here:

http://downloads.activestate.com/Komodo/nightly/komodoide/latest-10.2.x/

If you are still experiencing this issue with the latest build please supply a backtrace of Komodo in this ticket (when it is hanging).

To get the backtrace take the following steps:

Steps to Reproduce

Random

Expected results

Actual results

Platform Information

Komodo IDE for Mac Komodo 10.2.1 *Operating System (and version) MacOS 10.12.4

Additional Information

Attached is the text of the "Report the problem to Apple" output when I did a force quit. komodo_hang.txt

Naatan commented 7 years ago

Can you reproduce this using Help > Troubleshooting > Restart in Safe-mode ?

Please verify that when restarting in safe-mode Komodo should be using the default UI (all your settings would be temporarily reset).

pemcg commented 7 years ago

I've restarted in safe mode and I'll try using again tomorrow (it's evening here now).

Thanks

pemcg commented 7 years ago

It still happens in safe mode. In this case I'd just added some text to a file, and clicked the 'Tools' menu. Immediately on clicking 'Tools' I got the spinning beachball.

pemcg commented 7 years ago

and annoyingly I've lost all of my edits when I restart

tuckdesign commented 7 years ago

This is connected to osx 10.12.4 update. I have same experience. It was working fine, yesterday I updated OSX to 10.12.4 and now it has crashes (really similar to #1007 ): I work in IDE, then click on browser (FF) window, browse shortly, when I click back on IDE winow it is frozen (just loader icon and need to 'Force quit' Komodo). But as in #1007 it does not happen every time.

tuckdesign commented 7 years ago

Ran it and attached to lldb. When it hangs stopped process and each time I get backtrace liket this: https://pastebin.com/YdeSufwf

Naatan commented 7 years ago

Oh good another freeze due to an OSX update, is Apple actively trying to discourage non-native apps?

Thanks for the backtrace @tuckdesign, we'll investigate.

Naatan commented 7 years ago

Anything consistent in the error log when this hang happens?

Also, more backtraces would be tremendously helpful, so we can determine wheter they offer us the insight we need or if it's just noise.

Naatan commented 7 years ago

Looks related:

http://www.openradar.appspot.com/30763552

Naatan commented 7 years ago

@tuckdesign and @pemcg - can you guys reproduce the issue with Safe-mode? Help > Troubleshooting Restart in Safe-mode.

I'm on OSX 10.12.4 but so far have not been able to reproduce.

pemcg commented 7 years ago

@Naatan yes, also hangs in safe mode

Naatan commented 7 years ago

thanks @pemcg

Is the issue easily reproducible for you? ie as simple as switching back and forth between apps? Or is it very random and hard to consistently reproduce?

tuckdesign commented 7 years ago

It's random but quite often. Most often when I have open few php/js files that I am editing, then switch to browser window, browse shortly and then click back on komodo window. Not sure is it better with cmd+tab to switch windows (trying that now).

Naatan commented 7 years ago

Does disabling app nap work around the issue?

defaults write NSGlobalDomain NSAppSleepDisabled -bool YES

You can revert it with

defaults delete NSGlobalDomain NSAppSleepDisabled
tuckdesign commented 7 years ago

Checked that with defaults read (and it is in komodo's plist also). It is already set to yes.

Naatan commented 7 years ago

Bah alright.

Anything else you can give me to reproduce the issue? Given the backtrace we feel it may be related to a text input field of some sort, what do you have focussed in Komodo when the hang happens? Plus any other contextual information that might be relevant?

Still have not been able to reproduce the issue on my end.

pemcg commented 7 years ago

It's intermittent and not reproducible for me, but seems to be related to input from keyboard or mouse (i.e. not 'spontaneous' like the 10.0 crashes were)

It's happened after I've had several files open, have been inputting text into one tab/file, then click on another file's tab. Today it hung when I clicked on the 'Tools' menu, and another time when I just scrolled up with the mouse immediately after opening the file. It's hung twice each day, but I'm not a power/continuous user.

Naatan commented 7 years ago

@pemcg so in your case it hangs during regular use, not when switching to Komodo?

pemcg commented 7 years ago

@Naatan That's correct, it's only hung while actively being used, typing, clicking or mouse scrolling.

tuckdesign commented 7 years ago

Just had hang on mouse click. Had 3 tabs with js code. Clicked on tab to change tab and komodo is hanging: https://pastebin.com/vSyCyF0G Note: I was on browser window, clicked back to komodo and then when I tried to switch tab it was hanging.

tuckdesign commented 7 years ago

Can't share code I am working on with you, so selected to test on https://github.com/facebook/react Here is how you can reproduce:

  1. Clone https://github.com/facebook/react from git
  2. Create komodo project test.komodoproject in root folder of cloned repository and open it
  3. Open 3 js files for editing, see screenshot to see which ones I opened: http://prnt.sc/eq9723
  4. Put cursor somewhere in each of files (like you are editing - I didn't change/edit anything)
  5. Quickly click on tabs to change from tab to tab until komodo hangs You can see on screenshot that it started hanging when I tried to switch from second to first tab. If you need, I can send you my KomodoIDE settings or anything you need from that folder
Naatan commented 7 years ago

@tuckdesign and this is 100% reproducible for you like this? Unfortunately I'm not able to reproduce, I tried it for about a minute or two, then tried holding ctrl+tab for just as long. No dice.

Naatan commented 7 years ago

Also, could anyone having this issue share their system specs?

tuckdesign commented 7 years ago

Hm, unfortunately not... doesn't happen now :(

For system specs np, let me know what you need.

Naatan commented 7 years ago

So, given the differences in the 2 lldb reports shared so far it seems likely that this issue is caused by macOS 10.12.4 and not Komodo itself, seeing as in both reports the Komodo specific code is wildly different.

If you feel adventurous enough you could attempt to see if the OSX 10.12.5 beta resolves the issue:

https://9to5mac.com/2017/03/28/macos-10-12-5-beta-1/

Unfortunately as we are unable to reproduce the issue internally we cannot attempt this ourselves.

Naatan commented 7 years ago

For system specs np, let me know what you need.

Primarily your system model, I want to see if there's correlation to newer hardware.

tuckdesign commented 7 years ago

iMac (Retina 5K, 27-inch, Late 2014) Processor 3.5 GHz Intel Core i5 Memory 16 GB 1600 MHz DDR3 Graphics AMD Radeon R9 M290X 2048 MB

pemcg commented 7 years ago

Model Name: MacBook Pro Model Identifier: MacBookPro11,5 Processor Name: Intel Core i7 Processor Speed: 2.5 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Memory: 16 GB Boot ROM Version: MBP114.0172.B16 SMC Version (system): 2.30f2

dch commented 7 years ago

hey folks I am seeing these symptoms here too. Only since last update to OSX (this week) and Komodo (the same day yesterday). 100% repeatable about hourly, every time I alt-tab away and back again (2 monitor setup).

I also suspect an OSX bug BTW, as I have had hangs with other applications, unable to alt-tab "back" -- iterm2, firefox, komodo, all go pants down the same way.

old hardware

Hardware Overview:

  Model Name:   iMac
  Model Identifier: iMac13,2
  Processor Name:   Intel Core i5
  Processor Speed:  2,9 GHz
  Number of Processors: 1
  Total Number of Cores:    4
  L2 Cache (per Core):  256 KB
  L3 Cache: 6 MB
  Memory:   32 GB
  Boot ROM Version: IM131.010A.B11

software

  System Version:   macOS 10.12.4 (16E195)
  Kernel Version:   Darwin 16.5.0

pystderr

raceback (most recent call last):
  File "", line 0, in

[2017-03-31 13:11:43,968] [INFO] koInitService: Adding pre startup service for 'KoMemoryReporter': '@activestate.com/koMemoryReporter;1'
[2017-03-31 13:11:43,970] [INFO] koInitService: Adding pre startup service for 'koCommandmentService': '@activestate.com/koCommandmentService;1'
[2017-03-31 13:11:44,017] [INFO] koInitService: Adding pre startup service for 'koDBGPManager': '@activestate.com/koDBGPManager;1'
[2017-03-31 13:11:44,170] [ERROR] commands: doing _updateCommand: cmd_publishingOpenDialog:
-- EXCEPTION START --
[Exception... "[JavaScript Error: "ko.places.manager is undefined" {file: "chrome://komodo-places/content/places.js" line: 3749}]'[JavaScript Error: "ko.places.manager is undefined" {file: "chrome://komodo-places/content/places.js" line: 3749}]' when calling method: [nsIController::isCommandEnabled]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://komodo/content/library/commands.js :: _command_updateCommand :: line 72"  data: yes]
+ QueryInterface (function) 3 lines
+ message (string) '[JavaScript Error: "ko.places.manager is undefined" {file: "chrome://komodo-places/content/places.js'...285 chars
+ result (number) 2153185313
+ name (string) 'NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS'
+ filename (string) 'chrome://komodo/content/library/commands.js'
+ lineNumber (number) 72
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://komodo/content/library/commands.js :: _command_updateCommand :: line 72
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://komodo/content/library/commands.js'
| + name (string) '_command_updateCommand'
| + lineNumber (number) 72
| + columnNumber (number) 22
| + sourceLine (string) ''
| + caller (object) JS frame :: chrome://komodo/content/library/commands.js :: command_updateCommandset/commandset._updateTimer< :: line 99
| + formattedStack (string) '_command_updateCommand@chrome://komodo/content/library/commands.js:72:22
command_updateCommandset/commandset._updateTimer<@chrome://komodo/content/library/commands.js:99:21
'
| + inner (object) null
| + data (object) [xpconnect wrapped nsISupports]
| + QueryInterface (function) 3 lines
| + initialize (function) 3 lines
-- EXCEPTION END --
[2017-03-31 13:11:44,566] [ERROR] console-logger: Exception while registering Focus Mode (0) in resource://gre/modules/addons/XPIProvider.jsm -> file:///Users/dch/Applications/Komodo.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js:11
Traceback (most recent call last):
  File "resource://gre/modules/addons/XPIProvider.jsm -> file:///Users/dch/Applications/Komodo.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js", line 11, in

[2017-03-31 13:11:44,569] [ERROR] console-logger: [object Object] (0) in resource://gre/modules/addons/XPIProvider.jsm -> file:///Users/dch/Applications/Komodo.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js:12
Traceback (most recent call last):
  File "resource://gre/modules/addons/XPIProvider.jsm -> file:///Users/dch/Applications/Komodo.app/Contents/Resources/extensions/focusmode@activestate.com/bootstrap.js", line 12, in

[2017-03-31 13:11:44,674] [ERROR] console-logger: TypeError: ko.places.manager is undefined (2) in chrome://komodo-places/content/places.js:3749
Traceback (most recent call last):
  File "chrome://komodo-places/content/places.js", line 3749, in

[2017-03-31 13:11:44,729] [ERROR] commands: doing _updateCommand: cmd_publishingOpenDialog:
-- EXCEPTION START --
[Exception... "[JavaScript Error: "ko.places.manager is undefined" {file: "chrome://komodo-places/content/places.js" line: 3749}]'[JavaScript Error: "ko.places.manager is undefined" {file: "chrome://komodo-places/content/places.js" line: 3749}]' when calling method: [nsIController::isCommandEnabled]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://komodo/content/library/commands.js :: _command_updateCommand :: line 72"  data: yes]
+ QueryInterface (function) 3 lines
+ message (string) '[JavaScript Error: "ko.places.manager is undefined" {file: "chrome://komodo-places/content/places.js'...285 chars
+ result (number) 2153185313
+ name (string) 'NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS'
+ filename (string) 'chrome://komodo/content/library/commands.js'
+ lineNumber (number) 72
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://komodo/content/library/commands.js :: _command_updateCommand :: line 72
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://komodo/content/library/commands.js'
| + name (string) '_command_updateCommand'
| + lineNumber (number) 72
| + columnNumber (number) 22
| + sourceLine (string) ''
| + caller (object) JS frame :: chrome://komodo/content/library/commands.js :: command_updateCommandset/commandset._updateTimer< :: line 99
| + formattedStack (string) '_command_updateCommand@chrome://komodo/content/library/commands.js:72:22
command_updateCommandset/commandset._updateTimer<@chrome://komodo/content/library/commands.js:99:21
'
| + inner (object) null
| + data (object) [xpconnect wrapped nsISupports]
| + QueryInterface (function) 3 lines
| + initialize (function) 3 lines
-- EXCEPTION END --
[2017-03-31 13:11:44,943] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:44,980] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,019] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,082] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,433] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,585] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,640] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,669] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,708] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,762] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,789] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:45,937] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:46,221] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:46,255] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Users/dch/Applications/Komodo.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2017-03-31 13:11:46,255] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Users/dch/Applications/Komodo.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2017-03-31 13:11:46,256] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in file:///Users/dch/Applications/Komodo.app/Contents/Resources/components/koLessProtocolHandler.js:154
[2017-03-31 13:11:46,258] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:46,395] [ERROR] console-logger: TypeError: ko.places.manager is undefined (2) in chrome://komodo-places/content/places.js:3749
Traceback (most recent call last):
  File "chrome://komodo-places/content/places.js", line 3749, in

[2017-03-31 13:11:46,661] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:46,835] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2017-03-31 13:11:46,835] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2017-03-31 13:11:46,836] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2017-03-31 13:11:49,053] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:49,084] [WARNING] console-logger: Error in parsing value for 'height'.  Declaration dropped. (1) in less://komodo/skin/commit_dialog.less:26
[2017-03-31 13:11:49,098] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:49,137] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:49,179] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:49,248] [ERROR] ko-terminal: Traceback (most recent call last):
  File "/Users/dch/Library/Application Support/KomodoIDE/10.2/XRE/extensions/komodo_terminal@activestate.com/content/../pylib/butterfly/butterfly.server.py", line 300, in <module>
    http_server.listen(port, address=host)
  File "/Users/dch/Library/Application Support/KomodoIDE/10.2/XRE/extensions/komodo_terminal@activestate.com/pylib/tornado-systemd/tornado_systemd/__init__.py", line 29, in listen
    super(SystemdMixin, self).listen(port, address)
  File "/Users/dch/Library/Application Support/KomodoIDE/10.2/XRE/extensions/komodo_terminal@activestate.com/pylib/tornado/tornado/tcpserver.py", line 126, in listen
    sockets = bind_sockets(port, address=address)
  File "/Users/dch/Library/Application Support/KomodoIDE/10.2/XRE/extensions/komodo_terminal@activestate.com/pylib/tornado/tornado/netutil.py", line 194, in bind_sockets
    sock.bind(sockaddr)
  File "/Users/dch/Applications/Komodo.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line
Traceback from ERROR in 'ko-terminal' logger:
    Logger.prototype.error@chrome://komodo/content/sdk/logging.js:379:27
    ko.terminal</this.onerror@chrome://koterminal/content/terminal.js:30:9
    emit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:96:9
    initialize/proc<.stderr@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/child_process.js:52:25
    subprocess_unix/readPipes/stderrWorker</<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/child_process/subprocess.js:1583:21

[2017-03-31 13:11:49,256] [ERROR] ko-terminal: 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 48] Address already in use
Traceback from ERROR in 'ko-terminal' logger:
    Logger.prototype.error@chrome://komodo/content/sdk/logging.js:379:27
    ko.terminal</this.onerror@chrome://koterminal/content/terminal.js:30:9
    emit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:96:9
    initialize/proc<.stderr@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/child_process.js:52:25
    subprocess_unix/readPipes/stderrWorker</<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/child_process/subprocess.js:1583:21

[2017-03-31 13:11:49,988] [WARNING] console-logger: Unknown pseudo-class or pseudo-element '-webkit-scrollbar-thumb'.  Ruleset ignored due to bad selector. (1) in http://localhost:57575/static/main.css?v=e90321e6c69148611e57fc1fcdab28a9:160
[2017-03-31 13:11:49,989] [WARNING] console-logger: Unknown pseudo-class or pseudo-element '-webkit-scrollbar-thumb'.  Ruleset ignored due to bad selector. (1) in http://localhost:57575/static/main.css?v=e90321e6c69148611e57fc1fcdab28a9:162
[2017-03-31 13:11:49,989] [WARNING] console-logger: Unknown pseudo-class or pseudo-element '-webkit-scrollbar'.  Ruleset ignored due to bad selector. (1) in http://localhost:57575/static/main.css?v=e90321e6c69148611e57fc1fcdab28a9:2819
[2017-03-31 13:11:49,990] [WARNING] console-logger: Unknown pseudo-class or pseudo-element '-webkit-scrollbar-thumb'.  Ruleset ignored due to bad selector. (1) in http://localhost:57575/static/main.css?v=e90321e6c69148611e57fc1fcdab28a9:2822
[2017-03-31 13:11:49,990] [WARNING] console-logger: Unknown pseudo-class or pseudo-element '-webkit-scrollbar-thumb'.  Ruleset ignored due to bad selector. (1) in http://localhost:57575/static/main.css?v=e90321e6c69148611e57fc1fcdab28a9:2824
[2017-03-31 13:11:50,011] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:50,157] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:50,236] [WARNING] console-logger: Error in parsing value for 'font-size'.  Declaration dropped. (1) in less://komodo/skin/global/global.less:190
[2017-03-31 13:11:51,007] [ERROR] console-logger: TypeError: this.screen[(this.y + this.shift)] is undefined (2) in http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30:3
Traceback (most recent call last):
  File "http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30", line 3, in

[2017-03-31 13:11:51,022] [DEBUG] console: log: WebSocket open {"0":{"isTrusted":true}}
[2017-03-31 13:11:51,023] [WARNING] console-logger: XrayWrapper denied access to property callee (reason: value is callable). See https://developer.mozilla.org/en-US/docs/Xray_vision for more information. Note that only the first denied property access from a given global object will be reported. (1) in chrome://komodo/content/sdk/console.js:166
[2017-03-31 13:11:51,024] [WARNING] console-logger: XrayWrapper denied access to property callee (reason: value is callable). See https://developer.mozilla.org/en-US/docs/Xray_vision for more information. Note that only the first denied property access from a given global object will be reported. (1) in chrome://komodo/content/sdk/console.js:166
[2017-03-31 13:11:51,094] [ERROR] console-logger: TypeError: l is null (2) in http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30:3
Traceback (most recent call last):
  File "http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30", line 3, in

[2017-03-31 13:11:53,353] [ERROR] console-logger: TypeError: l is null (2) in http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30:3
Traceback (most recent call last):
  File "http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30", line 3, in

[2017-03-31 13:11:53,356] [ERROR] console-logger: TypeError: l is null (2) in http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30:3
Traceback (most recent call last):
  File "http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30", line 3, in

[2017-03-31 13:11:53,424] [ERROR] console-logger: TypeError: l is null (2) in http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30:3
Traceback (most recent call last):
  File "http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30", line 3, in

[2017-03-31 13:11:53,427] [ERROR] console-logger: TypeError: l is null (2) in http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30:3
Traceback (most recent call last):
  File "http://localhost:57575/static/main.min.js?v=b7764a0c94f8705c429ab5895209ad30", line 3, in

[2017-03-31 13:12:11,496] [ERROR] console-logger: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koISCCDVCS.getValue] (2) in chrome://komodo/content/scc/scc.js:477
Traceback (most recent call last):
  File "chrome://komodo/content/scc/scc.js", line 477, in

[2017-03-31 13:12:11,501] [ERROR] console-logger: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koISCCDVCS.getValue] (2) in chrome://komodo/content/scc/scc.js:477
Traceback (most recent call last):
  File "chrome://komodo/content/scc/scc.js", line 477, in

[2017-03-31 13:12:11,536] [ERROR] console-logger: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koISCCDVCS.getValue] (2) in chrome://komodo/content/scc/scc.js:477
Traceback (most recent call last):
  File "chrome://komodo/content/scc/scc.js", line 477, in

[2017-03-31 13:39:23,927] [ERROR] koCodeIntel:     INFO: eval 'on' at nginx.conf.j2#59  <Trigger 'python3-defn-defn' at 2101 (explicit)>
    ERROR: evaluating 'on' at nginx.conf.j2#59: no Python3 scan info for <Python3 buf 'nginx.conf.j2'>
[2017-03-31 13:39:30,682] [ERROR] sectionlist:
-- EXCEPTION START --
TypeError: view.koDoc is null
+ stack
    update@chrome://komodo/content/bindings/sectionlist.xml:187:21
    sectionlist_update@chrome://komodo/content/codeintel/sectionlist.js:79:17
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:157:5
    set_lastFocused@viewmultiview:86:25
    moveView@viewmultiview:361:17
    onxbldrop@chrome://komodo/content/bindings/scrolltabs.xml:697:21
-- EXCEPTION END --
[2017-03-31 13:39:30,775] [ERROR] console-logger: TypeError: view.koDoc is null (2) in chrome://komodo/content/codeintel/codebrowser.js:191
Traceback (most recent call last):
  File "chrome://komodo/content/codeintel/codebrowser.js", line 191, in

[2017-03-31 13:39:30,836] [ERROR] console-logger: TypeError: editorView.koDoc is null (2) in chrome://openfiles/content/openfiles.js:912
Traceback (most recent call last):
  File "chrome://openfiles/content/openfiles.js", line 912, in

@Naatan good news is that I have komodo working on FreeBSD so your revenue stream is still safe ;-)

Naatan commented 7 years ago

I also suspect an OSX bug BTW, as I have had hangs with other applications, unable to alt-tab "back" -- iterm2, firefox, komodo, all go pants down the same way.

That's very telling, sounds like Apple has some fixing to do. Have you considered trying the 10.12.5 beta?

mrochford commented 7 years ago

Adding Apple Dump. I am seeing the same issue that is being described.

10.12.4_komodo_dump.txt

mitchell-as commented 7 years ago

Thanks for the additional info. There is nothing in that dump that indicates a Komodo problem. All active threads appear to be hanging in the OSX kernel or system libraries.

mrochford commented 7 years ago

I have since downloaded and installed the 10.12.4 combo update. I found other application that were experiencing these same symptoms were pointing their users to manually run the update as it will replace any corrupt/missing files.

After running the update I have not been able to recreate the issue within Komodo.

mitchell-as commented 7 years ago

@mrochford Thank you for taking the time to write up your "fix" for this. We really appreciate it.

Naatan commented 7 years ago

Very nice @mrochford, how long have you gone without a freeze so far? Sounds like we might be able to close this one.

tuckdesign commented 7 years ago

Unfortunately installing combo update didn't help on my side :(

Naatan commented 7 years ago

@tuckdesign consider tring the 10.12.5 beta. From all appearances this isn't something we can fix on our end.

tuckdesign commented 7 years ago

Yes, that's clear it is osx bug (happens sometimes with email app and firefox also), but trying beta version won't guarantee things will work ok (might even cause more problems, it is beta) and it's hard to revert back after that, so, we'll have to wait for apple...

mrochford commented 7 years ago

In the last 24hrs Komodo has only "froze"/"spinning wheel" once since doing the 10.12.4 combo update. This has not entirely fixed all application on my system though. As others have outlined in this thread, this issue has nothing to do with Komodo and everything to do with the latest update pushed by Apple.

To resolve this today I think people have two solutions:

  1. Install the combo update and cross your fingers it solves the issue.
  2. If you have backups, restore your machine back to 10.12.3 and wait for further updates from Apple before going to something greater then 10.12.3.

My 2cents.

Naatan commented 7 years ago

I would add a third cross your fingers solution; try the 10.12.5 beta.

clokep commented 7 years ago

@Naatan asked me to upload a stack trace over IRC, here it is. Note that I actually had two running Komodo IDE processes:

~ ps -A | grep Komodo
82539 ??        69:23.14 /Applications/Komodo IDE 10.app/Contents/MacOS/komodo
82542 ??         1:16.69 /Applications/Komodo IDE 10.app/Contents/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -O /Applications/Komodo IDE 10.app/Contents/SharedSupport/codeintel/oop-driver.py --import-path /Applications/Komodo IDE 10.app/Contents/Resources/python/komodo --database-dir /Users/pcloke/Library/Application Support/KomodoIDE/10.2/codeintel --connect pipe:/var/folders/ml/0nnlgt2s1t3gp8vkrl6t51500000gn/T/komodo-codeintel-pOVZcw-oop-pipes --log-file stderr

There's a stack trace for both attached.

thread-backtrace.txt

Defman21 commented 7 years ago

The second one is codeintel :)

twhiteman commented 7 years ago

I'm another one hitting this hang issue on Mac OS X (randomly, a few times per day). I usually notice this when Alt-Tabbing back to Komodo, and find it completely unresponsive (e.g. it doesn't even display the Komodo window, it's like I never tried to switch to it). I've also hit this when using Komodo, most recent after saving a file (keyboard shortcut), Komodo became unresponsive (luckily it had saved the file though).

Mac OS 10.12.4, Komodo IDE 10.2.1

Naatan commented 7 years ago

@twhiteman have you tried the suggestions shared here? Ie. attempt the 10.12.5 beta or the 10.12.4 combo update?

Regrettable as this issue is it doesn't appear to be one we can fix on our end, the issue lies with macOS.

pemcg commented 7 years ago

I appreciate that the problem is with macOS, but Komodo is the only app that I see the problem with. Is it worth doing any investigation to determine what makes Komodo more vulnerable to these macOS bugs? Other cross-platform apps such as Sublime text work fine. It would be great if we could help Komodo protect itself from the OS.

Naatan commented 7 years ago

From what I'm hearing there are very mixed results, some people have multiple apps hanging, others just have Komodo hanging. The thing is the logs indicate the issue is not from any one single call in Komodo, many different calls can cause it.

What this ends up meaning is that even if it is something that macOS broke and we have to pay the price for fixing it then that would cost a significant effort to fix as there is unlikely to be a silver bullet solution to this problem. Likely it'll take an update of Mozilla and other components to fix. If we're lucky simply updating the OSX SDK to eg. 10.10 would work, but that would mean deprecating support for 10.9 (which honestly wouldn't be THAT bad). Either way it would be a significant effort and thus not something we could do for the 10.x series, or at least not easily.

For now the best we can do is await feedback of macOS 10.12.5 as it is not unlikely this would have a fix for the hanging issue. Seeing as we have yet to be able to reproduce the issue internally it is not something we can test ourselves. It's an unfortunate situation all around :\

mrochford commented 7 years ago

Ok it has been awhile since I have updated where I am at with this issue. As of today I am still seeing the "freezes"/"Spinning Wheel of death". I am going to take a new approach based on some other reading I have done where other applications have seen these issues.

  1. Uninstall Komodo completely Directions can be found here.
  2. Reboot
  3. Download a fresh copy of Komodo
  4. Install

I am doing this as a "hail mary pass" type fix. If it works awsome, if not ... sigh.

twhiteman commented 7 years ago

Update: Ignore paragraph below - I no longer believe 10.1.4 is immune to this issue.

I've reverted back to Komodo IDE 10.1.4 (last week) and have not had a hang since, so it might not be a Mac OS specific problem after all. http://downloads.activestate.com/Komodo/releases/

mrochford commented 7 years ago

I am running into the same issues with Komodo 10.1.4 as well :-(

tuckdesign commented 7 years ago

Right, 10.1.4 didn't help. @twhiteman Did you change something else also when switching to 10.1.4?