Author Topic: VS Crash  (Read 2728 times)

texasaggie97

  • Community Member
  • Posts: 33
  • Hero Points: 4
VS Crash
« on: March 17, 2021, 02:42:02 PM »
I am on Windows using SlickEdit Pro 2020 (v25.0.1.0 64-bit)

SlickEdit will crash completely. Any unsaved changes are lost, and when I reload, it takes one of the open files and opens it N number of times based on how many windows were open when it crashed, and they are labeled filename:1, filename:2, etc.

This has happened a couple of times over the last couple of weeks. I don't know what I was doing the other times, but this time I was switching open tabs using the mouse. I cannot find a dump file or anything like that. When it crashes it is just gone, with no notification.

I realize this isn't much to go on for debugging so is there some setting I can turn on to try to get more information if it happens again?

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: VS Crash
« Reply #1 on: March 17, 2021, 09:00:59 PM »
I had a crash like that a couple of days ago when I was playing with floating edit windows.  Do you have any floating edit windows?

If you haven't already you might want to turn on "auto save after period of time"  - I have it set to ten seconds.  Also have backup history on so you can easily revert and see what has been changed etc.  Also turn on "save files on loss of focus".

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: VS Crash
« Reply #2 on: March 17, 2021, 10:44:00 PM »
Have a look in the windows system event viewer and see if you're getting application error 1000, exception code 0xC0000005.  I have three of these from slickedit and three from other apps - onenote, explorer, searchapp.exe.

Slick has two from vsapi.dll (same fault offset), one from cparse.dll.




patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: VS Crash
« Reply #3 on: March 18, 2021, 01:40:14 PM »
If you have Visual Studio installed, and you're not getting a prompt to debug on crash (which would allow you to create a minidump), probably the easiest thing to do is to change the window error reporting so it automatically creates minidumps for crashing processes.  It does require you to add/change registry settings. The instructions are here: https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx

You would want a minidump, so DumpType=1 in those instructions.  Let us know if you get a minidump on the crash, and we'll send instructions on how to get it to us so we can look at it.

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: VS Crash
« Reply #4 on: March 18, 2021, 10:19:54 PM »
I have vstudio installed - community edition.  When slick crashed it just disappeared  - no windows dialog, no access violation error reported.  Where would the minidump file be if it exists.

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: VS Crash
« Reply #5 on: March 19, 2021, 11:22:33 AM »
I've got yet another access violation - this time in qtcore dll. I got a minidump from the debugger.  The call stack seemed kind of deep, like maybe overflowing.  Three different access violations now...  also I'm getting a slick stack with one of my own macros (not published)  - can a problem in my macro code cause an access violation ??  It's not uncommon for me to get a slick stack in this particular macro when I'm doing something unusual - I'm too lazy to debug it, I just restart the editor and carry on.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: VS Crash
« Reply #6 on: March 19, 2021, 02:04:34 PM »
I'll PM you with upload instructions for the minidump(s). 

We don't know of any Slick-C stacks that would cause a crash.  You can send the stack traces along with the minidumps if you like.  Just let us know if you're running the published version of your macros, or something else you'd need to send to us.

texasaggie97

  • Community Member
  • Posts: 33
  • Hero Points: 4
Re: VS Crash
« Reply #7 on: March 25, 2021, 11:03:28 PM »
It just happened again and I see this in the System event viewer. I do have Visual Studio installed and it did not prompt me for anything. I will follow those instruction to enable the minidump at the system level.

texasaggie97

  • Community Member
  • Posts: 33
  • Hero Points: 4
Re: VS Crash
« Reply #8 on: March 27, 2021, 04:06:25 AM »
I got a minidump of a crash. How would you like me to upload it to you? I am running with no macro modifications.
SlickEdit Pro 2020 (v25.0.1.0 64-bit)

Serial number: WB945742
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\25\slickedit.lic

Build Date: December 16, 2020   (State file: February 12, 2021)
Emulation: CUA

OS: Windows 10 x64
OS Version: 10.00.0 
Memory: 29% Load, 19638MB/65488MB Physical, 24713MB/183007MB Page File, 9054MB/134217727MB Virtual
Shell Information: C:\Windows\system32\cmd.exe /q
Screen Size: 2560 x 1440 (0 0 2560 1440), 2560 x 1440 (2560 0 2560 1440)

Project Type: Python
Language: No file open
Encoding: No file open

Installation Directory: C:\Program Files\SlickEdit Pro 25\ (non-removable drive,NTFS,330160MB free)
Configuration Directory: C:\Users\msilva\Documents\My SlickEdit Config\25.0.1\ (non-removable drive,NTFS,330160MB free)
Migrated from: C:\Users\msilva\Documents\My SlickEdit Config\25.0.0\
Spill File: C:\Users\msilva\AppData\Local\Temp\$slk.31728 (non-removable drive,NTFS,330160MB free)

Hotfixes:
C:\Users\msilva\Documents\My SlickEdit Config\25.0.1\hotfixes\hotfix_se2501_2_cumulative.zip (Revision: 2)



SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 384
  • Hero Points: 29
Re: VS Crash
« Reply #9 on: March 31, 2021, 02:20:26 PM »
PM sent texasaggie97.

Regards,
SlickEdit Support

texasaggie97

  • Community Member
  • Posts: 33
  • Hero Points: 4
Re: VS Crash
« Reply #10 on: March 31, 2021, 07:49:09 PM »
I had three so I uploaded all of them for your debugging pleasure... I hope they are able to help. Is there any other information that may help?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: VS Crash
« Reply #11 on: March 31, 2021, 09:07:19 PM »
Nothing we need right now.  I'd suggest that the next time you're not running SlickEdit to go in and delete any of your project's tag files, for the projects you had open when it crashed. The tag files will be regenerated the next time you open the projects, so you don't lose anything.   

The tagging has consistency checking that can usually detect when a crash has caused an incomplete write of a tag file, but easier to not risk it causing any additional problems that could interfere with troubleshooting.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: VS Crash
« Reply #12 on: April 02, 2021, 02:04:48 PM »
The dumps narrow it down, but still trying to track down what's leading up to the crash. Something is happening while files are being iterated for tagging, but it's not clear whether it's the contents of a file or something about the configuration that's the cause.

Could you upload your user.cfg.xml file from your configuration file to the same place you put the dumps?  The default configuration directory for your version would be My Documents\My SlickEdit Config\25.0.1, but you can check the output of Help About to find the exact location if there's any question.

The other thing that might help is the files that are being tagged.  Is this source you could upload to us?  If not, it might help zip up just the project files (*.vpj, *.vpw, *.vpwhist) and upload those. 


texasaggie97

  • Community Member
  • Posts: 33
  • Hero Points: 4
Re: VS Crash
« Reply #13 on: April 12, 2021, 04:29:55 PM »
I uploaded both the user.cfg.xml and a zip with the *.vpw, *,vpwhist and the *.vpj's.

One of the git repos pointed to by one of the vpj files is large. It is currently ~16GB in size in ~311k files with a mix of files: C/C++, C#, perl, python, LabVIEW files, documentation files, etc.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: VS Crash
« Reply #14 on: April 13, 2021, 03:51:54 PM »
Thanks, we got the files.