Komodo Alert Debugger Initialization

I downloaded and installed Komodo 11.0.2 on my Windows 10. When I tried to run my python script, Komodo Alert was reported. I had tried different port and still failed, wonder if there is any set up issue on my side.

==============================================================
Komodo Alert

Unable to initialize the debugging system because Debugging will be unavailable until you
change the debugger port in your preferences. You can try allowing the system to provide
a free port.
Debugger Initialization Error

The Log File is as follows:

[2018-05-06 00:43:51,546] [INFO] Startup: Welcome to Komodo IDE 11.0.2 build 90813 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2018-05-06 00:43:51,546] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\komodo.exe built on Mon Dec 04 08:56:02 2017
[2018-05-06 00:43:59,944] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2018-05-06 00:44:00,885] [WARNING] root: [object Object].logging has been converted to a CommonJS module; use require(“ko/logging”) instead (since Komodo 9.0.0a1).
@chrome://komodo/content/komodo.js:15:1

[2018-05-06 00:44:04,464] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
File “”, line 0, in

[2018-05-06 00:44:11,053] [WARNING] keybindings: [Ctrl+0] was used for ‘cmd_goToQuickBookmark_0’, overriding to use ‘cmd_fontZoomReset’
[2018-05-06 00:44:16,040] [WARNING] ko.widgets: Could not restore widget unittest-widget
[2018-05-06 00:44:16,088] [WARNING] ko.widgets: Could not restore widget symbolbrowser-widget
[2018-05-06 00:44:16,582] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/11
[2018-05-06 00:44:18,637] [INFO] koInitService: Adding pre startup service for ‘koFileStatusService’: ‘@activestate.com/koFileStatusService;1’
[2018-05-06 00:44:21,038] [INFO] codeintel/process: Starting CodeIntel
[2018-05-06 00:44:21,052] [DEBUG] codeintel/process: PYTHONPATH: C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\python…\lib\python2.7;C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\pythonlib;C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\extensions\codeintel@activestate.com\content…\pylib\codeintel\lib;C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\extensions\codeintel@activestate.com\content…\pylib\codeintel\env\Lib\site-packages
[2018-05-06 00:44:21,506] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2018-05-06 00:44:23,183] [INFO] komodospellchecker: Spell checker loaded.
[2018-05-06 00:44:23,184] [INFO] komodospellchecker: Using dictionary en-US
[2018-05-06 00:44:30,911] [INFO] koInitService: Adding pre startup service for ‘KoMemoryReporter’: ‘@activestate.com/koMemoryReporter;1’
[2018-05-06 00:44:31,010] [INFO] koInitService: Adding pre startup service for ‘koCommandmentService’: ‘@activestate.com/koCommandmentService;1’
[2018-05-06 00:44:31,095] [INFO] koInitService: Adding pre startup service for ‘koDBGPManager’: ‘@activestate.com/koDBGPManager;1’
[2018-05-06 00:44:35,338] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-06 00:44:35,338] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-06 00:44:35,339] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-06 00:44:35,352] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-06 00:44:35,358] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-06 00:44:35,361] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-06 00:44:37,275] [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
[2018-05-06 00:44:37,279] [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
[2018-05-06 00:44:37,286] [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
[2018-05-06 00:44:40,095] [DEBUG] codeintel/process: stdout:
port:65251

pid:22704

[2018-05-06 00:44:40,095] [INFO] codeintel/process: CodeIntel started on port 65251
[2018-05-06 00:44:40,096] [DEBUG] codeintel/process: Calling callbacks for: started, number: 1

Hi, is what you posted the entire contents of your log file? I would expect to see an error in there.

On another note, is your firewall blocking Komodo? Komodo probably needs permission to communicate over localhost TCP sockets.

A computer restart would likely solve this or you can change the port Komodo is listening on in Prefs > Debugger > Connection. That should fix it. If not, investigate Mitchell’s comments as well.

  • Carey

Hi Careyh, Computer restart didn’t solve the issue. The port change didn’t work.

Hi Mitchell, I re-r-an Komoto and used “netstat -ab” to check opened TCP/IP and port “50853” was open. I also checked Windows firewall log for blocked ports and didn’t see the port was blocked. The log is appended below.

Thanks.

=======================================================================

[2018-05-07 22:17:24,369] [INFO] Startup: Welcome to Komodo IDE 11.0.2 build 90813 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2018-05-07 22:17:24,369] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\komodo.exe built on Mon Dec 04 08:56:02 2017
[2018-05-07 22:17:28,430] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2018-05-07 22:17:28,578] [WARNING] root: [object Object].logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
    @chrome://komodo/content/komodo.js:15:1

[2018-05-07 22:17:29,707] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2018-05-07 22:17:32,510] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'
[2018-05-07 22:17:34,676] [WARNING] ko.widgets: Could not restore widget unittest-widget
[2018-05-07 22:17:34,700] [WARNING] ko.widgets: Could not restore widget symbolbrowser-widget
[2018-05-07 22:17:34,917] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/11
[2018-05-07 22:17:35,538] [INFO] koInitService: Adding pre startup service for 'koFileStatusService': '@activestate.com/koFileStatusService;1'
[2018-05-07 22:17:36,671] [INFO] codeintel/process: Starting CodeIntel
[2018-05-07 22:17:36,676] [DEBUG] codeintel/process: PYTHONPATH: C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\python\..\lib\python2.7;C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\pythonlib;C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\extensions\codeintel@activestate.com\content\..\pylib\codeintel\lib;C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\extensions\codeintel@activestate.com\content\..\pylib\codeintel\env\Lib\site-packages
[2018-05-07 22:17:36,884] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2018-05-07 22:17:36,980] [INFO] komodospellchecker: Spell checker loaded.
[2018-05-07 22:17:36,980] [INFO] komodospellchecker: Using dictionary en-US
[2018-05-07 22:17:43,203] [INFO] koInitService: Adding pre startup service for 'KoMemoryReporter': '@activestate.com/koMemoryReporter;1'
[2018-05-07 22:17:43,229] [INFO] koInitService: Adding pre startup service for 'koCommandmentService': '@activestate.com/koCommandmentService;1'
[2018-05-07 22:17:43,260] [INFO] koInitService: Adding pre startup service for 'koDBGPManager': '@activestate.com/koDBGPManager;1'
[2018-05-07 22:17:43,414] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-07 22:17:43,414] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-07 22:17:43,414] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-07 22:17:43,420] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-07 22:17:43,421] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-07 22:17:43,421] [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:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koLessProtocolHandler.js:154
[2018-05-07 22:17:44,398] [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
[2018-05-07 22:17:44,403] [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
[2018-05-07 22:17:44,407] [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
[2018-05-07 22:17:47,871] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2011/lib/mozilla/components/koamAddonManager.js:138
[2018-05-07 22:17:47,871] [DEBUG] codeintel/process: stdout: 
port:50853

pid:11192

[2018-05-07 22:17:47,871] [INFO] codeintel/process: CodeIntel started on port 50853
[2018-05-07 22:17:47,871] [DEBUG] codeintel/process: Calling callbacks for: started, number: 1
[2018-05-07 22:17:48,372] [DEBUG] ko.launch: Response: http://docs.komodoide.com/__omnigollum__/auth/github?origin=%2Fcreate%2Fchangelog%2F11 (404)
[2018-05-07 22:17:48,375] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/110
[2018-05-07 22:17:48,724] [DEBUG] ko.launch: Response: http://docs.komodoide.com/__omnigollum__/auth/github?origin=%2Fcreate%2Fchangelog%2F110 (404)
[2018-05-07 22:17:57,243] [ERROR] console-logger: TypeError: tab is undefined (2) in viewbrowser:133
Traceback (most recent call last):
  File "viewbrowser", line 133, in 

[2018-05-07 22:17:58,292] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2018-05-07 22:18:06,505] [ERROR] process: process.py: can't execute None (c:\msys64\usr\bin\python2.exe -u "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\bin\pydbgp.py" -d 127.0.0.1:50854 -l WARN "C:\Users\wifibridge\dwhelper\0062 2008 Moran(莫烦Python) Build environment and train a robot\train-robot-arm-from-scratch-master\part1\main.py")
ERROR:xpcom:Unhandled exception calling 'int8 * invoke(in int32);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\python\xpcom\server\policy.py", line 303, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\components\koInvokeInterpreters.py", line 275, in invoke
    return self._launchForDebug()
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\components\koInvokeInterpreters.py", line 967, in _launchForDebug
    return self._doLaunch(argv, cwd, env)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\components\koInvokeInterpreters.py", line 414, in _doLaunch
    self.process = runutils.KoTerminalProcess(argv, cwd=cwd, env=env)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\python\komodo\runutils.py", line 150, in __init__
    self._process = process.ProcessOpen(cmd, cwd=cwd, env=env)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\python\xpcom\components.py", line 268, in wrapperFn
    return fn(*args, **kwargs)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\python\komodo\process.py", line 328, in __init__
    creationflags=flags)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\python\lib\subprocess.py", line 711, in __init__
    errread, errwrite)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\mozilla\python\komodo\process.py", line 146, in _execute_child
    startupinfo)
WindowsError: [Error 267] The directory name is invalid
[2018-05-07 22:18:06,569] [ERROR] ko.dbg.invocation: There was an unexpected error starting the invocation:[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIInvocation.invoke]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://komodo/content/debugger/debugger.js :: this.invocation.doExecute :: line 2379"  data: no]
Traceback from ERROR in 'ko.dbg.invocation' logger:
    Logger.prototype.error@chrome://komodo/content/sdk/logging.js:411:27
    this.invocation.doExecute@chrome://komodo/content/debugger/debugger.js:2388:13
    ko_dbg_invocation_doStart/onInvocationReady@chrome://komodo/content/debugger/debugger.js:2488:23
    ko_dbg_invocation_getInvocation/onSessionReady@chrome://komodo/content/debugger/debugger.js:2227:13
    ko_dbg_invocation_getInvocation@chrome://komodo/content/debugger/debugger.js:2231:13
    ko_dbg_invocation_doStart/onSessionReady@chrome://komodo/content/debugger/debugger.js:2431:1
    DBG_Manager_newSession/onTabMgrReady@chrome://komodo/content/debugger/debugger.js:382:13
    outputTabManager_getTabMgr/<@chrome://komodo/content/debugger/debugSessionTab.js:1104:17
    outputTabManager_createTab/<@chrome://komodo/content/debugger/debugSessionTab.js:1024:21
    koWidgetManager__widgetLoadCallback@chrome://komodo/content/library/widgets.js:234:17
    WidgetLoad_onStateChange@chrome://komodo/content/bindings/pane.xml:2456:15

Hi James, sorry for the late reply. You have some Asian characters in your directory path that are causing trouble. Please try renaming the directory.