Author Topic: Long lines lockup SE  (Read 422 times)

PiezonTM

  • Senior Community Member
  • Posts: 131
  • Hero Points: 7
Long lines lockup SE
« on: January 07, 2021, 01:44:14 pm »
I have found in SE 25 (and even previous versions of SE) that files containing long lines locks up SE.  I loaded the attached file (762.5kB) and my laptop fan (6 core Xeon with 32GB RAM) kicks on high and locks up my Ubuntu 18.04.  I left the machine over night and at some point SE un-wedged itself.  The file size is not that large considering SE boast 2TB file support.  I have seen this before where files with long lines creates problems for SE.  I have also seen that searching these files is a waste of time as it too locks up for long periods of time.  I have to resort to gedit or Geany to open and view these types of files.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5771
  • Hero Points: 460
Re: Long lines lockup SE
« Reply #1 on: January 07, 2021, 02:05:14 pm »
Please post your user.cfg.xml

PiezonTM

  • Senior Community Member
  • Posts: 131
  • Hero Points: 7
Re: Long lines lockup SE
« Reply #2 on: January 07, 2021, 05:27:05 pm »
Let me know if there is anything else

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5771
  • Hero Points: 460
Re: Long lines lockup SE
« Reply #3 on: January 07, 2021, 05:42:29 pm »
Your "Wrap line length" is trashed (way too large).

Go to Tools>Options>File Options>Load>Wrap line length and set it to 4000.

In some previous version of SlickEdit there was a bug where the wrap line length was being temporarily changed but wasn't restored. This is why this happened.

I'm noticing the scrolling performance isn't good for long lines if softwrap is on. You might want to go to View>Softwrap, to toggle it off for a file with lots of very long lines. I am going to look into this to see if we can speed this up.


PiezonTM

  • Senior Community Member
  • Posts: 131
  • Hero Points: 7
Re: Long lines lockup SE
« Reply #4 on: January 07, 2021, 08:34:15 pm »
Thanks for the information.  This did fix my loading problem.  I know I never set that value so it was interesting that it was that large.  The scrolling problem for soft wrapping would be a nice improvement.  At least, I can load these files without problems--considering I don't know it contains these long lines until it is too late.  Thanks again.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3245
  • Hero Points: 461
Re: Long lines lockup SE
« Reply #5 on: January 08, 2021, 08:29:43 pm »
The next hot fix for 25.0.1 will also have a fix to prevent these hangs.  Thanks to Clark for tracking down the problem.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5771
  • Hero Points: 460
Re: Long lines lockup SE
« Reply #6 on: January 23, 2021, 12:12:20 am »
For v26, I've added a softwrap line break cache. That way, if you have many consecutive long lines, performance will still be good. In this case, you have many 4k lines in a row (worst case scenario).