SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: PiezonTM on January 07, 2021, 01:44:14 PM

Title: Long lines lockup SE
Post by: PiezonTM 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.
Title: Re: Long lines lockup SE
Post by: Clark on January 07, 2021, 02:05:14 PM
Please post your user.cfg.xml
Title: Re: Long lines lockup SE
Post by: PiezonTM on January 07, 2021, 05:27:05 PM
Let me know if there is anything else
Title: Re: Long lines lockup SE
Post by: Clark 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.

Title: Re: Long lines lockup SE
Post by: PiezonTM 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.
Title: Re: Long lines lockup SE
Post by: Dennis 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.
Title: Re: Long lines lockup SE
Post by: Clark 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).