SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: jporkkahtc on August 17, 2018, 09:52:51 pm

Title: Very weird hang
Post by: jporkkahtc on August 17, 2018, 09:52:51 pm
So while editing a python script, Slickedit hung.
I tried attaching the VisualStudio debugger, and hit pause.
But, it shows no stack trace :-(
It does show a bunch of threads.
Then I noticed, in the VS Attach dialog it shows VS.exe is a managed process.
I started a 2nd instance of VS to compare.

The 2nd instance doesn't appear to be managed code.

I'll upload the minidump, but I don't know if you can do anything with it.

Title: Re: Very weird hang
Post by: Clark on August 20, 2018, 03:30:55 pm
The main thread is running (not suspended or in an obvious hang loop). The code is in a tagging function that is very commonly called (like when you mouse over a symbol but this was a keypress --looks like Enter key). Did you press Enter when you got this hang? I'm not obviously seeing a call from the python enter key processing into tagging (although I could be missing it).

I was hoping to determine what Slick-C code was running but the couple globals I needed were just null (not sure it would really help though). I don't know why some Visual Studio dumps don't show all values but it's really annoying. As a test, I set a breakpoint in the same function in a release build and I could see these globals just fine.
Title: Re: Very weird hang
Post by: Dennis on August 20, 2018, 05:38:57 pm
Did you try interrupting the interpreter?  In CUA mode, the key combination is Ctrl+Alt+Shift+F2  (Halt Slick-C macro that is executing. Use this to terminate infinite loops).  Look in the Emulations tables in the Help to find what it key combination to use in your emulation/platform.  Sometimes you need to hold these keys down for a while before the break is caught by the interpreter.
Title: Re: Very weird hang
Post by: jporkkahtc on August 20, 2018, 06:17:23 pm
Yes, I tried Ctrl+Alt+Shift+F2, though I didn't know that holding it down for awhile made a difference - I'll try that in the future.

I can't remember for sure if I pressed enter or not when it hung - wasn't expecting a hang!
Title: Re: Very weird hang
Post by: Clark on August 20, 2018, 06:28:50 pm
Yes, you do need to hold those keys down for a while. Do you remember if this hang happened when you pressed Enter. I'm just wonder if that piece of the debug information was correct since some globals were missing for me to verify it.