Komodo crashing when I start the debugger

I’ve recently been seeing a high percentage of crashes when starting the debugger. It’s crashing somewhere between 10% and 25% of all attempts to start the debugger. I don’t know if its related but I’m running it in Administrator mode in Windows 10. All of the software I’m working on is in Python. I’ll launch Komodo, edit a few files, launch the debugger, and then it will crash before the debug session is started. I generally have two Komodo windows & projects open at a time.

Please provide the contents of your error log immediately after the crash, and before restarting Komodo. Your error log is in c:/users/username/AppData/Local/ActiveState/KomodoIDE/version/pystderr.log

Also, does the frequency of crashing reduce when you start in Safe Mode? (Help > Troubleshooting > Restart in Safe Mode)

Here’s the bit I think you need to see:

-- EXCEPTION START --
TypeError: ko.dbg.manager.currentSession is null
+ stack
    outputTabManager.prototype.tabSwitch@chrome://komodo/content/debugger/debugSessionTab.js:1261:13
    ko_dbg_createTab_tabSelectListener@chrome://komodo/content/debugger/debugSessionTab.js:998:17
    _dispatchEvent@chrome://komodo/content/bindings/pane.xml:1068:11
    set_collapsed@chrome://komodo/content/bindings/pane.xml:1666:19
    showWidget@chrome://komodo/content/bindings/pane.xml:613:11
    addWidget@chrome://komodo/content/bindings/pane.xml:293:17
    uilayout_ensureTabShown/callback@chrome://komodo/content/library/uilayout.js:1514:1
    koWidgetManager_getWidgetAsync/<@chrome://komodo/content/library/widgets.js:322:25
-- EXCEPTION END --

I’ll give Safe Mode a try and update later today.

Thanks

Thanks, but this is not the source of the crash. We’ve seen it before in other contexts.

Komodo crashed twice in the last 10 minutes. Each time it happens I’m starting the debugger.

[2016-08-01 12:54:55,171] [INFO] Startup: Welcome to Komodo IDE 10.0.1 build 89222 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2016-08-01 12:54:55,171] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 10 nightly\lib\mozilla\komodo.exe built on Thu Jun 09 01:01:32 2016
[2016-08-01 12:54:55,792] [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
[2016-08-01 12:54:55,848] [WARNING] root: ko.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

[2016-08-01 12:54:56,345] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2016-08-01 12:54:56,665] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'
[2016-08-01 12:54:57,736] [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%2010%20nightly/lib/mozilla/components/koamAddonManager.js:138
[2016-08-01 12:55:41,752] [INFO] koInitService: Adding pre startup service for 'koFileStatusService': '@activestate.com/koFileStatusService;1'
[2016-08-01 12:55:41,869] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2016-08-01 12:55:41,904] [INFO] komodospellchecker: Spell checker loaded.
[2016-08-01 12:55:41,904] [INFO] komodospellchecker: Using dictionary en-US
[2016-08-01 12:55:42,026] [ERROR] koScopeDocs-Py: Could not find cix for ext
[2016-08-01 12:55:42,048] [ERROR] koScopeDocs-Py: Could not find cix for html5
[2016-08-01 12:55:42,236] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2016-08-01 12:55:42,349] [WARNING] root: ko.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

[2016-08-01 12:55:44,823] [INFO] koInitService: Adding pre startup service for 'KoMemoryReporter': '@activestate.com/koMemoryReporter;1'
[2016-08-01 12:55:44,825] [INFO] koInitService: Adding pre startup service for 'koCommandmentService': '@activestate.com/koCommandmentService;1'
[2016-08-01 12:55:44,829] [INFO] koInitService: Adding pre startup service for 'koDBGPManager': '@activestate.com/koDBGPManager;1'
[2016-08-01 12:55:45,358] [ERROR] projectManager: 
-- EXCEPTION START --
TypeError: otherWindow.ko.projects.manager is null
+ stack
    projectManager.prototype.findOtherWindowProjectInstanceForUrl@chrome://komodo/content/project/projectManager.js:403:13
    projectManager.prototype.loadProject@chrome://komodo/content/project/projectManager.js:907:19
    project_openProjectFromURL@chrome://komodo/content/project/projectManager.js:1672:5
    projectManager.prototype.setState/<@chrome://komodo/content/project/projectManager.js:1529:1
    projectManager.prototype.setState@chrome://komodo/content/project/projectManager.js:1528:9
    this._restoreWindowWorkspace/<@chrome://komodo/content/workspace.js:466:17
    this.waitForProjectManager/</delayFunc@chrome://komodo/content/workspace.js:493:25
-- EXCEPTION END --
[2016-08-01 12:55:45,526] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'

And this was in Safe Mode?

Not in safe mode. I’ll try switching back to that again but it’s very painful.