Open wchristian opened 6 years ago
I have the same problem,
Komodo crashes every few runs during start of debug (several times a day), Komodo IDE, version 11.1.0, build 91033, platform win32-x86. Built on Wed May 30 10:04:55 2018. Windows 10 Pro 1803
Would it helped if i posted everytime it crashed?
Can you reproduce this with a very basic perl (Hello world) file? And what version of Perl?
Please I feel like this goes without saying but please refrain from spamming this ticket with anime pictures. I appreciate you must be frustrated but I assure you it does not expedite the process ;)
It wasn't about spamming but to provide a reference as to how often it actually happens. :) (Altho given that Komodo IDE 7 did not do this, i am also somewhat regretting the kind of costly upgrade.)
I reproduced it with a minimal perl script
use strictures 2;
print 1;
exit;
However by looping i was only able to reproduce it in an instance of the editor that had been running a while. When i tried it with a fresh instance it didn't happen after 50 runs of it. However, this number isn't authoritative. In previous crashes it crashed within as little as 5 runs on a newly started instance with other scripts.
Maybe you can repro it with automation?
As for the Perl version, i use Strawberry Perl 32bit v5.28.0, but it happened with other versions as well, and i seem to recall it also happened with a python script.
Is there any way i can extract more useful error logs from the program, or get it to not overwrite the logs of previous runs?
Since a crash just now happened again i went looking for Komodo-related files on my own. Here's what i found:
Thanks for the logs @wchristian. Unfortunately there's not much else to go on there. You say the issue only happens when you've been running Komodo for a while, or sometimes it even happened after as little as 5 runs. Perhaps this is related to a previous action you took in Komodo. See if you can figure out any recurring themes in what you were doing before the crash happened.
There is no recurring theme other than that i switched from 7 to 11 and that i usually hit F5 after changing the code a little. This has been occurring for months under a variety of conditions.
Wouldn't it make sense to look closer into why codeintel might be crashing out? The last log entries were exactly at the time the IDE crashed.
Not really, codeintel runs in a separate process. It's certainly possible for there to be a connection but it seems unlikely. Is that a correlation that you always see when there's a crash? ie. codeintel shows those log entries for the exact timestamp of the crash?
I haven't inspected that before, so i can't tell, but if you like i can check again on the next crash and let you know.
Crash happened 20:35, which is what the minidump metadata is timestamped as, and the code intel log also shows error at 20:35.
I also just realized that normally a crash reporter dialogue should pop up? Doesn't seem to in my case.
I disabled codeintelligence and that seems to have stopped the crashes from occurring.
Fwiw, the crashes are less, but i still need to periodically restart the thing as it gets really sluggish.
When you say a crash occurs do you mean Komodo itself literally shuts down or do you mean something else?
As i said above:
upon hitting the "go" button Komodo will shut down quietly.
I don't get the crash reporter or anything else.
And after disabling CodeIntel hitting Go does not crash anymore?
Very strange. CodeIntel has zero interaction with debugging as far as I'm aware.
And after disabling CodeIntel hitting Go does not crash anymore?
That is accurate.
Very strange. CodeIntel has zero interaction with debugging as far as I'm aware.
Possibly it is related to pre-debug activities? E.g. stuff that happens during the "save files before debug" phase?
Could be. But you said the crash happens when you hit the debugging button, not when you save. Right?
I have not experienced it yet when i save, no. My current guess is that it might be some kind of error only occurring when features correlate in execution, like a race condition.
I also wonder if the fact that Komodo gets progressively slower over time might be related as well.
I'm also seeing some very persistent errors being dumped into the log:
https://gist.github.com/wchristian/409f5924b7ce93b4f81f523acead2bba
It just crashed again, with the codeintel3.log file again indicating the server just quit. My CodeIntel settings look like this:
You could try disabling the codeintel addon altogether to see if that makes a difference. Disable it via Tools > Addons (Legacy).
That way we can either eliminate or confirm it as a suspect.
Sorry for not getting back to this earlier. I have disabled the codeintel addon completely, and while the occurrence of these crashes has dropped drastically, i had still gotten one crash upon starting a debug session.
It did not occur at an opportune time to gather metadata, but i will update the next time it does.
And an additional note: #2583 might be related.
Just had a crash happen again. The codeintel plugin is disabled via Tools > Addons (Legacy).
The crash happened at 14:09. No codeintel log file exists, but pystderr.log contained this from 7 minutes earlier. Possibly the aftermath of another debug session i ran then (and which worked):
[2019-02-09 14:02:10,305] [ERROR] debugSessionTab:
-- EXCEPTION START --
TypeError: invocation is null
+ stack
ko_dbg_invocation_doStart/onInvocationReady@chrome://komodo/content/debugger/debugger.js:2456:17
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:2443:1
DBG_Manager_newSession/onTabMgrReady@chrome://komodo/content/debugger/debugger.js:382:13
outputTabManager_getTabMgr@chrome://komodo/content/debugger/debugSessionTab.js:1082:21
DBG_Manager_newSession@chrome://komodo/content/debugger/debugger.js:388:13
ko_dbg_invocation_doStart@chrome://komodo/content/debugger/debugger.js:2549:17
DBG_Manager.prototype.doStep@chrome://komodo/content/debugger/debugger.js:646:13
doGo@chrome://komodo/content/debugger/debuggerController.js:195:9
DebuggerItemsController.prototype.do_cmd_dbgGo@chrome://komodo/content/debugger/debuggerController.js:201:9
xtk.Controller.prototype.doCommand@chrome://xtk/content/controller.js:61:9
command_doCommand@chrome://komodo/content/library/commands.js:239:1
debugger_doCommand@chrome://komodo/content/debugger/debuggerController.js:31:16
oncommand@chrome://komodo/content/komodo.xul:1:1
-- EXCEPTION END --
@wchristian do you recall if you installed padwalker
for Perl debugging? Komodo recommends it. Could you confirm you have that module installed?
It's an additional dependency and i have it installed, yeah:
C:\Users\Mithaldu>perl -MV=PadWalker
PadWalker
C:\Strawberry\perl\site\lib\PadWalker.pm: 2.3
I believe its primary purpose is to provide a mechanism for the debugger in perl with which komodo interfaces to load a more complete list of "local" variables for the variable tracking tab.
https://metacpan.org/pod/PadWalker - "PadWalker is a module which allows you to inspect (and even change!) lexical variables in any subroutine which called you. It will only show those variables which are in scope at the point of the call."
I believe its primary purpose is to provide a mechanism for the debugger in perl with which komodo interfaces to load a more complete list of "local" variables
Yep, that's what it's for. I'd say that's more related to the issue than code intel though ;). Btw, I think you can enable it again. Seems not to have helped to disable it.
I don't see anyone asking you to try Safe Mode yet (Help > Troubleshooting > Restart in Safe Mode) . Have you tried that? I'm been hitting F5 in a Perl file for most of the day without any crashes so there must be something specific to your configuration causing this.
Short Summary
See below:
Steps to Reproduce
Expected results
Eventually (sometimes a handful, sometimes ok for hours) upon hitting the "go" button Komodo will shut down quietly.
Actual results
Instead of shutting down it should debug as per usual.
Platform Information
Komodo Edit or IDE? IDE Komodo Version? 11.1 Operating System (and version)? Windows 10, latest as of 2018-12-01
Additional Information
not sure if the log is useful, as it's from after restarting after a crash, but here you go: