Author Topic: Crash on Borrow License and Save Issue  (Read 3049 times)

TKasparek

  • Senior Community Member
  • Posts: 245
  • Hero Points: 29
Crash on Borrow License and Save Issue
« on: May 03, 2014, 12:11:19 am »
I have a couple issues I've found that have really been getting to me.

  • First is a crash on next launch after borrowing a concurrent license (max checkout length) . I hit this the last time I tried it about 6 months ago and forgot about it until today. Last time I needed to reinstall SlickEdit to get the program to work again. I've attached the Trace output from this.
  • Next up is a saving issue. I haven't been able to quite lock down what triggers this but it seems to be with saving a .h file after deleting n lines from it. It never shows in the editor but they still exist in the file. I have to use an different editor to open the file and remove the last ~n lines from the file. It's like it removed them from the buffer but didn't correctly mark the end of file at being n lines shorter when writing them out. (So the last ~n lines are repeated)

Setup:
- Windows 7 x64 / SlickEdit 2013 x64 w/latest hotfix

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6467
  • Hero Points: 504
Re: Crash on Borrow License and Save Issue
« Reply #1 on: May 03, 2014, 12:27:53 pm »
I'm not sure what's causing the first problem.

You can fix the second problem by using the -s3 invocation option. The problem is that some network file system drivers have a bug with the win32 system calls "SetEndOfFile()" which is used for truncating a file. Using the -s3 option simply avoids this system call. The cost is some performance but you won't notice unless you're working with huge files. I've never seen this problem on a local drive.

TKasparek

  • Senior Community Member
  • Posts: 245
  • Hero Points: 29
Re: Crash on Borrow License and Save Issue
« Reply #2 on: May 06, 2014, 04:27:14 pm »
In fact the files are local for the saving issue; but I'll add the invocation option.

Is there any other information that would be helpful for the borrow license issue I'm seeing?

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Crash on Borrow License and Save Issue
« Reply #3 on: May 06, 2014, 05:54:43 pm »
Is the borrow issue repeatable or was this a one time issue?  With what I can see from the stack trace, I would suspect the state file has been corrupted or one of the restore files is corrupted.  Most of the time, deleting the state file (vslick.sta) and vrestore.slk from your configuration directory will get you running again, though you will have to restore some of the lost settings/layout in that case.  Or renaming/moving your existing configuration directory and letting a new be created in its place.